How can these solutions pass?

Правка en1, от matcoder, 2019-02-07 19:58:33

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


Теги bug report

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский matcoder 2019-02-07 19:58:33 619 Initial revision (published)