cf/mirror

Kevin and Numbers

CF
2061D1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
9
2 1
4 5
9
2 1
3 6
9
4 2
1 2 2 2
3 4
4 2
1 1 3 3
3 5
4 2
1 2 3 4
3 5
5 5
1 2 3 4 5
5 4 3 2 1
4 2
1 1 1 1
1 1
4 4
1 1 1 1
1 1 1 2
1 1
1
1000000000
Output
Yes
No
Yes
Yes
No
Yes
No
No
No
2061D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)