cf/mirror

Grid Covering

CF
2217C1300· pupil2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
10
1 1 1 1
2 2 1 1
4 2 2 1
6 9 6 7
67 42 42 67
3411 4134 32 23
90234 143124 232 323
69387963 98793214 9791 4324786
985865 578977 899368 447605
1000000000 1000000000 1000000000 1000000000
Output
YES
YES
NO
NO
YES
NO
NO
NO
YES
NO
2217C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)