cf/mirror

Domino (easy version)

CF
1551D11700· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
8
4 4 2
2 3 0
3 2 3
1 2 0
2 4 2
5 2 2
2 17 16
2 1 1
Output
YES
YES
YES
NO
YES
NO
YES
NO
1551D1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)