cf/mirror

Required Remainder

CF
1374A800· newbie1s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 1
Input
7
7 5 12345
5 0 4
10 5 15
17 8 54321
499999993 9 1000000000
10 5 187
2 0 999999999
Output
12339
0
15
54306
999999995
185
999999998
1374A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)