-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathICPC0118.py
More file actions
34 lines (31 loc) · 1.13 KB
/
ICPC0118.py
File metadata and controls
34 lines (31 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from math import *
from sys import *
if __name__ == '__main__':
se = set({})
t = int(input())
for i in range(t):
a,b = map(int,input().split())
if (a>=21 and b==3) or (a<=19 and b==4):
print("Bach Duong")
if (a>=20 and b==4) or (a<=20 and b==5):
print("Kim Nguu")
if (a>=21 and b==5) or (a<=20 and b==6):
print("Song Tu")
if (a>=21 and b==6) or (a<=22 and b==7):
print("Cu Giai")
if (a>=23 and b==7) or (a<=22 and b==8):
print("Su Tu")
if (a>=23 and b==8) or (a<=22 and b==9):
print("Xu Nu")
if (a>=23 and b==9) or (a<=22 and b==10):
print("Thien Binh")
if (a>=23 and b==10) or (a<=22 and b==11):
print("Thien Yet")
if (a>=23 and b==11) or (a<=21 and b==12):
print("Nhan Ma")
if (a>=22 and b==12) or (a<=19 and b==1):
print("Ma Ket")
if (a>=20 and b==1) or (a<=18 and b==2):
print("Bao Binh")
if (a>=19 and b==2) or (a<=20 and b==3):
print("Song Ngu")