Rectangle and Square
135B1600· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
0 010 1110 00 111 12 22 11 2
Output
YES5 6 7 81 2 3 4
Sample 2of 3
Input
0 01 12 23 34 45 56 67 7
Output
NO
Sample 3of 3
Input
0 04 44 00 41 22 33 22 1
Output
YES1 2 3 45 6 7 8
58%
135B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)