Two Squares
993A1600· expert1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
0 0 6 0 6 6 0 61 3 3 5 5 3 3 1
Output
YES
Sample 2of 3
Input
0 0 6 0 6 6 0 67 3 9 5 11 3 9 1
Output
NO
Sample 3of 3
Input
6 0 6 6 0 6 0 07 4 4 7 7 10 10 7
Output
YES
58%
993A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)