HELP needed overflow error

Revision en2, by ultimatechodu.v1, 2025-02-24 20:58:07

In the solution to this 1557C - Moamen and XOR, this 307571033 gives the wrong answer on the 2nd test case, but this 307571054 works, while the only difference between them being in the direction of the for loop. While both for loop workings are identical since the DP state, I don't know why the first one gives the wrong answer while the second gets accepted. Please give some reason.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ultimatechodu.v1 2025-02-24 20:58:07 40
en1 English ultimatechodu.v1 2025-02-24 20:57:33 471 Initial revision (published)