Question on Problem 474D

Revision en2, by BanazadehAria, 2019-06-16 17:42:36

Hi, In this question I posted my code by it seems that it gets overflow at some point of my code.

But I'm getting %MOD every time I want to subtract or sum things.

Problem link ==>

My Submission==> 55651145


  Rev. Lang. By When Δ Comment
en2 English BanazadehAria 2019-06-16 17:42:36 13 Tiny change: 'ission==> 55651145' -> 'ission==> [submission:55651145]'
en1 English BanazadehAria 2019-06-16 17:42:04 290 Initial revision (published)