Rooks and Rectangles
524E2400· grandmaster2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
4 3 3 31 13 22 32 3 2 32 1 3 31 2 2 3
Output
YESYESNO
58%
524E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
4 3 3 31 13 22 32 3 2 32 1 3 31 2 2 3
YESYESNO