Codeforces Nebius Welcome Round: Pull Your Luck – Modular Arithmetic
Problem Link:
https://codeforces.com/gym/431607/problem/C
Solution Link:
https://codeforces.com/gym/431607/submission/197008663
Learning Targets:
1. Modular Arithmetic
Timestamps:
0:00 – Intro
0:16 –Problem statement explanation
2:53 – Key observation (the idea of modular arithmetic)
5:00 – Obvious solution
7:15 – Examples
10:00 - Error
12:12 – Coding the solution
Solve more problems from Codeforces recent contests here: https://www.youtube.com/playlist?list=PLzVLIdIx9dQy9nb5DxIHDDTn4WzvBotLD