How can these solutions pass?

Revision en1, by 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


Tags bug report

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English matcoder 2019-02-07 19:58:33 619 Initial revision (published)