cf/mirror

Game of Division

CF
2040A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
7
3 2
1 2 3
4 2
1 2 4 5
5 3
10 7 3 4 5
5 3
1 31 15 55 36
2 1
17 17
2 2
17 18
1 3
6
Output
YES
2
NO
YES
3
NO
NO
YES
2
YES
1
2040A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)