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: 56ms
Memory: 25312kB
Author: 13806858827
In contest: 1296

n,m=map(int,input().split())
d={}
for tcase in range(n):
    a=input().split()
    d[a[0]]=int(a[2])
for tcase in range(m):
    x=d[input()]
    if x>=90:print("A")
    elif x>=80:print("B")
    elif x>=70:print("C")
    elif x>=60:print("OK")
    else: print("ARE YOU PIG?")