cf/mirror

Two Squares

CF
993A1600· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
0 0 6 0 6 6 0 6
1 3 3 5 5 3 3 1
Output
YES
Sample 2of 3
Input
0 0 6 0 6 6 0 6
7 3 9 5 11 3 9 1
Output
NO
Sample 3of 3
Input
6 0 6 6 0 6 0 0
7 4 4 7 7 10 10 7
Output
YES
993A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)