Masala #MNFRRYO6L7

Xotira 32 MB Vaqt 1000 ms
14

Snake game

Sizga A massiv beriladi siz A massiv ichidagi sonlardan ilon izini hosil qilish mumkinmi yo'qmi shunitekshiring.


Kiruvchi ma'lumotlar:

A massiv kiritiladi(1≤len(A)≤81).A massiv ichida bir hil sonlar qatnashmagan!


Chiquvchi ma'lumotlar:

Agar ilon izi hosil bo'lsa jadvalni va Game so'zini chop eting,agar ilon izi chiqamasa Game over! so'zini chop eting.


Misollar
# input.txt output.txt
1
1 9 41 77
* * * * * * * * * 	
0 0 0 0 0 0 0 * 0 	
0 0 0 0 0 0 * 0 0 	
0 0 0 0 0 * 0 0 0 	
0 0 0 0 * 0 0 0 0 	
0 0 0 0 * 0 0 0 0 	
0 0 0 0 * 0 0 0 0 	
0 0 0 0 * 0 0 0 0 	
0 0 0 0 * 0 0 0 0
Game
2
5 73
0 0 0 0 * 0 0 0 0 	
0 0 0 0 0 0 0 0 0 	
0 0 0 0 0 0 0 0 0 	
0 0 0 0 0 0 0 0 0 	
0 0 0 0 0 0 0 0 0 	
0 0 0 0 0 0 0 0 0 	
0 0 0 0 0 0 0 0 0 	
0 0 0 0 0 0 0 0 0 	
* 0 0 0 0 0 0 0 0 	
Game over!