Created
April 1, 2020 09:44
-
-
Save kaineer/11741de7bca249dd299c6b80f3ec77de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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