cf/mirror

Remainder Problem

CF
1207F2100· master4s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5
1 3 4
2 3 0
2 4 3
1 4 -4
2 1 0
Output
4
4
0
1207F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)