Problem Description
Loading...
Problem Analysis
An application of the congruence theorem. Just get the congruence theorem straight and you’re fine. The key one is:
(a+b)%c=(a%c+b%c)%c
Then the code is easy to write:
cpp
| |
Problem link: 【杭电】[2674]N!Again