Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

C problem of today's contest, getting negative value even after applying modulo operator

Правка en1, от you_know_wh0, 2021-03-29 20:55:51

i am getting negative value even after applying %M operation at all steps. i dont understand where i'm doing wrong//i wrote this code for C problem of today's contest-codeforces round #711

my code: my code

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский you_know_wh0 2021-03-29 20:55:51 366 Initial revision (published)