Need help with modular operations

Revision en1, by 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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English nikhil_vaibhav_17 2022-03-23 13:17:58 1640 Initial revision (published)