Skip to content

Instantly share code, notes, and snippets.

@kaineer
Created April 1, 2020 09:44
Show Gist options
  • Save kaineer/11741de7bca249dd299c6b80f3ec77de to your computer and use it in GitHub Desktop.
Save kaineer/11741de7bca249dd299c6b80f3ec77de to your computer and use it in GitHub Desktop.
a = input()
b = input()
print('Сколько камней ?')
r = int(input())
i = 0
o = 0
while o == 0:
c = int(input())
if not c == 2 or not c < 4:
r -= c
else:
print('бан')
break
if r == 0:
if i % 2 == 0:
print(b)
o += 1
elif i % 2 == 1:
print(a)
o += 1
else:
pass
else:
pass
i += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment