-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabc119_a.py
More file actions
41 lines (40 loc) · 918 Bytes
/
abc119_a.py
File metadata and controls
41 lines (40 loc) · 918 Bytes
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
abc119_a.py
########################################
S = str(input())
import pandas as pd
S2 = pd.to_datetime([S])
if S2<='2019-04-30':
print('Heisei')
else:
print('TBD')
########################################
from datetime import datetime
S = input()
date_input = datetime.strptime(S,'%Y/%m/%d')
date_threshold = datetime(2019,4,30)
if date_input <= date_threshold:
print('Heisei')
else:
print('TBD')
########################################
y,m,d=map(int,input().split('/'))
if y<2019:
print("Heisei")
else:
if m<4:
print("Heisei")
else:
if m==4 and d<=30:
print("Heisei")
else:
print("TBD")
########################################
S =input()
s = S.split("/")
if int(s[1]) <=4:
print("Heisei")
else:
print("TBD")
########################################
########################################
########################################