Masala #6QTW1BO75J
Chess club
Sizga bir shaxmat donasining qanday yurishi beriladi, siz bu yurish kimga tegishli ekanligi aniqlashingiz kerak.
8x8 jadvallik shaxmat donasining yurishi beriladi, shaxmat 0 va yura oladigon joylari * bilan belgilanadi, qolgan joylari esa 1 bilan belgilanadi.Faqat bitta shaxmat donasi yurishi kiritilishikafolatlanadi.
Siz agar yurish kimniki bo'lsa shunga qarab rux, fil, ot, shox, piyoda, farzin deb chop eting.
# | input.txt | output.txt |
---|---|---|
1 |
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 * * * 1 1 1 1 1 * 0 * 1 1 1 1 1 * * * 1 1 1 |
shox |
2 |
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 * 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 |
piyoda |
piyodani faqat oldinga yuradi holos, buni unutmang!Testlar javobga to'g'ri kelishini kafolatlangan