cf/mirror

Solution for Cube

CF
887C1500· specialist2s256 MB⌨ stdin/stdout

Examples

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