Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

AshrafSustS19's blog

By AshrafSustS19, history, 2 years ago, In English

My solution got hacked in the past contest. While it is generally true that being hacked means your solution is wrong. But this is not the case here. My solution is not wrong. It's because of the language I am using to solve my problem I am getting TLE. The algorithms I used are alright, and I got TLEd by 210 ms only. It could have worked if I used a different language like cpp. Although I could use pypy, but note that pypy isn't nearly as fast as cpp even though faster that python. This issue needs to be worked on. Please don't say "just learn cpp". Competitive programming should be about solving problems the right way, not the right language. If cpp is not my primary language, I shouldn't need to learn it just to do competitive programming. And there's to note that, my reason to do cp is not to become a competitive programmer, but to get good at solving problems. And I am sure most people feel the same. If there is support for a language, there should also be support for TLE in that language. Unless there's a reason it can't be implemented

  • Vote: I like it
  • -30
  • Vote: I do not like it

»
2 years ago, # |
  Vote: I like it +7 Vote: I do not like it

just learn cpp

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

"And there's to note that, my reason to do cp is not to become a competitive programmer, but to get good at solving problems"

Lol what? Competitive programmer is not a job, you know. Competitive programmer is a person who's "good at solving problems" (exactly). I hope you got the idea.

  • »
    »
    2 years ago, # ^ |
      Vote: I like it -8 Vote: I do not like it

    No, competitive programmer is not someone who's good at competitive programming. In that case, even people who never did cp but are good at problem solving would be called a competitive programmer. And it should be easy to figure out that by "Competitive programmer" I am not referring to "those who does competitive programming regularly". Here, it implies those who practices competitive programming for the sake of competitive programming. I.E: People who participate in local/international contests, or does it for a hobby etc. That's similar to esports gaming vs casual gaming.

    • »
      »
      »
      2 years ago, # ^ |
      Rev. 2   Vote: I like it 0 Vote: I do not like it

      It's obvious from the context that I meant "to be good at solving CP problems". Also noone will give you a head start in real life just because you are using a slow language. If I haven't changed your mind, just check codechef. They've already implemented your idea.

      • »
        »
        »
        »
        2 years ago, # ^ |
          Vote: I like it -8 Vote: I do not like it

        "It's obvious from the context that I meant "to be good at solving CP problems", then what you meant is irrelevant in context to what I am saying in this post.

        "just check codechef. They've already implemented your idea"/ That's what I am talking about, if codechef did it and it is working well, why not cf also do it.

»
2 years ago, # |
  Vote: I like it +9 Vote: I do not like it

codechef waits you

»
2 years ago, # |
  Vote: I like it -8 Vote: I do not like it

In c++ with pragmas, my 1e9 solution passed yesterday's D

Just thought it'd be a good idea to mention it here :D

  • »
    »
    2 years ago, # ^ |
      Vote: I like it -8 Vote: I do not like it

    what is frustrating, is that my O(n) complexity solution is not passing the test cases in some problems, where O(n^2) would have worked in cpp. It's not that I don't do cpp. But using python is much more convenient for me when it comes to writing codes, more intuitive and faster to implement.

    • »
      »
      »
      2 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Sounds like a personal problem. I think one should use whichever language is best wherever

    • »
      »
      »
      18 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Python is powerful but also has its weaknesses: slow.

      So just learn cpp