cf/mirror

Maximum modulo equality

CF
2050F1700· expert5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
5 5
5 14 2 6 3
4 5
1 4
2 4
3 5
1 1
1 1
7
1 1
3 2
1 7 8
2 3
1 2
Output
3 1 4 1 0
0
1 6
2050F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)