cf/mirror

Yandex Cuneiform (Hard Version)

CF
2046F23500· legendary gm2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
???
Y??D?X
???
D??DXYXYX
Output
YES
YDX
X 0 D 0 Y 0
YES
YDXDYX
X 0 Y 0 D 1
X 2 D 3 Y 4
YES
YDX
Y 0 D 1 X 2
NO
2046F2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)