Блог пользователя AshrafSustS19

Автор AshrafSustS19, история, 2 года назад, По-английски

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

  • Проголосовать: нравится
  • -30
  • Проголосовать: не нравится

»
2 года назад, # |
  Проголосовать: нравится +7 Проголосовать: не нравится

just learn cpp

»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

"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 года назад, # ^ |
      Проголосовать: нравится -8 Проголосовать: не нравится

    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 года назад, # ^ |
      Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

      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 года назад, # ^ |
          Проголосовать: нравится -8 Проголосовать: не нравится

        "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 года назад, # |
  Проголосовать: нравится +9 Проголосовать: не нравится

codechef waits you

»
2 года назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

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 года назад, # ^ |
      Проголосовать: нравится -8 Проголосовать: не нравится

    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.