Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- n = int(input(""))
- sets = []
- for x in range(n):
- sets.append([int(m) for m in input("").split()])
- if n < 3:
- print("em julgamento")
- else:
- wins = 0
- lose = 0
- for k in range(3):
- a, b = sets[k]
- if abs(a - b) == 1:
- print("em julgamento")
- sys.exit()
- else:
- if a > b:
- wins += 1
- else:
- lose += 1
- if wins - lose == -3:
- print("culpado")
- elif wins - lose == 0:
- print("inocente")
- else:
- if n == 4:
- a, b = sets[3]
- if a > b + 2:
- print("inocente")
- elif a + 2 < b:
- print("culpado")
- else:
- print("em julgamento")
- else:
- a, b = sets[4]
- if a == b + 2:
- print("inocente")
- elif a + 2 == b:
- print("culpado")
- else:
- print("em julgamento")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement