Masala #MNFRRYO6L7
  
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! |
Yechimini yuborish
Bu amalni bajarish uchun tizimga kiring,
agar profilingiz bo'lmasa istalgan payt ro'yxatdan o'tishingiz mumkin