problem_id stringlengths 6 6 | user_id stringlengths 10 10 | time_limit float64 1k 8k | memory_limit float64 262k 1.05M | problem_description stringlengths 48 1.55k | codes stringlengths 35 98.9k | status stringlengths 28 1.7k | submission_ids stringlengths 28 1.41k | memories stringlengths 13 808 | cpu_times stringlengths 11 610 | code_sizes stringlengths 7 505 |
|---|---|---|---|---|---|---|---|---|---|---|
p03109 | u392361133 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['a, b, c = input().split("/")\nprint("TBD" if b > 4 else "Heisei")', 'a, b, c = input().split("/")\nprint("TBD" if int(b) > 4 else "Heisei")\n'] | ['Runtime Error', 'Accepted'] | ['s899655150', 's128207970'] | [2940.0, 2940.0] | [17.0, 17.0] | [64, 70] |
p03109 | u392389137 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['# -*- coding: utf-8 -*-\n"""\nCreated on Sun Feb 24 21:00:58 2019\n\n@author: Wataru\n"""\n\nS=input()\n\nStmp=S.split(\'/\')\n\nYY=int(Stmp[0])\nMM=int(Stmp[1])\nDD=int(Stmp[2])\n\nif YY<2019:\n print(\'Heisei\')\nelse:\n if MM<4:\n print(\'Heisei\')\n else:\n print(\'TBD\')\n ', '# -*- coding: utf-8 -*-\n"""\nCreated on Sun Feb 24 21:00:58 2019\n\n@author: Wataru\n"""\n\nS=input()\n\nStmp=S.split(\'/\')\n\nYY=int(Stmp[0])\nMM=int(Stmp[1])\nDD=int(Stmp[2])\n\nif YY<2019:\n print(\'Heisei\')\nelse:\n if MM<5:\n print(\'Heisei\')\n else:\n print(\'TBD\')\n '] | ['Wrong Answer', 'Accepted'] | ['s147268264', 's563301051'] | [3060.0, 3060.0] | [17.0, 17.0] | [283, 283] |
p03109 | u394716224 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["S = input()\nif int(S[6]) <= '4':\n\tprint('Heisei')\nelse:\n\tprint('TBD')\n", "S = input()\nif int(S[5:7]) <= 4:\n\tprint('Heisei')\nelse:\n\tprint('TBD')\n"] | ['Runtime Error', 'Accepted'] | ['s808225220', 's345768045'] | [2940.0, 2940.0] | [17.0, 17.0] | [70, 70] |
p03109 | u395202850 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['\nhaikus = input().split(",")\nfor haiku in haikus:\n print(haiku)', 'print("Heisei" if int(input()[5:7]) < 5 else "TBD")\n'] | ['Wrong Answer', 'Accepted'] | ['s684790138', 's583393312'] | [2940.0, 2940.0] | [17.0, 17.0] | [66, 52] |
p03109 | u398983698 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['n=int(input())\nz=0\nfor i in range(n):\n a,b=intput().split()\n a=float(a)\n z+=a*380000 if b=="BTC" else a\nprint(z)', 'n=int(input())\nz=0\nfor i in range(n):\n a,b=input().split()\n if b=="BTC":\n z += a*380000\n else:\n z += a\nprint(z)', 's=input()\nif(s-"2019/4/30" >0):\n print("TBD")\nelse:\n print("Heisei")', 's=input()\nif(s-2019/4/30 >0:\n print("TBD")\nelse:\n print("Heisei")', 's=input()\nif(s-"2019/04/30" >0):\n print("TBD")\nelse:\n print("Heisei")', 's=input()\nif(s-2019/4/30 >0):\n print("TBD")\nelse:\n print("Heisei")', 'n=int(input())\nz=0\nfor i in range(n):\n a,b=input().split()\n if b=="BTC":\n z += float(a)*380000\n else:\n z += int(a)\nprint(z)', 'n=int(input())\nz=0\nfor i in range(n):\n a,b=intput().split()\n a=float(a)\n z += a*380000 if b=="BTC" else a\nprint(z)', 's=input()\nif(s-\'2019/04/30\' >0):\n print("TBD")\nelse:\n print("Heisei")', 's=input()\nif(s>"2019/04/30"):\n print("TBD")\nelse:\n print("Heisei")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s029831158', 's041648325', 's100451883', 's608996388', 's637594033', 's744941047', 's752112484', 's960304753', 's977682723', 's950792100'] | [2940.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 19.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [115, 120, 72, 69, 73, 70, 132, 117, 73, 70] |
p03109 | u404186223 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["from datetime import datetime\ns = input()\nt = datetime.strptime(s, '%Y/%m/%d')\nthres = datetime(2019, 4, 30)\nprint('heisei' if t <= thres else 'TBD')\n", "from datetime import datetime\ns = input()\nt = datetime.strptime(s, '%y/%m/%d')\nthres = datetime(2019, 4, 30)\nprint('heisei' if t <= thres else 'TBD')\n", "from datetime import datetime\ns = input()\nt = datetime.strptime(s, '%Y/%m/%d')\nthres = datetime(2019, 4, 30)\nprint('heisei' if t <= thres else 'TBD')\n", "from datetime import datetime\ns = input()\nt = datetime.strptime(s, '%Y/%m/%d')\nthres = datetime(2019, 4, 30)\nprint('Heisei' if t <= thres else 'TBD')\n"] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s044527366', 's494511910', 's617124582', 's245804624'] | [4692.0, 4564.0, 4692.0, 4436.0] | [40.0, 35.0, 41.0, 32.0] | [150, 150, 150, 150] |
p03109 | u411544692 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['y, m, d = map(int, input().split("/"))\n\nresult = "TBD"\nif y < 2019:\n result = "heisei"\nelif m < 5:\n result = "heisei"\n\nprint(result)', 'y, m, d = map(int, input().split("/"))\n\nresult = "TBD"\nif y < 2019:\n result = "Heisei"\nelif m < 5:\n result = "Heisei"\n\nprint(result)'] | ['Wrong Answer', 'Accepted'] | ['s371368066', 's337563612'] | [2940.0, 2940.0] | [18.0, 17.0] | [134, 134] |
p03109 | u413165887 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["s = str(input())\na = s.split('/')\nif a[1]<=2019 and a[1] <=4 and a[2]<=30:\n print('Heisei')\nelse:\n print('TBD')", "s = str(input())\na = list(map(int,s.split('/')))\nif a[1]<=2019 and a[1] <=4 and a[2]<=30:\n print('Heisei')\nelse:\n print('TBD')"] | ['Runtime Error', 'Accepted'] | ['s537042281', 's443552004'] | [2940.0, 2940.0] | [17.0, 17.0] | [117, 132] |
p03109 | u415325136 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['input = str(input())\ninput.split(\'/\')\n\nif input[1] != \'10\':\n input[1].replace(\'0\', \'\')\ninput = int(input)\n\nif (input[0] > 2019) or ( (input[0] == 2019) and (input[1] > 4) ):\n print("TBD")\nelse:\n print("Heisei")', 's = input()\nm = int(s[5:7])\nif m <= 4:\n print("Heisei")\nelse:\n print("TBD")'] | ['Runtime Error', 'Accepted'] | ['s131532945', 's810437177'] | [3060.0, 2940.0] | [17.0, 17.0] | [213, 77] |
p03109 | u430414424 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['print(["TBD","Heisei"][int(20190430>=int(str(input()).replace("/","")))]', 'print(["TBD","Heisei"][int(20190430>=int(str(input()).replace("/","")))])\n\n\n'] | ['Runtime Error', 'Accepted'] | ['s909743051', 's280997812'] | [2940.0, 2940.0] | [18.0, 17.0] | [72, 76] |
p03109 | u440129511 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["s=input().split('/')\nif int(s[0])<2018:print('Heisei')\nelif int(s[1])==2019 and int(s[2])<=4:print('Heisei')\nelse:print('TBD')", "s=input().replace('/','').strip()\nif s<=20190430:print('Heisei')\nelse:print('TBD')", "s1,s2,s3=input().split('/')\nif s1<2018:print('Heisei')\nelif s1=='2019' and s2<='04':print('Heisei')\nelse:print('TBD')", "s=str(input().replace('/','').strip())\nif s<=20190430:print('Heisei')\nelse:print('TBD')", "s1,s2,s3=input().split('/')\ns=s1+s2+s3\nif s<=20190430:print('Heisei')\nelse:print('TBD')", "s=input().split('/')\nif int(s[0])<2018:print('Heisei')\nelif int(s[0])==2019 and int(s[1])<=4:print('Heisei')\nelse:print('TBD')"] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s120654257', 's204763752', 's413655229', 's544711043', 's630916853', 's829447867'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3316.0] | [19.0, 18.0, 17.0, 18.0, 17.0, 21.0] | [126, 82, 117, 87, 87, 126] |
p03109 | u440478998 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['import datetime\nt = datetime.datetime.strptime("2019/04/30","%Y/%m/%d")\ns = datetime.datetime.strptime(input(),"%Y/%m/%d")\nprint("Heise") if t>=s else print("TBD")', 'import datetime\nt = datetime.datetime.strptime("2019/04/30","%Y/%m/%d")\ns = datetime.datetime.strptime(input(),"%Y/%m/%d")\nprint("Heisei") if t>=s else print("TBD")'] | ['Wrong Answer', 'Accepted'] | ['s941408951', 's486991406'] | [10324.0, 10280.0] | [35.0, 39.0] | [163, 164] |
p03109 | u442948527 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S=input()\nprint(["Heisei,""TBD"][int(S[5:7]+S[8:10])>430])', 'print(["Heisei","TBD"][input()[5:7]>"04"])'] | ['Runtime Error', 'Accepted'] | ['s315917449', 's546648946'] | [9048.0, 8960.0] | [29.0, 27.0] | [58, 42] |
p03109 | u450221211 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['input = list(map(int, input().split("/")))\n\nheisei=20190430\ninput_kai=int(str(input[0])+str(input[1])+str(input[2]))\n\nif heisei<input_kai+1:\n print("Heisei")\nelse:\n print("TBD")\n', 'input = list(map(str, input().split("/")))\n\nheisei=20190430\n\ninput_kai=int(str(input[0])+input[1].zfill(2)+input[2].zfill(2))\nprint(input_kai)\n\nif input_kai<=heisei:\n print("Heisei")\nelse:\n print("TBD")\n', 'input = list(map(str, input().split("/")))\n\nheisei=20190431\n\ninput_kai=int(str(input[0])+input[1].zfill(2)+input[2].zfill(2))\nprint(input_kai)\n\nif heisei>=input_kai:\n print("Heisei")\nelse:\n print("TBD")\n', 'input = list(map(str, input().split("/")))\n\nheisei=20190430\ninput_kai=int(input[0].zfill(4)+input[1].zfill(2)+input[2].zfill(2))\n\nif input_kai<=heisei:\n print("Heisei")\nelse:\n print("TBD")\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s035321329', 's136220489', 's534024431', 's985168462'] | [2940.0, 3060.0, 2940.0, 2940.0] | [17.0, 19.0, 19.0, 17.0] | [204, 229, 229, 215] |
p03109 | u452015170 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['s = input()\ns = s.replace("/", "")\nif s <= 20190430 :\n print("Heisei")\nelse :\n print("TBD")', 's = input()\ns = int(s.replace("/", ""))\nif s <= 20190430 :\n print("Heisei")\nelse :\n print("TBD")'] | ['Runtime Error', 'Accepted'] | ['s723799216', 's008542669'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 102] |
p03109 | u456566864 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["from sys import stdin\n\narr = list(map(int, stdin.readline().split('/')))\nif arr[0] > 2019:\n print('Heisei')\nelse:\n if arr[1] > 4:\n print('Heisei')\n else:\n if arr[2] > 31:\n print('Heisei')\n else:\n print('TBD')", "from sys import stdin\n\narr = list(map(int, stdin.readline().split('/')))\nif arr[0] > 2019:\n print('TBD')\nelse:\n if arr[1] > 4:\n print('TBD')\n else:\n if arr[2] > 30:\n print('TBD')\n else:\n print('Heisei')\n"] | ['Wrong Answer', 'Accepted'] | ['s823133252', 's659686290'] | [3060.0, 2940.0] | [17.0, 17.0] | [230, 225] |
p03109 | u456595418 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["s = input().split('/')\nif s[0] <= 2018:\n print('Heisei')\nelif s[0] == 2019 and s[1] <=4:\n print('Heisei')\nelif s[0] == 2019 and s[1] >= 5:\n print('TBD')\nelif s[0] >= 2020:\n print('TBD')\n", "s =list(map(int,input().split('/')))\n\nif s[0] <= 2018:\n print('Heisei')\nelif s[0] == 2019 and s[1] <=4:\n print('Heisei')\nelif s[0] == 2019 and s[1] >= 5:\n print('TBD')\nelif s[0] >= 2020:\n print('TBD')\n"] | ['Runtime Error', 'Accepted'] | ['s305169142', 's736819851'] | [2940.0, 2940.0] | [17.0, 17.0] | [198, 213] |
p03109 | u456877307 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['a = input()\na = int(str.replace(a, "/", ""))\nif a <= 20190430:\n print("heisei")\nelse:\n print("TBD")\n', 'a = input()\na = int(str.replace(a, "/", ""))\nif a <= 20190430:\n print("Heisei")\nelse:\n print("TBD")'] | ['Wrong Answer', 'Accepted'] | ['s186545901', 's258167663'] | [2940.0, 2940.0] | [17.0, 17.0] | [106, 105] |
p03109 | u457460736 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S=input()\nif(S>"2019/04/30"):\n print("Heisei")\nelse:\n print("TBD")', 'Y,M,D=map(int,input().split("/"))\nif((Y<=2019 and M <= 4 and D <= 30) or Y<= 2018):\n print("Heisei")\nelse:\n print("TBD")'] | ['Wrong Answer', 'Accepted'] | ['s037958756', 's035817351'] | [8872.0, 9112.0] | [25.0, 27.0] | [68, 122] |
p03109 | u459233539 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['y,m,d = map(int,input().split(/))\nif y<2019 or (y==2019 and m <= 4):\n print("Heisei")\nelse:\n print("TBD")', 'y, m, d = map(str, input().split("/"))\nif int(y) < 2019 or (int(y) == 2019 and int(m) < 5):\n print("Heisei")\nelse:\n print("TBD")'] | ['Runtime Error', 'Accepted'] | ['s194292204', 's027022916'] | [2940.0, 2940.0] | [18.0, 19.0] | [107, 130] |
p03109 | u465101448 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["import datetime as dt\nS_T='2019/04/30'\nS_T=dt.datetime.strptime(S_T,'%Y/%m/%d')\nS=input()\nS=dt.datetime.strptime(S,'%Y/%m/%d')\n\nt_delta=S-S_T\nif t_delta.days < 0:\n print('Heisei')\nelse:\n print('TBD')\n", 'aa=2\n', "import datetime as dt\nS_T='2019/04/30'\nS_T=dt.datetime.strptime(S_T,'%Y/%m/%d')\n\nS=input()\nS=dt.datetime.strptime(S,'%Y/%m/%d')\n\nt_delta=S-S_T\nif t_delta.days <= 0:\n print('Heisei')\nelse:\n print('TBD')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s484023049', 's571880723', 's295457359'] | [4452.0, 2940.0, 4580.0] | [31.0, 17.0, 35.0] | [206, 5, 207] |
p03109 | u465468852 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['a, b, c = map(int, input().split("/"))\nprint("heisei") if b <= 4 else print("TBD")', 'a, b, c = map(int, input().split("/"))\nprint("Heisei") if b <= 4 else print("TBD")'] | ['Wrong Answer', 'Accepted'] | ['s143923117', 's887605527'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 82] |
p03109 | u466143662 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['s = input()\nif (s[:4] == 2019 and s[5] == 0 and s[6] <= 4) or (s[:4] < 2019):\n print("Heisei")\nelse:\n print("TBD")', 's = input()\nif s[:4] < 2019 or s[:4] == 2019 and s[6:7] <= 4:\n print("Heisei")', 's = int(input())\nif (s[:4] == 2019 and s[5] == 0 and s[6] <= 4) or (s[:4] < 2019):\n print("Heisei")\nelse:\n print("TBD")', 's=input()\ns = s.split("/")\nif s[0] < 2019:\n print("Heisei")\n\nif s[0] == 2019 and s[0]<= 4:\n print("Heisei")\nelse:\n print("TBD")', 's = input()\nif s[:4] < 2019 or s[:4] == 2019 and s[6] ==0 and s[7] <= 4:\n print("Heisei")\nelse:\n print("TBD")', 's = map(input())\nif (s[:4] == 2019 and s[5] == 0 and s[6] <= 4) or (s[:4] < 2019):\n print("Heisei")\nelse:\n print("TBD")', 's = input()\nif s[:4] == 2019 and s[6] <= 4 or s[:4] < 2019:\n print("Heisei")\nelse:\n print("TBD")', 's = input()\nif (s[:4] == 2019 and s[5] == 0 and s[6] <= 4) or (s[:4] < 2019):\n print("Heisei")\nelse:\n print("TBD")', 's=input()\ns = s.split("/")\nif s[0] < 2019:\n print("Heisei")\nif s[0] == 2019 and s[1]<= 4:\n print("Heisei")\nelse:\n print("TBD")', 's=input()\nif s[:4]==2019 and s[5]==0 and s[6]<=4 or s[:4]<2019:\n print("Heisei")\nelse:\n print("TBD")', 's = map(int, input())\nif (s[:4] == 2019 and s[5] == 0 and s[6] <= 4) or (s[:4] < 2019):\n print("Heisei")\nelse:\n print("TBD")', 's = input()\nif s[:4] < 2019 or s[:4] == 2019 and s[5] == 0 and s[6] <= 4:\n print("Heisei")\nelse:\n print("TBD")', 's = input()\nif s[:4] < 2019 or s[:4] == 2019 and s[6:7] <= 4:\n print("Heisei")\nelse:\n print("TBD")', 's = input()\nif s[:4] == 2019 and s[5] == 0 and s[6] <= 4 or s[:4] < 2019:\n print("Heisei")\nelse:\n print("TBD")', 's=input()\ns = s.split("/")\nif s[0] < 2019:\n print("Heisei")\nif s[0] == 2019 and s[1]<= "04":\n print("Heisei")\nelse:\n print("TBD")', 's=input()\ns = s.split("/")\nif s[0] < 2019:\n print("Heisei")\nif s[0] == 2019 and s[0]<= 4:\n print("Heisei")\nelse:\n print("TBD")', 's = input()\nif s[:4] == 2019 and s[5] == 0 and s[6] <= 4 or (s[:4] < 2019):\n print("Heisei")\nelse:\n print("TBD")', "s = input()\n\nif s < '2019/04/30':\n print('Heisei')\nelse:\n print('TBD')", 's = input()\nif (s[:4] < 2019) or (s[:4] == 2019 and s[5] == 0 and s[6] <= 4):\n print("Heisei")\nelse:\n print("TBD")', 's = input()\nif s[:4] == 2019 and s[5] == 0 and s[6] < 5:\n print("Heisei")\nelif s[:4] < 2019:\n print("Heisei")\nelse:\n print("TBD")', 's=input()\ns = s.split("/")\nif s[0] < 2019:\n print(\'Heisei\')\n break\nif s[0] == 2019 and s[0]<= 4:\n print(\'Heisei\')\nelse:\n print(\'TBD\')', 's = input()\nif s[:3] < 2019 or s[:3] == 2019 and s[5] ==0 and s[6] <= 4:\n print("Heisei")\nelse:\n print("TBD")', 's=input().split("/")\nif ((s[0] == 2019 and s[1] > 4) or s[0] > 2019):\n print("TBD")\nelse:\n print("Heisei")', 's = input()\nif s[:4] == 2019 and s[6] <= 4 or s[:4] < 2019:\n print("Heisei")\nelse:\n print("TBD")', 's = input()\nif s[:4] < 2019 or s[:4] == 2019 and s[5] ==0 and s[6] <= 4:\n print("Heisei")\nelse:\n print("TBD")', 's=str(input())\na=s.split("/")\nb=int("".join(a))\n\nif b <= 20190430:\n print("Heisei")\nelse:\n print("TBD")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s003635964', 's072562827', 's075981217', 's160762810', 's216429115', 's301231435', 's322701014', 's327295769', 's419615035', 's440330217', 's443334306', 's450515162', 's461781273', 's503689770', 's545050246', 's584938348', 's589002107', 's627429152', 's676656727', 's690712407', 's746411388', 's761068407', 's801328579', 's912702428', 's960902069', 's268478871'] | [2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 19.0, 17.0, 17.0, 17.0, 19.0, 17.0, 17.0] | [116, 79, 125, 136, 111, 125, 102, 120, 135, 102, 130, 112, 100, 112, 138, 135, 114, 76, 116, 138, 145, 111, 112, 98, 111, 109] |
p03109 | u473092610 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S = input()\ns = S.split(\'/\')\nss = int(s[1])\nres = \'aaa\'\n\nif ss<=4:\n\tres = "heisei"\n\nif ss >=5:\n\tres = "TBD"\nprint(res)', 'S = input()\ns = S.split(\'/\')\nss = int(s[1])\nres = \'aaa\'\n\nif ss<=4:\n\tres = "Heisei"\n\nif ss >=5:\n\tres = "TBD"\nprint(res)'] | ['Wrong Answer', 'Accepted'] | ['s012371948', 's347564887'] | [3060.0, 3060.0] | [19.0, 17.0] | [118, 118] |
p03109 | u474925961 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['import sys\n\nif sys.platform ==\'ios\':\n sys.stdin=open(\'input_file.txt\')\n \nS=input()\n\nif A<="2019/04/30":\n\tprint("Heisei")\nelse:\n\tprint("TBD")', 'import sys\n\nif sys.platform ==\'ios\':\n sys.stdin=open(\'input_file.txt\')\n \nS=input()\n\nif S<="2019/04/30":\n\tprint("Heisei")\nelse:\n\tprint("TBD")'] | ['Runtime Error', 'Accepted'] | ['s857286525', 's111393200'] | [2940.0, 2940.0] | [18.0, 18.0] | [146, 146] |
p03109 | u480200603 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['day = list(map(int, input().split("/")))\n\nif day[0] <= 2019:\n if day[1] <= 4:\n if day[2] <= 30:\n print("heisei")\n exit()\nprint("TBD")\n', 'day = list(map(int, input().split("/")))\n\nif day[0] <= 2019:\n if day[1] <= 4:\n if day[2] <= 30:\n print("Heisei")\n exit()\nprint("TBD")\n'] | ['Wrong Answer', 'Accepted'] | ['s267736575', 's373550543'] | [2940.0, 2940.0] | [17.0, 17.0] | [166, 166] |
p03109 | u480300350 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['L = list(map(int, input().split("/")))\nprint("Heisesi" if L[1] >= 5 else "TBD")', '#!/usr/bin/env python3\n\nimport sys\n# import math\n# from string import ascii_lowercase, ascii_upper_case, ascii_letters, digits, hexdigits\n# import re # re.compile(pattern) => ptn obj; p.search(s), p.match(s), p.finditer(s) => match obj; p.sub(after, s)\n# from operator import itemgetter # itemgetter(1), itemgetter(\'key\')\n\n# from collections import defaultdict # subclass of dict. defaultdict(facroty)\n# from collections import Counter # subclass of dict. Counter(iter): c.elements(), c.most_common(n), c.subtract(iter)\n# from heapq import heapify, heappush, heappop # built-in list. heapify(L) changes list in-place to min-heap in O(n), heappush(heapL, x) and heappop(heapL) in O(lgn).\n# from heapq import nlargest, nsmallest # nlargest(n, iter[, key]) returns k-largest-list in O(n+klgn).\n# from itertools import count, cycle, repeat # count(start[,step]), cycle(iter), repeat(elm[,n])\n# from itertools import groupby # [(k, list(g)) for k, g in groupby(\'000112\')] returns [(\'0\',[\'0\',\'0\',\'0\']), (\'1\',[\'1\',\'1\']), (\'2\',[\'2\'])]\n# from itertools import starmap # starmap(pow, [[2,5], [3,2]]) returns [32, 9]\n# from itertools import product, permutations # product(iter, repeat=n), permutations(iter[,r])\n# from itertools import combinations, combinations_with_replacement\n# from itertools import accumulate # accumulate(iter[, f])\n# from functools import reduce # reduce(f, iter[, init])\n# from functools import lru_cache # @lrucache ...arguments of functions should be able to be keys of dict (e.g. list is not allowed)\n# from bisect import bisect_left, bisect_right # bisect_left(a, x, lo=0, hi=len(a)) returns i such that all(val<x for val in a[lo:i]) and all(val>-=x for val in a[i:hi]).\n# from copy import deepcopy # to copy multi-dimentional matrix without reference\n# from fractions import gcd # for Python 3.4 (previous contest @AtCoder)\n\n\ndef main():\n mod = 1000000007 # 10^9+7\n inf = float(\'inf\') # sys.float_info.max = 1.79...e+308\n # inf = 2 ** 64 - 1 # (for fast JIT compile in PyPy) 1.84...e+19\n sys.setrecursionlimit(10**6) # 1000 -> 1000000\n def input(): return sys.stdin.readline().rstrip()\n def ii(): return int(input())\n def mi(): return map(int, input().split())\n def mi_0(): return map(lambda x: int(x)-1, input().split())\n def lmi(): return list(map(int, input().split()))\n def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))\n def li(): return list(input())\n \n \n L = list(map(int, input().split(\'/\')))\n print(\'Heisei\') if L <= [2019, 4, 30] else print(\'TBD\')\n \n\nif __name__ == "__main__":\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s628439625', 's154442831'] | [2940.0, 3064.0] | [20.0, 17.0] | [79, 2968] |
p03109 | u481026841 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["s = input()\nif s[6] >= 5:\n print('TBD')\nelse:\n print('Heisei')", "a,b,c = map(int,input().split('/'))\nif a > 2019 or a == 2019 and b >= 5:\n print('TBD')\nelse:\n print('Heisei')"] | ['Runtime Error', 'Accepted'] | ['s753967744', 's631631145'] | [2940.0, 2940.0] | [17.0, 17.0] | [68, 115] |
p03109 | u485566817 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S = list(map(int, input().split("/")))\nif S[0] < 2019:\n print("TBD")\nelif S[0] == 2019 and S[1] <= 4:\n print("TBD")\nelse:\n print("Heisei")', 'y, m, d = map(int, input().split("/"))\nprint(\'Heisei\' if y*10000 + m*100 + d <= 20190430 else "TBD")'] | ['Wrong Answer', 'Accepted'] | ['s507494091', 's849220515'] | [2940.0, 2940.0] | [17.0, 17.0] | [147, 100] |
p03109 | u487288850 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['s=input()\nl=list(map(int,s.split("/")))\nif l[0] <=2018 or l[0] ==2019 and (l[1]<=3 or l[1] ==4 and l[2]<=30):\n print(\'TBD\')\nelse:\n print("Heisei")', 's=input()\nl=list(map(int,s.split("/")))\nif l[0] <=2018 or l[0] ==2019 and (l[1]<=3 or l[1] ==4 and l[2]<=30):\n print(\'Heisei\')\nelse:\n print("TBD")'] | ['Wrong Answer', 'Accepted'] | ['s495719612', 's270679130'] | [9116.0, 8980.0] | [29.0, 27.0] | [152, 152] |
p03109 | u488934106 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['def still_tdb(s):\n\n return "Heisei" if s < "2019/04/30" else "TBD"\ndef main():\n s = str(input())\n print(still_tdb(s))\n\nif __name__ == \'__main__\':\n main()', 'def still_tdb(s):\n\n return "Heisei" if s <= "2019/04/30" else "TBD"\ndef main():\n s = str(input())\n print(still_tdb(s))\n\nif __name__ == \'__main__\':\n main()'] | ['Wrong Answer', 'Accepted'] | ['s417538982', 's193516629'] | [2940.0, 2940.0] | [17.0, 17.0] | [165, 166] |
p03109 | u492373312 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['s=input()\nif s > "2019/04/30"\n print("TBD")\nelse\n print("Heisei")', 's=input()\nif s > "2019/04/30":\n print("TBD")\nelse:\n print("Heisei")'] | ['Runtime Error', 'Accepted'] | ['s016399512', 's527435913'] | [2940.0, 2940.0] | [17.0, 17.0] | [67, 69] |
p03109 | u493016900 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['print "Hello"', "S = input()\nif S <= '2019/04/30':\n print('Heisei')\nelse:\n print('TBD')"] | ['Runtime Error', 'Accepted'] | ['s559872157', 's700270765'] | [2940.0, 2940.0] | [18.0, 17.0] | [13, 76] |
p03109 | u498877612 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["s = input().split('/')\ndate = ''\nfor i in s:\n date += i\nprint(date)\nprint('Heisei') if int(date) <=20190430 else print('TBD')", "s = input().split('/')\ndate = ''\nfor i in s:\n date += i\nprint(date)\nprint('Heisei') if int(date) <=20190430 else print('TBD')", "s = input().split('/')\ndate = ''\nfor i in s:\n date += i\nprint('Heisei') if int(date) <=20190430 else print('TBD')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s228292669', 's697683980', 's302568928'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [128, 128, 116] |
p03109 | u501952592 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['from datetime import datetime\n\nS = input()\ndate = datetime.strptime(S, "%Y/%m/%d")\nif date > datetime(2019, 4, 30):\n print("TDB")\nelse:\n print("HEISEI")', 'from datetime import datetime\n\nS = input()\ndate = datetime.strptime(S, "%Y/%m/%d")\nif date > datetime(2019, 4, 30):\n print("TBD")\nelse:\n print("Heisei")'] | ['Wrong Answer', 'Accepted'] | ['s638502476', 's816839450'] | [4436.0, 4308.0] | [30.0, 29.0] | [154, 154] |
p03109 | u502028059 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["S = input()\ny,m,d = map(int,S.split('/'))\nans = 'TBD'\nif y > 2018 and m > 3 and d > 30:\n ans = 'Heisei'\nelif y > 2019:\n ans = 'Heisei'\n\nprint(ans)", "S = input()\ny,m,d = map(int,S.split('/'))\nans = 'TBD'\nif y <= 2019 and m <= 4 and d <= 30 or y < 2018:\n ans = 'Heisei'\nprint(ans)\n\n\n"] | ['Wrong Answer', 'Accepted'] | ['s074674239', 's834971986'] | [2940.0, 2940.0] | [17.0, 17.0] | [152, 135] |
p03109 | u503111914 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['a = list(map(int,input().split(/)))\nif a[1] > 4:\n print("TBD")\nelse:\n print("Heisei")\n', 'a = list(map(int,input().split("/")))\nif a[1] > 4:\n print("TBD")\nelse:\n print("Heisei")\n'] | ['Runtime Error', 'Accepted'] | ['s569065214', 's605366192'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 90] |
p03109 | u505893372 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S = input().split("/")\n \nif int(S[5]) < 5 and int(S[4]) == 0 :\n\tprint(\'Heisei\')\nelse :\n\tprint(\'TBD\')', 'S = input().split("/")\n\nif int(S[5]) < 5 :\n\tprint(\'Heisei\')\nelse :\n\tprint(\'TBD\')', 'S = datetime(input())\n\nif S <= 2019/04/30 :\n\tprint("Heisei")\nelse :\n\tprint("TBD")\n', 'S = input().sprint("/")\n\nif int(S[5]) < 5 :\n\tprint(\'Heisei\')\nelse :\n\tprint(\'TBD\')', 'S = input().split("/")\n\nif S[5] < 5 :\n\tprint(\'Heisei\')\nelse :\n\tprint(\'TBD\')', 'S = input().split("/")\n\nif int(S[5]) < 5 :\n\tprint(\'Heisei\')\nelse :\n\tprint(\'TBD\')', 'S = input().split("/")\n\nif int(S[5]) < 5\u3000and s[4] == 0 :\n\tprint(\'Heisei\')\nelse :\n\tprint(\'TBD\')', 'S = int(input().split("/"))\n\nif S[5] < 5 :\n\tprint(\'Heisei\')\nelse :\n\tprint(\'TBD\')', 'S = input().split("/")\n\nif int(S[5]) < 5 and s[4] ==0 :\n\tprint(\'Heisei\')\nelse :\n\tprint(\'TBD\')', 'import datetime\n\nS = input().datetime\n\nif S <= 2019/04/30 :\n\tprint("Heisei")\nelse :\n\tprint("TBD")\n\n', 'S = input().split("/")\n \nif int(S[5]) < 5 and int(s[4]) ==0 :\n\tprint(\'Heisei\')\nelse :\n\tprint(\'TBD\')', 's = input()\n\nif s <= "2019/04/30":\n print("Heisei")\nelse:\n print("TBD")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s008198452', 's042674185', 's200103638', 's268117981', 's279344698', 's405822963', 's435630680', 's671263029', 's729326615', 's773776018', 's833022493', 's011990587'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 3188.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0, 19.0, 19.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [100, 80, 82, 81, 75, 80, 96, 80, 93, 99, 99, 78] |
p03109 | u506587641 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["s = list(input())\nk = [s[0], s[1], s[2], s[3]]\nl = [s[5], s[6]]\na = ''.join(int(_) for _ in k)\nb = ''.join(int(_) for _ in l)\n\nif a > 2019:\n print('TBD')\n\nelif a == 2018 and b > 4:\n print('TBD')\n\nelse:\n print('Heisei')", "s = list(input(s))\nk = [s[0], s[1], s[2], s[3]]\nl = [s[5], s[6]]\na = int(''.join(k))\nb = int(''.join(l))\n\nif a > 2019:\n print('TBD')\n\nelif a == 2018 and b > 4:\n print('TBD')\n\nelse:\n print('Heisei')", "s = input()\ns1 = [s[0], s[1], s[2], s[3]]\ns2 = [s[5], s[6]]\n\nt1 = int(''.join(s1))\nt2 = int(''.join(s2))\n\nif t1 > 2019:\n print('TBD')\n\nelif t1 == 2019 and t2 > 4:\n print('TBD')\n\nelse:\n print('Heisei')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s368929771', 's412855140', 's562986063'] | [3060.0, 3064.0, 3060.0] | [17.0, 17.0, 17.0] | [227, 206, 210] |
p03109 | u509190442 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['a=\'2020/03/30\'\nd=a.split(sep=\'/\')\nif(int(d[0])<2019):\n print("Heisei")\nelif(int(d[0])==2019 and int(d[1])<4):\n print("Heisei")\nelif(int(d[0])==2019 and int(d[1])==4 and int(d[2])<=30):\n print("Heisei")\nelse:\n print("TBD")', 'a=str(input())\nd=a.split(sep=\'/\')\nif(int(d[0])<2019):\n print("Heisei")\nelif(int(d[0])==2019 and int(d[1])<4):\n print("Heisei")\nelif(int(d[0])==2019 and int(d[1])==4 and int(d[2])<=30):\n print("Heisei")\nelse:\n print("TBD")'] | ['Wrong Answer', 'Accepted'] | ['s886840575', 's778750291'] | [3064.0, 3064.0] | [21.0, 18.0] | [249, 249] |
p03109 | u511449169 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["s = [int(input().split('/')) for _ in range(3)]\n\nif s[0] <= 2019 and s[1] <= 4 and s[-1] <= 30:\n print('Heisei')\nelse:\n print('TBD')", "s = [int(i) for i in input().split('/')]\n\nif s[0] <= 2019 and s[1] <= 4 and s[-1] <= 30:\n print('Heisei')\nelse:\n print('TBD')"] | ['Runtime Error', 'Accepted'] | ['s011395120', 's955364158'] | [2940.0, 2940.0] | [17.0, 17.0] | [134, 127] |
p03109 | u512315557 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['import datetime\n\nS = input().strip()\ndt_S = datetime.datetime.strptime(S, \'%Y/%m/%d\')\n\nLastHeisei = \'2019/04/30\'\ndt_LastHeisei = datetime.datetime.strptime(LastHeisei, \'%Y/%m/%d\')\n\nif dt_S > dt_LastHeisei:\n print ("TBD")\nelse:\n print ("heisei")', 'S = input()\n\nif S <= "2019/04/30":\n print("Heisei")\nelse:\n print("TBD")'] | ['Wrong Answer', 'Accepted'] | ['s514821735', 's017455319'] | [4336.0, 2940.0] | [33.0, 17.0] | [246, 77] |
p03109 | u513081876 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["\nS = input()\nS = S.replace('/', '')\n\nif int(S) - 2019430 > 0:\n print('TBD')\nelse:\n print('Heisei')\n\n", "S = input()\nS = S.replace('/', '')\n\nif int(S) - 20190430 > 0:\n print('TBD')\nelse:\n print('Heisei')\n\n"] | ['Wrong Answer', 'Accepted'] | ['s927423193', 's705990924'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 102] |
p03109 | u514383727 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['y, m, d = map(int, input().split("/"))\nprint(y, m, d)\nif m >= 5:\n print("TBD")\nelse:\n print("Heisei")\n', 'y, m, d = map(int, input().split("/"))\nif m >= 5:\n print("TBD")\nelse:\n print("Heisei")\n'] | ['Wrong Answer', 'Accepted'] | ['s102207615', 's653306676'] | [2940.0, 2940.0] | [17.0, 17.0] | [108, 93] |
p03109 | u514894322 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["s = str(input())\nmon = int(s[5:7])\nprint (mon)\nif mon > 5:\n print('TBD')\nelse:\n print('Heisei')", "s = str(input())\nmon = int(s[5:7])\nif mon >= 5:\n print('TBD')\nelse:\n print('Heisei')\n"] | ['Wrong Answer', 'Accepted'] | ['s724851952', 's035432533'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 87] |
p03109 | u516554284 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["n=input()\nif int('n[5]+n[6]') >=5:\n print('TBD'):\nelse:\n print('Heisei')\n", "n=input()\nif int(n[5]+n[6]) >=5:\n print('TBD'):\nelse:\n print('Heisei')", "n=input()\nif int(n[5]+n[6]) >=5:\n print('TBD')\nelse:\n print('Heisei')\n\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s202514838', 's335245289', 's738091949'] | [2940.0, 2940.0, 3064.0] | [17.0, 17.0, 17.0] | [75, 72, 73] |
p03109 | u519452411 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['import datetime\n\nslist = input().split("/")\n\nkirikae = datetime.datetime(2019,4,30)\ninputlist = datetime.datetime(int(slist[0]),int(slist[1]),int(slist[2]))\nprint(kirikae)\nprint(inputlist)\nif kirikae < inputlist:\n print("TBD")\nelse:\n print("Heisei")', 'import datetime\n\nslist = input().split("/")\n\nkirikae = datetime.datetime(2019,4,30)\ninputlist = datetime.datetime(int(slist[0]),int(slist[1]),int(slist[2]))\nif kirikae < inputlist:\n print("TBD")\nelse:\n print("Heisei")'] | ['Wrong Answer', 'Accepted'] | ['s517412575', 's159655684'] | [3316.0, 3312.0] | [19.0, 18.0] | [251, 219] |
p03109 | u522726434 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['N, A, B, C = [int(x) for x in input().split()]\nl = []\nfor i in range(N):\n l.append(int(input()))\n \ndef dfs(cur, a, b, c):\n if cur == N:\n return abs(a - A) + abs(b - B) + abs(c - C) - 30 if min(a, b, c) > 0 else 1000000\n ret0 = dfs(cur + 1, a, b, c)\n ret1 = dfs(cur + 1, a + l[cur], b, c) + 10\n ret2 = dfs(cur + 1, a, b + l[cur], c) + 10\n ret3 = dfs(cur + 1, a, b, c + l[cur]) + 10\n return min(ret0, ret1, ret2, ret3)\n \nprint(dfs(0, 0, 0, 0))', 'y, m, d = list(input().split(\'/\'))\n\nn = int(y + m + d)\n\nif n <= 20190430:\n print("Heisei")\nelse:\n print("TBD")'] | ['Runtime Error', 'Accepted'] | ['s674003983', 's291686202'] | [3064.0, 2940.0] | [18.0, 18.0] | [451, 112] |
p03109 | u524046379 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["date = map(int,input().split('/'))\nprint('TBD' if data[0]>=2019 and data[1]*30+data[2]>=150 else 'Heisei') ", "date =list(map(int,input().split('/')))\nprint('TBD' if date[1]*31+date[2]>=155 else 'Heisei')"] | ['Runtime Error', 'Accepted'] | ['s432574556', 's158574349'] | [2940.0, 2940.0] | [17.0, 17.0] | [107, 93] |
p03109 | u525227429 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S = map(int, input().split("/"))\nif S[1] > 4:\n print("TBD")\nelse:\n print("Heisei")', 'S = list(map(int, input().split("/")))\nif S[1] > 4:\n print("TBD")\nelse:\n print("Heisei")'] | ['Runtime Error', 'Accepted'] | ['s539990224', 's548245119'] | [2940.0, 2940.0] | [18.0, 18.0] | [84, 90] |
p03109 | u525987461 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["S = input()\n2 print('Heisei' if S <= '2019/04/30' else 'TBD')\n", "S = input()\nprint('Heisei' if S <= '2019/04/30' else 'TBD')\n"] | ['Runtime Error', 'Accepted'] | ['s412308069', 's792127391'] | [2940.0, 2940.0] | [17.0, 17.0] | [62, 60] |
p03109 | u527261492 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["S=input()\ns=S[6:8]\nif '0' in s:\n if s == '10':\n s = s\n else:\n s = s.replace('0','')\nn = int(s)\nif n<=4:\n print('Heisei')\nelse:\n print('TBD')\n \n ", "S=input()\nu=S[7:8]\nU=int(u)\nif U<=4:\n print('Heisei')\nelse:\n print('TBD')\n", "S=input()\nu=s[6:8]\nU=int(u)\nif U<=4:\n print('Heisei')\nelse:\n print('TBD')\n", "S=input()\ns=S[6:8]\nif '0' in s:\n if s == '10':\n s = s\n else:\n s = s.strip('0')\nn = int(s)\nif n<=4:\n print('Heisei')\nelse:\n print('TBD')\n \n \n", "S=input()\nu=S[6:8]\nU=int(u)\nif U<=4:\n print('Heisei')\nelse:\n print('TBD')\n", 'y,m,d = map(int,input().split("/"))\nif m<=4:\n print(\'Heisei\')\nelse:\n print(\'TBD\')'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s310822631', 's544952557', 's551799797', 's884963975', 's977710101', 's447045269'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 18.0, 17.0, 17.0] | [157, 80, 80, 154, 80, 83] |
p03109 | u527993431 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S=input()\nM=S[5]*10+S[6]\nif M>4:\n\tprint("TBD")\nelse:\n\tprint("Heisei")', 'S=input()\n\nM=int(S[5])*10+int(S[6])\nif M>4:\n\tprint("TBD")\nelse:\n\tprint("Heisei")'] | ['Runtime Error', 'Accepted'] | ['s463745908', 's596786742'] | [2940.0, 2940.0] | [17.0, 17.0] | [69, 80] |
p03109 | u528470578 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S = str(input())\nfrom datetime import datetime as dt\ndtime = dt.strptime(S, \'%Y/%m/%d\')\ntarget = dt(2019, 4, 30, 0, 0)\nif dtime <= target:\n print("heisei")\nelse:\n print("TBD")', 'S = str(input())\nprint(\'Heisei\' if S <= "2019/04/30" else "TBD")'] | ['Wrong Answer', 'Accepted'] | ['s050299689', 's944432417'] | [4592.0, 2940.0] | [35.0, 17.0] | [181, 64] |
p03109 | u531055770 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["import sys\nimport datetime\n\nlines = sys.stdin.readlines()\nX = lines[0]\n\nd = datetime.datetime.strptime(X, '%Y/%m/%d')\n\nif d > datetime.datetime(2019,4,30):\n print('TBD')\nelse:\n print('Heisei')\n", "import sys\nimport datetime\n\nlines = sys.stdin.readlines()\nX = lines[0]\n\nd = datetime.datetime.strptime(X, '%Y/%m/%d')\n\nif d > datetime.datetime(2019,4,30):\n print('TBD')\nelse:\n print('Heisei')\n\n", "import sys\n\nlines = sys.stdin.readlines()\nS = lines[0]\n\nSs = S.split('/')\n\nif int(Ss[0]) >= 2019:\n if int(Ss[1]) >= 5:\n print('TBD')\n exit(0)\nprint('Heisei')\n\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s836646594', 's900412546', 's796266324'] | [4324.0, 4708.0, 2940.0] | [32.0, 115.0, 17.0] | [195, 196, 166] |
p03109 | u536654075 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["S=input()\nYMD=int(''.join(S.split('/')))\nif YMD > 20190430:\n print('heisei')\nelse:\n print('TBD')", "S=input()\nYMD=int(''.join(S.split('/')))\nif YMD > 20190430:\n print('TBD')\nelse:\n print('Heisei')"] | ['Wrong Answer', 'Accepted'] | ['s011424119', 's606083430'] | [2940.0, 2940.0] | [17.0, 17.0] | [98, 98] |
p03109 | u538632589 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['s = input()\ny = int(s[0:4])\nm = int(s[5:7])\nd = int(s[8:])\n\nif y > 2019:\n print("TBD")\nelif y == 2019 and m > 4:\n print("TBD")\nelse:\n print("HEISEI")', 's = input()\nm = int(s[5:7])\n\nif m > 4:\n print("TBD")\nelse:\n print("Heisei")'] | ['Wrong Answer', 'Accepted'] | ['s450994682', 's796027529'] | [3316.0, 2940.0] | [21.0, 17.0] | [158, 81] |
p03109 | u538774896 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['import sys\nfrom datetime import datetime\n\ndef main():\n line = sys.stdin.readline().strip()\n today = datetime.strptime(line, "%Y/%m/%d")\n TBD = datetime(2019, 5, 1)\n if today < TBD:\n print("HEISEI")\n else:\n print("TBD")\nif __name__ == "__main__":\n main()', 'import sys\nfrom datetime import datetime\n\ndef main():\n line = sys.stdin.readline()\n today = datetime.strptime(line, "%Y/%m/%d")\n TBD = datetime(2019, 5, 1)\n if today < TBD:\n print("HEISEI")\n else:\n print("TBD")\n\nif __name__ == "__main__":\n main()', 'import sys\nfrom datetime import datetime\n\ndef main():\n line = sys.stdin.readline()\n today = datetime.strptime(line, "%Y/%m/%d")\n TBD = datetime(2019, 5, 1)\n if today < TBD:\n print("HEISEI")\n else:\n print("TBD")\nif __name__ == "__main__":\n main()', 'import sys\nfrom datetime import datetime\n\ndef main():\n line_num = 0\n for line in sys.stdin.readlines():\n today = datetime.strptime(line, "%Y/%m/%d")\n TBD = datetime(2019, 5, 1)\n if today < TBD:\n print("HEISEI")\n else:\n print("TBD")\nif __name__ == "__main__":\n main()', 'import sys\nfrom datetime import datetime\n\ndef main():\n line = sys.stdin.readline().strip()\n today = datetime.strptime(line, "%Y/%m/%d")\n TBD = datetime(2019, 5, 1)\n if today < TBD:\n print("Heisei")\n else:\n print("TBD")\n\nif __name__ == "__main__":\n main()'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s186700545', 's380661483', 's794037315', 's848695041', 's432738506'] | [4440.0, 4328.0, 4448.0, 4440.0, 4312.0] | [30.0, 29.0, 30.0, 32.0, 29.0] | [285, 278, 277, 325, 286] |
p03109 | u538956308 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['import datetime\ndate_str = input()\ndate_formatted = datetime.datetime.strptime(date_str, "%Y/%m/%d")\nlast_heisei = datetime.datetime(2019, 4, 30, 0, 0, 0)\nif date_formatted < last_heisei:\n print("Heisei")\nelse:\n print("TBD")', 'import datetime\ndate_str = input()\ndate_formatted = datetime.datetime.strptime(date_str, "%Y/%m/%d")\nlast_heisei = datetime.datetime(2019, 4, 30, 0, 0, 0)\nif date_formatted <= last_heisei:\n print("Heisei")\nelse:\n print("TBD")'] | ['Wrong Answer', 'Accepted'] | ['s837324344', 's047387822'] | [4464.0, 4336.0] | [32.0, 30.0] | [226, 227] |
p03109 | u545368057 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['from datetime import datetime as dt\ndate0 = dt(2019,4,30)\ndate = input()\ntdate =dt.strptime(date, \'%Y/%m/%d\')\nif date0 > tdate:\n print("HEISEI")\nelse:\n print("TBD")', 'from datetime import datetime as dt\ndate0 = dt(2019,4,30)\ndate = input()\ntdate =dt.strptime(date, \'%Y/%m/%d\')\nif date0 > tdate:\n print("Heisei")\nelse:\n print("TBD")', 'from datetime import datetime as dt\ndate0 = dt(2019,4,30)\ndate = input()\ntdate =dt.strptime(date, \'%Y/%m/%d\')\nif date0 >= tdate:\n print("Heisei")\nelse:\n print("TBD")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s547115164', 's854069622', 's360917661'] | [4692.0, 4308.0, 4308.0] | [44.0, 34.0, 30.0] | [170, 170, 171] |
p03109 | u546853743 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["y,m,d=map(int,input().split('/'))\nif y < 2020 and m < 05:\n print('Heisei')\nelse:\n print('TBD')", "\ny,m,d=map(int,input().split('/'))\nif y < 2020 and m < 5:\n print('Heisei')\nelse:\n print('TBD')"] | ['Runtime Error', 'Accepted'] | ['s601778104', 's769728212'] | [8988.0, 9156.0] | [21.0, 24.0] | [100, 100] |
p03109 | u548545174 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["s = input()\nm = s[5:7]\nif int(m)>=5:\n print('Heisei')\nelse:\n print('TBD')", "s = input()\nm = s[5:7]\nif int(m)>=5:\n print('TBD')\nelse:\n print('Heisei')"] | ['Wrong Answer', 'Accepted'] | ['s512900192', 's084575269'] | [2940.0, 2940.0] | [18.0, 17.0] | [79, 79] |
p03109 | u548834738 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["S = input()\nm = S[5:7]\nif int(m) <= 4:\n print('HeiSei')\nelse:\n print('TBD') ", "S = input()\nm = S[5:7]\nif int(m) <= 4:\n print('Heisei')\nelse:\n print('TBD') \n"] | ['Wrong Answer', 'Accepted'] | ['s416978818', 's134381358'] | [3060.0, 2940.0] | [19.0, 18.0] | [79, 80] |
p03109 | u550535134 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S = input()\nif S[5] == "1":\n print("TBD")\n elif int(S[6]) > 4:\n print("TBD")\n else:\n print("Heisei")\n', 'S = input()\nif S[5] == "1":\n print("TBD")\n elif int(S[6]) > 4:\n print("TBD")\nelse:\n print("Heisei")\n', 'S = input()\nif S[5] == "1":\n print("TBD")\n elif S[6] > "4":\n print("TBD")\nelse:\n print("Heisei")', 'S = input()\nif S[5] == "1":\n print("TBD")\nelif int(S[6]) > 4:\n print("TBD")\nelse:\n print("Heisei")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s104845448', 's263128035', 's927327339', 's323778523'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [110, 106, 102, 102] |
p03109 | u551421506 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['from datetime.datetime import datetime\nS=datetime.strptime(S,\'%Y/%m/%d\')\nx=datetime.datetime(2019, 4, 30, 0, 0)\nif x>S:\n print(\'TBD\')\nelse:\n print("Heisei")', 'from datetime.datetime import datetime\ndatetime.datetime(2019, 4, 30, 0, 0)\nS=datetime.strptime(S,\'%Y/%m/%d\')\nx=datetime.datetime(2019, 4, 30, 0, 0)\nif x>S:\n print(\'TBD\')\nelse:\n print("Heisei")', 'Y,M,D=map(int,input().split("/"))\nif (Y,M,D)>(2019,4,30):\n print("TBD")\nelse:\n print("Heisei")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s589576518', 's961505212', 's530768854'] | [3312.0, 3312.0, 2940.0] | [20.0, 20.0, 18.0] | [164, 201, 97] |
p03109 | u552290152 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S = input()\n\nif S <= 2019/04/30:\n print("Heisei")\nelse:\n print("TBD")', 'S = input()\n \nif S <= "2019/04/30":\n print("Heisei")\nelse:\n print("TBD")'] | ['Runtime Error', 'Accepted'] | ['s509468034', 's044824237'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 74] |
p03109 | u556326496 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['date = input()\n\ndate = date.replace(\'/\', \'\')\nif date <= 20190430:\n print("Heisei")\nelse:\n print("TBD")\n', 'date = input()\n\ndate = int(date.replace(\'/\', \'\'))\nif date <= 20190430:\n print("Heisei")\nelse:\n print("TBD")\n'] | ['Runtime Error', 'Accepted'] | ['s278452814', 's183100399'] | [2940.0, 2940.0] | [18.0, 17.0] | [109, 114] |
p03109 | u556371693 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['s=input()\nif int(s[4:5])>4:\n print("TBD")\nelse:\n print("Heisei")', 's=input()\nif s[5]=="0":\n if int(s[6])>4:\n print(\'TBD\')\n else:\n print(\'Heisei\')\nelse:\n print(\'TBD\')'] | ['Runtime Error', 'Accepted'] | ['s774327301', 's549171085'] | [2940.0, 3060.0] | [17.0, 18.0] | [70, 121] |
p03109 | u558494840 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['from datetime import datetime\n\ntmp = input()\ntarget = datetime(int(tmp[:4]), int(tmp[5:7]), int(tmp[8:10]), 0, 0) \nfrom_dt = datetime(2019, 4, 30)\n\nif from_dt <= target:\n print("heisei")\nelse:\n print("TBD")\n\n', 'from datetime import datetime\n\ntmp = input()\ntarget = datetime(int(tmp[:4]), int(tmp[5:7]), int(tmp[8:10]), 0, 0) \nfrom_dt = datetime(2019, 4, 30)\n\nif from_dt >= target:\n print("Heisei")\nelse:\n print("TBD")\n\n'] | ['Wrong Answer', 'Accepted'] | ['s882261684', 's519243765'] | [3312.0, 3312.0] | [21.0, 19.0] | [210, 210] |
p03109 | u558699902 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['x=str(input())\nif int(x[:4])>2019:\n print("Heisei")\nelif int(x[:4])>=2019& int(x[5:7])>4:\n print("TBD")\n ', 'x=str(input())\nprint(x[:4])\nprint(x[5:7])\nif int(x[:4])>2019:\n print("Heisei")\nelif int(x[:4])>=2019& int(x[5:7])>4:\n print("TBD")\n ', 'x=str(input())\nif int(x[:4])>2019:\n\tprint("Heisei")\nelif int(x[:4])>=2019& int(x[5:7])>4:\n\tprint("Heisei")\nelse:\n \tprint("TBD")\n ', 'x=str(input())\nif int(x[:4])>2019:\n\tprint("TBD")\nelif int(x[:4])==2019 and int(x[5:7])>4:\n\tprint("TBD")\nelse:\n \tprint("Heisei")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s357611674', 's462641719', 's578152372', 's251414306'] | [2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 20.0] | [108, 135, 131, 128] |
p03109 | u558720836 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["import numpy as np\n \nINF = float('inf')\n\nn,A,B,C = [int(i) for i in input().split()]\n\nl = [int(input()) for i in range(n)]\n\ndef dfs(cur, a, b, c):\n \n if cur == n:\n return abs(a-A) + abs(b-B) + abs(c-C) - 30 if min(a,b,c) > 0 else INF\n \n ret0 = dfs(cur+1, a, b, c)\n ret1 = dfs(cur+1, a+l[cur], b, c) + 10\n ret2 = dfs(cur+1, a, b+l[cur], c) + 10\n ret3 = dfs(cur+1, a, b, c+l[cur]) + 10\n\n return min(ret0, ret1, ret2, ret3)\n\n\nprint(dfs(0,0,0,0))\n", 's = input().split("/")\n\nif (int(s[0]) <= 2019) and (int(s[1]) <= 4) and (int(s[2]) <= 30):\n print("Heisei")\nelse:\n print("TBD")\n\n'] | ['Runtime Error', 'Accepted'] | ['s235856177', 's574866794'] | [14448.0, 2940.0] | [149.0, 17.0] | [477, 135] |
p03109 | u559346857 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['s=int(input())\nprint("Heisei" if s<"2019/04/30" else "TBD")', 's=int(input())\nprint("Heisei" if s<="2019/04/30" else "TBD")', 's=input()\nprint("Heisei" if s<="2019/04/30" else "TBD")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s459356544', 's469469907', 's813103186'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [59, 60, 55] |
p03109 | u560264606 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['import numpy as np\n\n\ndef check(x, al, bl):\n rcost = np.inf\n for a in al:\n tmp_c = abs(a - x)\n for b in bl:\n t = abs(b - a)\n rcost = min(rcost, tmp_c + t, abs(b - x) + t)\n\n print(int(rcost))\n\n\nn = [int(each) for each in input().split()]\na, b, q = n[0], n[1], n[2]\n\nsl = np.zeros(a)\ntl = np.zeros(b)\nxl = np.zeros(q)\n\nfor i in range(a):\n sl[i] = int(input())\nfor i in range(b):\n tl[i] = int(input())\nfor i in range(q):\n xl[i] = int(input())\n\nresult = []\nfor x in xl:\n check(x, sl, tl)\n', "a = input()\na = a.replace('/', '')\n\n\nif int(a) > 20190430:\n print('TBD')\nelse:\n print('Heisei')\n"] | ['Runtime Error', 'Accepted'] | ['s684849493', 's364778947'] | [12400.0, 2940.0] | [148.0, 17.0] | [540, 102] |
p03109 | u560889512 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["a,b,c=map(int,input.split('/'))\nif b>4:\n print('TBD')\nelse:\n print('Heisei')", "a,b,c=map(int,input().split())\nif a>2019:\n print('TBD')\nelif a<2019:\n print('Heisei')\nelse:\n if b>4:\n print('TBD')\n elif b<=4:\n print('Heisei')\n ", "a,b,c=list(map(int,input.split('/')))\nif b>4:\n print('TBD')\nelse:\n print('Heisei')", "a,b,c=map(int,input().split('/'))\nif b>4:\n print('TBD')\nelse:\n print('Heisei')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s290596934', 's348410776', 's440206611', 's626904306'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [78, 158, 84, 80] |
p03109 | u561862393 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['a, b, q = map(int, input().split())\nsno = []\ntno = []\ndis = []\n \nfor i in range(a):\n sno.append(int(input()))\nsno.append(10000)\n \nfor i in range(b):\n tno.append(int(input()))\ntno.append(10000)\n \nfor i in range(q):\n dis.append(int(input()))\n \nfor i in range(q):\n sl = 0\n sr = 0\n tl = 0\n tr = 0\n \n for j in range(a):\n if sno[j] <= dis[i]:\n sl = dis[i] - sno[j]\n sr = sno[j+1] - dis[i]\n break\n else:\n pass\n \n for k in range(b):\n if tno[k] <= dis[i]:\n tl = dis[i] - tno[k]\n tr = tno[k+1] - dis[i]\n break\n else:\n pass\n \n lds = max(sl, tl)\n rds = max(sr, tr)\n dis = min(lds, rds)\n print(dis)', 'date = input()\ntdate=()\n \nfor s in date:\n tdate.insert(s)\n \nif tdate(5) != 0:\n mon = int(tdate(5) + tdate(6))\nelse:\n mon = int(tdate(6))\n \nif mon <= 4:\n print("Heisei")\nelse:\n print("TBD")', 'date = input()\ntdate=()\n \nfor s in date:\n tdate.insert(s)\n \nif tdate(5) != "0":\n mon = int(tdate(5) + tdate(6))\nelse:\n mon = int(tdate(6))\n \nif mon <= 4:\n print("Heisei")\nelse:\n print("TBD")', 'date = input()\ntdate=()\n\nfor s in date:\n ldate.insert(s)\n\n#syr = none\n\n\n#yer = int(syr)\n\nif ldate(5) != 0:\n mon = int(ldate(5) + ldate(6))\nelse:\n mon = int(ldate(6))\n\n\n\n#else:\n\n \nif mon <= 4:\n print("Heisei")\nelse:\n print("TBD")', 'a, b, q = map(int, input().split())\nsno = [-10e6] + [int(input()) for _ in range(a)] + [10e6]\ntno = [-10e6] + [int(input()) for _ in range(b)] + [10e6]\ndis = [int(input()) for _ in range(q)]\n \nfor i in range(q):\n \n sl = 0\n sr = 0\n tl = 0\n tr = 0\n \n for j in range(a+2):\n if sno[j] >= dis[i]:\n sl = dis[i] - sno[j-1]\n sr = sno[j] - dis[i]\n break\n else:\n pass\n \n for k in range(b+2):\n if tno[k] >= dis[i]:\n tl = dis[i] - tno[k-1]\n tr = tno[k] - dis[i]\n break\n else:\n pass\n \n lds = max(sl, tl)\n rds = max(sr, tr)\n ans = min(lds, rds)\n print(ans)', 'date = input()\ntdate=[]\n \nfor s in date:\n tdate.insert[s]\n \nif tdate[5] != "0":\n mon = int(tdate[5] + tdate[6])\nelse:\n mon = int(tdate[6])\n \nif mon <= 4:\n print("Heisei")\nelse:\n print("TBD")', 'a, b, q = map(int, input().split())\nsno = []\ntno = []\ndis = []\n \nfor i in range(a):\n sno.append(int(input()))\nsno.append(10000)\n \nfor i in range(b):\n tno.append(int(input()))\ntno.append(10000)\n \nfor i in range(q):\n dis.append(int(input()))\n\nfor i in range(q):\n sl = 0\n sr = 0\n tl = 0\n tr = 0\n \n for j in range(a):\n if sno[j] <= dis[i]:\n sl = dis[i] - sno[j]\n sr = sno[j+1] - dis[i]\n break\n else:\n pass\n \n for k in range(b):\n if tno[k] <= dis[i]:\n tl = dis[i] - tno[k]\n tr = tno[k+1] - dis[i]\n break\n else:\n pass\n \n lds = max(sl, tl)\n rds = max(sr, tr)\n dis = min(lds, rds)\n print(dis)\n', 'a, b, q = map(int, input().split())\nsno = [-10e6] + [int(input()) for _ in range(a)] + [10e6]\ntno = [-10e6] + [int(input()) for _ in range(b)] + [10e6]\ndis = [int(input()) for _ in range q]\n\nfor i in range(q):\n \n sl = 0\n sr = 0\n tl = 0\n tr = 0\n \n for j in range(a+2):\n if sno[j] >= dis[i]:\n sl = dis[i] - sno[j-1]\n sr = sno[j] - dis[i]\n break\n else:\n pass\n \n for k in range(b+2):\n if tno[k] >= dis[i]:\n tl = dis[i] - tno[k-1]\n tr = tno[k] - dis[i]\n break\n else:\n pass\n \n lds = max(sl, tl)\n rds = max(sr, tr)\n ans = min(lds, rds)\n print(ans)', 'date = input()\ntdate=[]\n \nfor s in date:\n tdate.append(s)\n \nif tdate[5] != "0":\n mon = int(tdate[5] + tdate[6])\nelse:\n mon = int(tdate[6])\n\n\nif mon <= 4:\n print("Heisei")\nelse:\n print("TBD")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s209475822', 's257810349', 's428616521', 's447380221', 's535835213', 's675016549', 's746298205', 's798440286', 's888279069'] | [3064.0, 2940.0, 2940.0, 2940.0, 3064.0, 2940.0, 3064.0, 3188.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 18.0, 17.0, 18.0, 18.0, 17.0] | [667, 194, 196, 349, 688, 196, 656, 686, 196] |
p03109 | u565380863 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['import sys\nfrom itertools import product\n\nimport numpy as np\n\nsys.setrecursionlimit(200000)\n\n\ndef input():\n return sys.stdin.readline()[:-1]\n\n\ndef ii(t: type = int):\n return t(input())\n\n\ndef il(t: type = int):\n return list(map(t, input().split()))\n\n\ndef imi(N: int, t: type = int):\n return [ii(t) for _ in range(N)]\n\n\ndef iml(N: int, t: type = int):\n return [il(t) for _ in range(N)]\n\n\ndef solve():\n print("Heisei" if ii(str) == "2019/04/30" else "TBD")\n\n\nif __name__ == "__main__":\n print(solve())\n', 'import sys\nfrom itertools import product\n\nimport numpy as np\n\nsys.setrecursionlimit(200000)\n\n\ndef input():\n return sys.stdin.readline()[:-1]\n\n\ndef ii(t: type = int):\n return t(input())\n\n\ndef il(t: type = int):\n return list(map(t, input().split()))\n\n\ndef imi(N: int, t: type = int):\n return [ii(t) for _ in range(N)]\n\n\ndef iml(N: int, t: type = int):\n return [il(t) for _ in range(N)]\n\n\ndef solve():\n return "Heisei" if ii(str) <= "2019/04/30" else "TBD"\n\n\nif __name__ == "__main__":\n print(solve())\n'] | ['Wrong Answer', 'Accepted'] | ['s575144900', 's702011382'] | [13028.0, 12248.0] | [179.0, 147.0] | [520, 520] |
p03109 | u565387531 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["s = str(input())\n\ns = s.split('/')\nif int(s[0]) >= 2019:\n if int(s[1]) >= 5:\n if int(s[2]) >= 1:\n print('TBD')\n exit()\n\nprint('heisei')", "s = str(input())\n\ns = s.split('/')\nif int(s[0]) >= 2019:\n if int(s[1]) >= 5:\n if int(s[2]) >= 1:\n print('TBD')\n exit()\n\nprint('Heisei')"] | ['Wrong Answer', 'Accepted'] | ['s293318710', 's445089538'] | [2940.0, 3060.0] | [17.0, 17.0] | [167, 167] |
p03109 | u569742427 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["S=input()\nS=S.replace('/','')\nif int(S)>20190430:\n print('TBD')\nelse:\n print('heisei')", "S=input()\nS=S.replace('/','')\nif int(S)>20190430:\n print('TBD')\nelse:\n print('Heisei')\n"] | ['Wrong Answer', 'Accepted'] | ['s844027685', 's892577123'] | [2940.0, 2940.0] | [18.0, 17.0] | [92, 93] |
p03109 | u571832343 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["s = input()\nif int(s[:4]) <= 2019:\n if int(s[5:7]) <= 4:\n if int(s[8:10]) < 30:\n print('Heisei')\n else:\n print('TBD')\n else:\n print('TBD')\nelse:\n print('TBD')", "s = input()\nif int(s[:4]) <= 2019:\n if int(s[5:7]) <= 4:\n if int(s[8:10]) < 30:\n print('Heisei')\n else:\n print('TBO')\n else:\n print('TBO')\nelse:\n print('TBO')", "s = input()\nif s > '2019/04/30':\n print('TBD')\nelse:\n print('Heisei')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s343840992', 's481530281', 's469164565'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [180, 180, 71] |
p03109 | u572343785 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['s=input()\n\nif int(s[:4]) < 2019:\n print("Heisei")\nelse:\n if int(s[5:7]) in ["01","02","03","04"]:\n print("Heisei")\n else:\n print("TBD")\n', 's=input()\n\nif int(s[:4]) < 2019:\n print("Heisei")\nelse:\n if s[5:7] in ["01","02","03","04"]:\n print("Heisei")\n else:\n print("TBD")\n \n'] | ['Wrong Answer', 'Accepted'] | ['s993013164', 's538522743'] | [2940.0, 2940.0] | [18.0, 17.0] | [159, 163] |
p03109 | u572542887 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['line = input().split("/")\n\nif(int(line[0]) <= 2019):\n if(int(line[1]) <= 5):\n print("Helsei")\n exit()\n\nprint("TBD")\n', 'line = input().split("/")\n\nif(int(line[0]) >= 2019):\n if(int(line[1]) > 4):\n print("TBD")\n exit()\n\nprint("Heisei")\n'] | ['Wrong Answer', 'Accepted'] | ['s872014555', 's500075862'] | [2940.0, 2940.0] | [17.0, 17.0] | [133, 132] |
p03109 | u573754721 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["print('Heisei' if int(input()[5:7])>4 else 'TBD')", "print('Heisei' if int(input()[5:7])<5 else 'TBD')"] | ['Wrong Answer', 'Accepted'] | ['s180624716', 's707666563'] | [2940.0, 2940.0] | [17.0, 17.0] | [49, 49] |
p03109 | u574053975 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['a=input().split(\'/\')\na=a[0]+a[1]+a[2]\nif int(a) > 2019430:\n print("TDB")\nelse:\n print(\'Heisei\')\n', 'a=input().split(\'/\')\na=a[0]+a[1]+a[2]\nif int(a) > 2019430:\n print("TBD")\nelse:\n print(\'Heisei\')\n', 'a=input().split(\'/\')\na=a[0]+a[1]+a[2]\nif int(a) > 2019430:\n print("TBD")\nelse:\n print(\'Heisei\')\n', 'a=input().split(\'/\')\na=a[0]+a[1]+a[2]:\nif int(a) > 2019430\n print("TDB")\nelse:\n print(\'Heisei\')\n', 'a=input().split(\'/\')\na=a[0]+a[1]+a[2]\nif int(a) > 2019430\n print("TDB")\nelse\n print(\'Heisei\')', 'a=input().split(\'/\')\na=a[0]+a[1]+a[2]\nif int(a) > 20190430:\n print("TBD")\nelse:\n print(\'Heisei\')'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s340128030', 's471632745', 's661712914', 's703170862', 's822331680', 's657796462'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0, 18.0, 18.0, 17.0] | [98, 98, 98, 98, 95, 98] |
p03109 | u575101291 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S=str(input())\nslice6=S[6]\nslice5=S[5]\nif int(slice6) < 5 and slice5 ==0:\n print("Heisei")\n else:\n print("TBD")\n', 'S=str(input())\nslice=S[6]\nif int(slice) < 5 and S[5] ==0:\n print("Heisei")\n else:\n print("TBD")', 'S=str(input())\nslice6=S[6]\nslice5=S[5]\nif int(slice) < 5 and slice5 ==0:\n print("Heisei")\n else:\n print("TBD")\n', 'S=str(input())\nslice6=S[6]\nslice5=S[5]\nif int(slice6) < 5 and slice5 ==0:\n print("Heisei")\nelse:\n print("TBD")\n', 'S=str(input())\nslice6=S[6]\nslice5=S[5]\nif int(slice6) < 5 and int(slice5) ==0:\n print("Heisei")\nelse:\n print("TBD")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s089769126', 's608369270', 's904282913', 's987620952', 's205578798'] | [2940.0, 3064.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [117, 100, 116, 113, 118] |
p03109 | u578378372 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['import datetime\n\ns = datetime.datetime.strptime(input(),\'%Y/%m/%d\')\nh = datetime.datetime.strptime(\'2019/4/30\',\'%Y/%m/%d\')\n\nif s <= h:\n print("heisei")\nelse:\n print("TBD")', 'import datetime\n\ns = datetime.datetime.strptime(input(),\'%Y/%m/%d\')\nh = datetime.datetime.strptime(\'2019/4/30\',\'%Y/%m/%d\')\n\nif s <= h:\n print("Heisei")\nelse:\n print("TBD")'] | ['Wrong Answer', 'Accepted'] | ['s369572538', 's385771112'] | [4336.0, 4336.0] | [30.0, 30.0] | [173, 173] |
p03109 | u581603131 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["S = int(input())\nprint('Heisei' if S[5]==0 and S[6]<5 else 'TBD') ", "S = list(str(input()))\nprint('Heisei' if int(S[5])==0 and int(S[6])<5 else 'TBD')"] | ['Runtime Error', 'Accepted'] | ['s817082327', 's405030794'] | [2940.0, 2940.0] | [17.0, 17.0] | [69, 81] |
p03109 | u589432040 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["S = str(input())\nn = int(S[0:4]+S[5:7]+S[8:10])\nif n <= 20190430:\n ans = 'heisei'\nelse:\n ans = 'TBD'\nprint(ans)", "S = str(input())\n\nn = int(S[0:4]+S[5:7]+S[8:10])\nif n <= 20190430:\n ans = 'Heisei'\nelse:\n ans = 'TBD'\nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s695738591', 's481148984'] | [2940.0, 2940.0] | [17.0, 18.0] | [117, 118] |
p03109 | u593019570 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["a = input().split('/')\nif a[0] > 2019 and a[1] > 5:\n print('TBD')\n \nelse:\n print('Heisei')\n", "a = input().split('/')\nif a[1][0] == '0':\n a[1] = a[1][1]\nif int(a[0]) >= 2019 and int(a[1]) >= 5:\n print('TBD')\n \nelse:\n print('Heisei')\n\n\n"] | ['Runtime Error', 'Accepted'] | ['s481570218', 's511173229'] | [2940.0, 2940.0] | [18.0, 22.0] | [94, 144] |
p03109 | u594803920 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["s = list(input())\nyear = int(s[:4])\nmanth = int(s[5:7])\nday = int(s[9:])\nif year > 2019:\n print('TBD')\nelif year < 2019:\n print('Heisei')\nelse:\n if month > 4:\n print('TBD')\n elif month < 4:\n print('Heisei')\n else:\n if day > 30:\n print('TBD')\n else:\n print('Heisei')", "s = input()\nyear = int(s[:4])\nmonth = int(s[5:7])\nday = int(s[9:])\nif year > 2019:\n print('TBD')\nelif year < 2019:\n print('Heisei')\nelse:\n if month > 4:\n print('TBD')\n elif month < 4:\n print('Heisei')\n else:\n if day > 30:\n print('TBD')\n else:\n print('Heisei')\n"] | ['Runtime Error', 'Accepted'] | ['s631254894', 's773507420'] | [3064.0, 3060.0] | [17.0, 19.0] | [292, 287] |
p03109 | u597017430 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["S = input(S)\nT = [c for c in S]\nif int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) <= 2018 or (int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) == 2019 and int(T[5]) * 1000 + int(T[6]) * 100 + int(T[8]) * 10 + int(T[9]) <= 430 ):\n print('Heisei')\n exit()\nprint('TBD') ", "S = input()\nT = [c for c in S]\nif int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) <= 2018 or (int(T[0]) * 1000 + int(T[1]) * 100 + int(T[2]) * 10 + int(T[3]) == 2019 and int(T[5]) * 1000 + int(T[6]) * 100 + int(T[8]) * 10 + int(T[9]) <= 430 ):\n print('Heisei')\n exit()\nprint('TBD') "] | ['Runtime Error', 'Accepted'] | ['s446608822', 's497157333'] | [3064.0, 3064.0] | [17.0, 17.0] | [303, 302] |
p03109 | u598684283 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['line = list(input().split("/"))\nprint(line)\nif int(line[0]) <= 2019 and int(line[1]) <= 4:\n print("Heisei") \nelse:\n print("TBD") ', 'line = list(input().split("/"))\nif int(line[0]) <= 2019 and int(line[1]) <= 4:\n print("Heisei") \nelse:\n print("TBD") '] | ['Wrong Answer', 'Accepted'] | ['s292119899', 's336004749'] | [9048.0, 9096.0] | [32.0, 28.0] | [137, 125] |
p03109 | u600261652 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S = input()\nprint("Heisei" if S<=2019/4/30 else "TBD")', 'S = input()\nprint("Heisei" if S <= "2019/04/30" else "TBD")'] | ['Runtime Error', 'Accepted'] | ['s212852236', 's018279553'] | [2940.0, 2940.0] | [17.0, 18.0] | [54, 59] |
p03109 | u601575292 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['import re\n\ns = input()\nli = s.splite("/")\nmonth = int(li[1])\n\nif month > 4:\n print(\'TBD\')\nelse:\n print("Heisei")', 'import re\n\ns = input()\nli = s.splite("/")\nmonth = int(li[1])\n\nif month > 4:\n print(\'TBD\')\nelse:\n print("Heisei")\n\nreturn 0', 'import re\n\ns = input()\nli = s.split("/")\nmonth = int(li[1])\n\nif month > 4:\n print(\'TBD\')\nelse:\n print("Heisei")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s305825475', 's597143297', 's525500504'] | [3188.0, 2940.0, 3188.0] | [22.0, 17.0, 19.0] | [114, 124, 114] |
p03109 | u601992815 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S = input().split("/")\nif S[1]==4 and S[2]<=30:\n print("Heisei")\nelif S>4:\n print("TBD")\nelse:\n print("Heisei")\n', 'S = input().split("/")\nif int(S[1])==4 and int(S[2])<=30:\n print("Heisei")\nelif int(S[1])>4:\n print("TBD")\nelse:\n print("Heisei")\n'] | ['Runtime Error', 'Accepted'] | ['s126564695', 's075976459'] | [2940.0, 2940.0] | [18.0, 17.0] | [121, 139] |
p03109 | u602850810 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S = input()\n \nif s <= "2019/04/30":\n print("Heisei")\nelse:\n print("TBD")', 'S = input()\n \nif S <= "2019/04/30":\n print("Heisei")\nelse:\n print("TBD")\n'] | ['Runtime Error', 'Accepted'] | ['s441302922', 's885420737'] | [2940.0, 3064.0] | [17.0, 18.0] | [75, 76] |
p03109 | u606878291 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["A, B, C = map(int, input().split(' '))\nymd = tuple(map(int, input().split('/')))\n\nif ymd <= (2019, 4, 30):\n print('Heisei')\nelse:\n print('TBD')\n", "ymd = tuple(map(int, input().split('/')))\n\nif ymd <= (2019, 4, 30):\n print('Heisei')\nelse:\n print('TBD')\n"] | ['Runtime Error', 'Accepted'] | ['s758016076', 's606651571'] | [2940.0, 2940.0] | [17.0, 16.0] | [150, 111] |
p03109 | u607075479 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ["print(['TBD','Heisei'][int(input()[5:7])>4])", "print(['Heisei','TBD'][int(input()[5:7])>4])"] | ['Wrong Answer', 'Accepted'] | ['s961656903', 's806824574'] | [2940.0, 2940.0] | [17.0, 17.0] | [44, 44] |
p03109 | u607563136 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['s = input()\nprint("Heisei" if s<"2019/04/30" else "TBD")', 'y,m,d = int(input().split("/"))\nprint("Heisei" if y<=2019 and m<=4 and d<=30 else "TBD")', 's = input()\nprint("Heisei" if s<="2019/04/30" else "TBD")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s160390109', 's878933356', 's951974931'] | [8896.0, 8908.0, 9004.0] | [25.0, 21.0, 30.0] | [56, 88, 57] |
p03109 | u609814378 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['S = "2019/04/30"\ny=int(S[0:4]+S[5:7]+S[8:10])\n\nif y >= 20190430:\n print("TBD")\nelse:\n print("Heisei")', 'S = input()\ny=int(S[0:4]+S[5:7]+S[8:10])\n\nif y > 20190430:\n print("TBD")\nelse:\n print("Heisei")\n\n'] | ['Wrong Answer', 'Accepted'] | ['s356822034', 's350110276'] | [2940.0, 2940.0] | [17.0, 17.0] | [107, 103] |
p03109 | u609968450 | 2,000 | 1,048,576 | You are given a string S as input. This represents a valid date in the year 2019 in the `yyyy/mm/dd` format. (For example, April 30, 2019 is represented as `2019/04/30`.) Write a program that prints `Heisei` if the date represented by S is not later than April 30, 2019, and prints `TBD` otherwise. | ['a = int("".join(input().split("/"))))\nif a <= 20190430:\n print("Heisei")\nelse:\n print("TBD")', 'a = int("".join(input().split("/")))\nif a <= 20190430:\n print("Heisei")\nelse:\n print("TBD")\n'] | ['Runtime Error', 'Accepted'] | ['s065144135', 's044007391'] | [2940.0, 2940.0] | [17.0, 17.0] | [94, 94] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.