Hansrrr

AIC

Apr 13th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. def Jogo(x,y):  #3 1
  2.     cont = 0
  3.     while cont < 3:
  4.         if (x == y):
  5.             return 0
  6.         if (x == 4):
  7.             x = -1
  8.         x += 1
  9.         cont += 1
  10.  
  11. cont1 = 0
  12. cont2 = 0
  13. x = int(input())
  14. for i in range(x):
  15.     dario, xeres = map(int, input().split())
  16.     result = Jogo(dario,xeres)
  17.     if (result == 0):
  18.         cont1 +=1
  19.     else:
  20.         cont2 +=1
  21. if (cont1 > cont2):
  22.     print("dario")
  23. else:
  24.     print("xerxes")
Add Comment
Please, Sign In to add comment