Error in understanding output of div2 round 548 Problem C

Правка en1, от dunjen_master, 2019-03-21 22:40:50

Her is the link to my submission on which i got WA at pretest 11 https://codeforces.net/contest/1139/submission/51643042

I just uncommented the line ans=(ans+mod)%mod and it got accpeted although in the previous line i had done ans=(? -ans +mod)%mod.

Someone please explain me why did my code failed at test 11 ?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский dunjen_master 2019-03-21 22:40:50 377 Initial revision (published)