Need help with modular operations

Правка en1, от nikhil_vaibhav_17, 2022-03-23 13:17:58

I need help understanding where I am going wrong with this solution. Possibly I am doing wrong with modular operations.

This is the problem of recent Codeforces Round #778 , Problem D — Potion Brewing Class

1654D - Potion Brewing Class

My piece of code

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский nikhil_vaibhav_17 2022-03-23 13:17:58 1640 Initial revision (published)