Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = 'x'*int(input())
- mov = 0
- print(s)
- while len(s) > 0:
- if mov % 2 == 0:
- print('Ход первого')
- if mov % 2 == 1:
- print('Ход второго')
- i = input()
- if i not in '12':
- print('Вы дуууумающий человек')
- continue
- elif len(s) == 1 and i == '2':
- print('Вы дуууумающий человек')
- continue
- i = int(i)
- mov += 1
- s = s[i:]
- print(s)
- if mov % 2 == 0:
- print('Проиграл первый')
- else:
- print('Проиграл второй')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement