cf/mirror

Halloumi Boxes

CF
1903A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
3 2
1 2 3
3 1
9 9 9
4 4
6 4 2 1
4 3
10 3 830 14
2 1
3 1
Output
YES
YES
YES
YES
NO
1903A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)