-
Notifications
You must be signed in to change notification settings - Fork 0
/
1828.py
38 lines (34 loc) · 867 Bytes
/
1828.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
for i in range(int(input(""))):
j1, j2 = input("").split()
if j1 == j2:
win = "De novo!"
elif j1 == "pedra":
if j2 == "tesoura" or j2 == "lagarto":
win = j1
else:
win = j2
elif j1 == "papel":
if j2 == "pedra" or j2 == "Spock":
win = j1
else:
win = j2
elif j1 == "tesoura":
if j2 == "lagarto" or j2 == "papel":
win = j1
else:
win = j2
elif j1 == "lagarto":
if j2 == "Spock" or j2 == "papel":
win = j1
else:
win = j2
elif j1 == "Spock":
if j2 == "tesoura" or j2 == "pedra":
win = j1
else:
win = j2
if win == j1:
win = "Bazinga!"
elif win == j2:
win = "Raj trapaceou!"
print("Caso #%i:" %(i + 1), win)