SHARE
TWEET

o retorno do rei // 2951

notleo Nov 9th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. x = input().split(' ')
  2. listarunas = []
  3. listavrunas = []
  4. qtdrunas, qtdamizade = int(x[0]), int(x[1])
  5. cont = 0
  6. for x in range(qtdrunas):
  7.     deus = input().split(' ')
  8.     runa = deus[0]
  9.     listarunas.append(runa)
  10.     valoruna = int(deus[1])
  11.     listavrunas.append(valoruna)
  12. infernooooooo = int(input())
  13. runaslista = input().split(' ')
  14. for inferno in runaslista:
  15.     ind = runaslista.index(inferno)
  16.     cont += int(listavrunas[ind+1])
  17. print(qtdamizade)
  18. if cont>=qtdamizade:
  19.     print('You shall pass!')
  20. else:
  21.     print('My precioooous')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top