-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathICPC0118_CungHoangDao.py
63 lines (63 loc) · 1.41 KB
/
ICPC0118_CungHoangDao.py
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
t = int(input())
for i in range(t):
d, m = [int(x) for x in input().split()]
if m == 1:
if d < 20:
print("Ma Ket")
else:
print("Bao Binh")
elif m == 2:
if d < 19:
print("Bao Binh")
else:
print("Song Ngu")
elif m == 3:
if d < 21:
print("Song Ngu")
else:
print("Bach Duong")
elif m == 4:
if d < 20:
print("Bach Duong")
else:
print("Kim Nguu")
elif m == 5:
if d < 21:
print("Kim Nguu")
else:
print("Song Tu")
elif m == 6:
if d < 21:
print("Song Tu")
else:
print("Cu Giai")
elif m == 7:
if d < 23:
print("Cu Giai")
else:
print("Su Tu")
elif m == 8:
if d < 23:
print("Su Tu")
else:
print("Xu Nu")
elif m == 9:
if d < 23:
print("Xu Nu")
else:
print("Thien Binh")
elif m == 10:
if d < 23:
print("Thien Binh")
else:
print("Thien Yet")
elif m == 11:
if d < 23:
print("Thien Yet")
else:
print("Nhan Ma")
else:
if d < 22:
print("Nhan Ma")
else:
print("Ma Ket")