Start: Jul, 17, 2019 00:00:00
20190717Python程序设计基础培训扩展练习
End: Jul, 21, 2019 00:00:00
Time elapsed:
Time remaining:

Problem_ID: C
Result: Accepted
Time: 51ms
Memory: 25316kB
Author: 13758380235
In contest: 1296

m=list(map(int,(input().split())))
d={}
for i in range(m[0]):
    a = input().split()
    a[2] = int(a[2])
    d[a[0]]=a[2]
for j in range(m[1]):
    b=input()
    if d[b]<=100 and d[b]>=90:
       print("A")
    if d[b]<90 and d[b]>=80:
       print("B")
    if d[b]<80 and d[b]>=70:
       print("C")
    if d[b]<70 and d[b]>=60:
       print("OK")
    if d[b]<60:
       print("ARE YOU PIG?")