Please read the new rule regarding the restriction on the use of AI tools. ×

nikhil_vaibhav_17's blog

By nikhil_vaibhav_17, history, 3 years ago, In English

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
| Write comment?