padfoot1717's blog

By padfoot1717, 4 years ago, In English

I was practising some atcoder problems and i really got fed up. In almost every third problem i had to ensure that no overflow is occuring while dealing with huge numbers. This really screws up your interest in the problem and significantly makes it more laborious without any reason. This makes using C++(which is quite a cp friendly language) in atcoder problems more difficult.

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

»
4 years ago, # |
  Vote: I like it +1 Vote: I do not like it

Look at the brighter side, AtCoder is teaching us how to deal with overflows in c++. :)

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

    But how does it help us as competitive programmers? Handling overflows in cp is not some universal or useful skill, for example python programmers don't have to worry about any such thing so isn't it unfair with C++ programmers?

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

      When looking at the general picture I don't think anything in the CP world is unfair to C++ programmers. If you really think it's unfair you are welcome to switch to Python and see where that gets you.

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

      Python can often give you TLE problems (like java) which are even more difficult to overcome than overflow problems. C++ is fast, it's good to use C++ in competitive programming.

      • »
        »
        »
        »
        4 years ago, # ^ |
          Vote: I like it +3 Vote: I do not like it

        I will take overflow any day over TLE

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

inb4 they are doing this to encourage use of atcoder library

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

QUIT CP mate