-
Notifications
You must be signed in to change notification settings - Fork 0
/
ICPC0118_CungHoangDao.py
63 lines (63 loc) · 1.33 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
n = int(input())
for i in range(n):
d, m = list(map(int, input().split()))
if m == 1:
if d <20:
print("Ma Ket")
else:
print("Bao Binh")
if m == 2:
if d <19:
print("Bao Binh")
else:
print("Song Ngu")
if m == 3:
if d <21:
print("Song Ngu")
else:
print("Bach Duong")
if m == 4:
if d <20:
print("Bach Duong")
else:
print("Kim Nguu")
if m == 5:
if d <21:
print("Kim Nguu")
else:
print("Song Tu")
if m == 6:
if d < 21:
print("Song Tu")
else :
print("Cu Giai")
if m == 7:
if d < 23:
print("Cu Giai")
else:
print("Su Tu")
if m == 8:
if d <23:
print("Su Tu")
else:
print("Xu Nu")
if m == 9:
if d <23:
print("Xu Nu")
else:
print("Thien Binh")
if m == 10:
if d < 23:
print("Thien Binh")
else:
print("Thien Yet")
if m == 11:
if d <23:
print("Thien Yet")
else:
print("Nhan Ma")
if m == 12:
if d <22:
print("Nhan Ma")
else:
print("Ma Ket")