cf/mirror

Yandex Cuneiform (Easy Version)

CF
2046F13300· legendary gm2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
YDX
YDXDYX
YDX
DYYDXYXYX
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
2046F1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)