Advertisement
Guest User

Wyksztalcenie

a guest
Jan 16th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. List=[]
  2. n=int(input())
  3. for i in range(n):
  4.     List.append(input().split())
  5.     if List[i][1]=="p":
  6.         List[i][1]=1
  7.     elif List[i][1]=="g":
  8.         List[i][1]=2
  9.     elif List[i][1]=="s":
  10.         List[i][1]=3
  11.     else:
  12.         List[i][1]=4
  13. edu=input()
  14. if edu=="p":
  15.     edu=1
  16. elif edu=="g":
  17.     edu=2
  18. elif edu=="s":
  19.     edu=3
  20. else:
  21.     edu=4
  22. for j in range(n):
  23.     if edu <= List[j][1]:
  24.         print(List[j][0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement