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

Автор matcoder, история, 5 лет назад, По-английски

This is in reference to the problem A 'Parity' of today's round.


The following submissions were in my room. I tried hacking one of these solution and got the 'unsuccessful' verdict.
The bug in the codes seems to be the overflow. If you try to print the final sum in these solutions, you get to see the overflowed value (i.e. in some cases it gives negative values too), even in the custom invocation.

Link to the submissions:
Code1
Code2


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

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

Sadly, the "overflow" process doesn't change the parity of the number (cycle of 232 integers, y'know), thus these submissions are still correct. ;)