Why isn't it working?

Revision en1, by Vahagn_Grigoryan, 2021-04-23 09:55:42

Hi, Codeforces community!

I tried to solve this problem by using recursion. But my submission gives wrong answer to test 5. The input is: 20 293434130 567534945 339132630 291152695 959629878 416618095 149341899 479358017 509348379 335313693 386003521 360528367 387150541 724271523 741417449 63831275 308645820 457460287 716709394 977143845. The answer is 5734409263, but my code's output is 5774922309. Can anyone tell where's the mistake please?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Vahagn_Grigoryan 2021-04-23 09:55:42 585 Initial revision (published)