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
|
---|---|---|---|---|---|---|---|---|---|---|
p03238 | u778814286 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["nab = [int(input()) for _ in range(3)]\n\nif nab[0] == 1:\n print('Hello World')\nelse:\n print(nab[1]+nab[2])", "n = int(input())\n\nif n == 1:\n print('Hello World')\nelse:\n print(int(input()) + int(input()))"] | ['Runtime Error', 'Accepted'] | ['s026095233', 's966254116'] | [2940.0, 2940.0] | [17.0, 17.0] | [107, 94] |
p03238 | u782930273 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N = int(input())\nif N == 1:\n print("Hello World!")\nelse:\n x = [int(input()) for _ in range(2)]\n print(sum(x))', 'print("Hello World" if int(input()) == 1 else sum(int(input()) for _ in range(2)))'] | ['Wrong Answer', 'Accepted'] | ['s804289782', 's358688714'] | [2940.0, 2940.0] | [17.0, 17.0] | [118, 82] |
p03238 | u788023488 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['# -*- coding: utf-8 -*-\n\nN = int(input())\n\nx0, y0, h0 = map(int, input().split())\nfor i in range(N):\n xi, yi, hi = map(int, input().split())\n if xi-x0 == abs(xi-x0):\n hx = hi + (100 -xi)\n else:\n hx = hi +xi\n\n if yi-y0 == abs(yi-y0):\n hy = hx + (100 -yi)\n else:\n hy = hx +yi\n\nprint(hy)', '# -*- coding: utf-8 -*-\n\nN = int(input())\nif N==1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)'] | ['Runtime Error', 'Accepted'] | ['s869896516', 's141909189'] | [3064.0, 2940.0] | [18.0, 17.0] | [318, 147] |
p03238 | u789199225 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n=input()\nif n == 1:\n print("Hello World")\nelse:\n a=input()\n b=input()\n print(int(a)+int(b))\n', 'n=input()\nif (n==1):\n\u3000print("Hello world")\nelse:\n\u3000a=input()\n\u3000b=input()\n\u3000print(a+b)', 'n=input()\nif (n==1):\nprint("Hello world")\nelse:\na=input()\nb=input()\nprint(a+b)', 'n=input()\nif (n==1):\n print("Hello World")\nelse:\n a=input()\n b=input()\n print(a+b)\n', 'n=input()\nif n==1:\n print("Hello World")\nelse:\n a=input()\n b=input()\n print(a+b)\n', 'n=input()\nif (n==1):\n print("Hello world")\nelse:\n a=input()\n b=input()\n print(a+b)', 'n=input()\nif int(n) == 1:\n print("Hello World")\nelse:\n a=input()\n b=input()\n print(int(a)+int(b))\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s010220166', 's110133727', 's201708162', 's294394815', 's738318796', 's813892804', 's103677044'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3316.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 22.0] | [97, 90, 78, 87, 85, 86, 102] |
p03238 | u790877102 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n,m = map(int,input().split())\n\nx=0\n\nfor i in range(m//n):\n\tif m%(i+1)==0 and m//(i+1)>n-1:\n\t\tx=max(x,i+1)\nprint(x)\n\n\n', 'n = int(input())\n\nif n ==1:\n\tprint("Hello World")\nelse:\n\ta = int(input())\n\tb = int(input())\n\tprint(a+b)\n\n'] | ['Runtime Error', 'Accepted'] | ['s211930391', 's997913058'] | [2940.0, 2940.0] | [17.0, 17.0] | [118, 105] |
p03238 | u790905630 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['from math import *\nimport sys\n\nN = int(input())\nall_input_list = [list(map(int, input().split())) for i in range(N)]\nx, y, h = [all_input_list[i] for i in range(N) if all_input_list[i][2] > 0][0]\nfor cx in range(101):\n for cy in range(101):\n H = h + abs(cx - x) + abs(cy - y)\n for input_list in all_input_list:\n if (input_list[2] != (H - abs(cx - input_list[0]) - abs(cy - input_list[1])):\n break\n else:\n print("%s %s %s" % (cx, cy, H))\n sys.exit(0)\n', 'from math import *\nimport sys\n\nN = int(input())\nall_input_list = [list(map(int, input().split())) for i in range(N)]\nx, y, h = [all_input_list[i] for i in range(N) if all_input_list[i][2] > 0][0]\nfor cx in range(101):\n for cy in range(101):\n H = h + abs(cx - x) + abs(cy - y)\n for input_list in all_input_list:\n result = H - abs(cx - input_list[0]) - abs(cy - input_list[1])\n if (result > 0) and (input_list[2] != result):\n break\n else:\n print("%s %s %s" % (cx, cy, H))\n sys.exit(0)\n', 'from math import *\nimport sys\n\nN = int(input())\nall_input_list = [list(map(int, input().split())) for i in range(N)]\nx, y, h = [all_input_list[i] for i in range(N) if all_input_list[i][2] > 0][0]\nfor cx in range(101):\n for cy in range(101):\n H = h + abs(cx - x) + abs(cy - y)\n for input_list in all_input_list:\n result = H - abs(cx - input_list[0]) - abs(cy - input_list[1])\n if (result < 0) or (input_list[2] != result):\n break\n else:\n print("%s %s %s" % (cx, cy, H))\n sys.exit(0)', 'print("Hello World") if(input() == "1") else print(int(input()) + int(input()))'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s267345486', 's717530176', 's835189027', 's499314442'] | [3060.0, 3064.0, 3064.0, 2940.0] | [17.0, 18.0, 18.0, 17.0] | [522, 567, 565, 79] |
p03238 | u791664126 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["n,t=map(int,input().split())\nl=[]\nfor i in range(n):\n l.append([j for j in map(int,input().split())])\n \na=float('inf')\nfor i in l:\n if i[1] <= t:a=i[0]\nif a == float('inf'):\n a = 'TLE'\nprint(a)", "n=int(input())\nif n==1:print('Hello World')\nelse:\n a=int(input())\n b=int(input())\n print(a+b)"] | ['Runtime Error', 'Accepted'] | ['s202156465', 's923842284'] | [3060.0, 2940.0] | [17.0, 17.0] | [205, 102] |
p03238 | u793196555 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n = int(raw_input())\n\nif n == 1:\n print("Hello World")\nelif n == 2:\n a = int(raw_input())\n b = int(raw_input())\n print(a+b)', 'n = int(input())\n \nif n == 1:\n print("Hello World")\nelif n == 2:\n a = int(input())\n b = int(input())\n print(a+b)'] | ['Runtime Error', 'Accepted'] | ['s005690637', 's086833193'] | [2940.0, 2940.0] | [17.0, 24.0] | [127, 116] |
p03238 | u793982420 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['# -*- coding: utf-8 -*-\n"""\nCreated on Sat Oct 6 21:37:39 2018\n\n@author: ogura\n"""\nimport math\n\nn, m = map(int, input().split())\n\nfor i in range(10000):\n a = math.gcd(m, i)\n if a == 1:\n continue\n tmp = int(a *(1 - a ** n) // (1 - a))\n if tmp == m:\n break\n\nprint(a)', '# -*- coding: utf-8 -*-\n"""\nCreated on Sat Sep 15 21:08:34 2018\n\n@author: ogura\n"""\n\nn = int(input())\n\nif n == 1:\n print(\'Hello World\')\nelif n == 2:\n a = int(input())\n b = int(input())\n print(a + b)\nelse:\n \'\''] | ['Runtime Error', 'Accepted'] | ['s526380755', 's693311097'] | [3060.0, 2940.0] | [17.0, 17.0] | [291, 223] |
p03238 | u794495044 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N = 0;\nA = 0;\nB = 0;\n\ninput(N);\n\nif N == 1:\n print("Hello World")\n \nelse:\n input(A);\n input(B);\n print(A+B);', 'N = input()\nN = int(N)\n\nif N == 1:\n print("Hello World")\n \nif N == 2:\n A = input()\n B = input()\n A = int(A)\n B = int(B)\n print(A+B);'] | ['Runtime Error', 'Accepted'] | ['s951428527', 's722294303'] | [3064.0, 2940.0] | [17.0, 17.0] | [123, 153] |
p03238 | u795323188 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['print("Hwllo World")', 'n = int(input())\nif n ==1:\n print("Hello World")\nelif n ==2:\n a = int(input())\n b = int(input())\n print(a+b)'] | ['Wrong Answer', 'Accepted'] | ['s390024194', 's363605971'] | [2940.0, 2940.0] | [17.0, 17.0] | [20, 120] |
p03238 | u798316285 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['if input()=="1":\n print("Hello World!")\nelse:\n print(sum([int(input()) for i in range(2)]))', 'n,t=map(int,input().split())\ncost_list=[]\nfor i in range(n):\n cost,time=map(int,input().split())\n if time<=t:\n cost_list+=[cost]\nif cost_list!=[]:\n print(min(cost_list))\nelse:\n print(TLE)', 'if input()=="1":\n print("Hello World")\nelse:\n print(sum([int(input()) for i in range(2)]))'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s080985580', 's839140491', 's882493986'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [93, 194, 92] |
p03238 | u801359367 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['def make_divisor_list(num):\n if num < 1:\n return []\n elif num == 1:\n return [1]\n else:\n divisor_list = []\n divisor_list.append(1)\n for i in range(2, num // 2 + 1):\n if num % i == 0:\n divisor_list.append(i)\n divisor_list.append(num)\n\n return divisor_list\n\nN,M=list(map(int,input().split()))\nLIST=[]\ndivide_list = make_divisor_list(M)\nif M%N==0:\n print(M//N)\nelse:\n x = M/N\n for i in divide_list:\n if i <= x:\n LIST.append(i)\n print(max(LIST))', 'N = int(input())\nif N==1:\n print("Hello World")\nelse:\n A=int(input())\n B=int(input())\n print(A+B)'] | ['Runtime Error', 'Accepted'] | ['s749281092', 's570299279'] | [3064.0, 2940.0] | [17.0, 17.0] | [551, 109] |
p03238 | u801512570 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["def main():\n N=int(input('N?>'))\n\n if N==1:\n print('Hello World')\n elif N==2:\n A=int(input('A?>'))\n B=int(input('B?>'))\n print(A+B)\n\nif __name__ == '__main__':\n main()", "def main():\n N=int(input())\n\n if N==1:\n print('Hello World')\n elif N==2:\n A=int(input())\n B=int(input())\n print(A+B)\n\nif __name__ == '__main__':\n main()"] | ['Wrong Answer', 'Accepted'] | ['s373582534', 's854704913'] | [2940.0, 2940.0] | [17.0, 17.0] | [207, 192] |
p03238 | u806422947 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n = int(input())\nif n ==1:\n print(Hello World)\nelse:\n a = int(input())\n b = int(input())\n print(a+b)\n', 'n,t = map(int,input().split())\n\na = []\n\nfor i in range(n):\n a.append(list(map(int,input().split())))\n\nmin = 9999\n\nfor i in a:\n if i[1] <= t and i[0] < min:\n min = i[0]\n\nif min > 1000:\n print("TLE")\nelse:\n print(min)\n', 'n = int(input())\nif n ==1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s481386358', 's503001688', 's107800937'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [113, 235, 115] |
p03238 | u807772568 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['a = list(map(int,input().split()))\n\nif a == 1:\n print("Hello World")\nelse:\n b = int(input())\n c = int(input())\n print(b+c)', 'a = int(input())\n\nif a == 1:\n print("Hello World")\nelse:\n b = int(input())\n c = int(input())\n print(b+c)'] | ['Runtime Error', 'Accepted'] | ['s900660293', 's522677682'] | [2940.0, 2940.0] | [17.0, 18.0] | [134, 116] |
p03238 | u810066979 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['import sys\nimport math\nimport itertools\n\nn=int(input())\nif n==1:\n\tprint("Hello world")\n\tsys.exit()\na=int(input())\nb=int(input())\nprint(a+b)', 'import sys\nimport math\nimport itertools\n\nn=int(input())\nif n==1:\n\tprint("Hello World")\n\tsys.exit()\na=int(input())\nb=int(input())\nprint(a+b)'] | ['Wrong Answer', 'Accepted'] | ['s247241085', 's882820256'] | [3060.0, 3060.0] | [17.0, 17.0] | [139, 139] |
p03238 | u813102292 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['int N = int(input())\nint a = int(input())\nint b = int(input())\nif N == 1:\n print("Hello World")\nelse:\n print(a+b)', 'N = int(input())\na = int(input())\nb = int(input())\nif N == 1:\n print("Hello World")\nelse:\n print(a+b)', 'int N = int(input())\nint a = int(input())\nint b = int(input())\nprint(N==1 ? "hello World" : a+b)', 'N = int(input())\nif N == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s042862369', 's435410923', 's803117185', 's496280120'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [119, 107, 96, 115] |
p03238 | u819068380 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['# atcoder abc112 A\n\n\n\n\nage = int(input())\nA = int(input())\nB = int(input())\n\n\nif age == 2:\n\tprint(A+B)\nelse:\n\tprint("Hello World")', '# atcoder abc112 A\n\ntry:\n\tage = int(input())\n\tA = int(input())\n\tB = int(input())\n\nexcept:\n\tpass\n\nif age == 2:\n\tprint(A+B)\nelse:\n\tprint("Hello World")'] | ['Runtime Error', 'Accepted'] | ['s545045179', 's927368656'] | [2940.0, 2940.0] | [17.0, 18.0] | [130, 149] |
p03238 | u819529201 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["N=int(input())\nA,B=map(int,input().split())\nif N==1:\n print('Hello World')\nelif N==2:\n print('A+B')", "N=int(input())\nif N==1:\n print('Hello World')\nelse:\n A=int(input())\n B=int(input())\n print(A+B)"] | ['Runtime Error', 'Accepted'] | ['s194987762', 's804382952'] | [3188.0, 2940.0] | [20.0, 18.0] | [105, 107] |
p03238 | u819910751 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["N = int(input())\nif N == 2:\n A = int(input())\n B = int(input())\n print(A+B)\nelse:\n print('Hello world')\n", "N = int(input())\nif N == 2:\n A = int(input())\n B = int(input())\n print(A+B)\nelse:\n print('Hello World')\n"] | ['Wrong Answer', 'Accepted'] | ['s073566288', 's677221822'] | [9136.0, 9156.0] | [32.0, 26.0] | [116, 116] |
p03238 | u822662438 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n, m = map(int, input().split())\n\n\n\n\n\n\n\n\ni = int(m/n)\nans = 1\nwhile i >= 1:\n if m % i == 0:\n if m / i >= n:\n ans = i\n break\n i = i-1\nprint(ans)\n', 'n, m = map(int, input().split())\n\n\n\n\ni = int(m/n)\nans = 1\nwhile n*i <= m:\n if m % i == 0 and m / i >= n:\n ans = i\n break\n i -= 1\nprint(ans)\n', 'n = int(input())\nif n == 2:\n a = int(input())\n b = int(input())\n print(a+b)\nelif n == 1:\n print("Hello World")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s796707098', 's814040168', 's379364259'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [917, 414, 123] |
p03238 | u824237520 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['import math\nn, m = map(int, input().split())\n\ndef IsPrime(num):\n if num < 2:\n return False\n elif num == 2:\n return True\n elif num % 2 == 0:\n return False\n\n sqrtNum = math.sqrt(num)\n for i in (3, sqrtNum + 1, 2):\n if num % i == 0:\n return False\n\n return True\n\nif IsPrime(m):\n print(1)\n exit()\n\n\nans = 0\nfor i in range(m // n, -1, -1):\n #print(i)\n if m % i == 0 and m // i >= n:\n ans = i\n break\n\nprint(ans)\n', "n = int(input())\n\nif n == 1:\n print('Hello World')\nelse:\n a = int(input())\n b = int(input())\n print(a + b)"] | ['Runtime Error', 'Accepted'] | ['s226495043', 's421656398'] | [3064.0, 2940.0] | [17.0, 17.0] | [488, 118] |
p03238 | u827141374 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N = int(input())\nif N == 1:\n\tprint("Hello World")\nelse:\n\tA = int(input())\n B = int(input())\n print(A+B)\n', 'N = int(input())\nif N == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)\n'] | ['Runtime Error', 'Accepted'] | ['s733009221', 's767209437'] | [2940.0, 3316.0] | [17.0, 22.0] | [110, 116] |
p03238 | u829369995 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['a = int(input())\nif a == 1:\n print("Hello, World")\nelif a == 2:\n\tb = int(input())\n\tc = int(input())\n\tprint(b+c)', 'a = int(input())\nif a == 1:\n print("Hello, World")\n exit()\nb = int(input())\nc = int(input())\n\nprint(b+c)', 'a = int(input())\nif a == 1:\n print("Hello World")\nelif a == 2:\n\tb = int(input())\n\tc = int(input())\n\tprint(b+c)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s305348530', 's804913041', 's073388015'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 16.0] | [114, 110, 113] |
p03238 | u829411282 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N = input()\nif N == "1":\n print("Hello Wolrd")\nelif N == "2":\n a = int(input())\n b =int(input())\n print(a+b)\n', 'N = input()\nif N == "1":\n print(""Hello Wolrd")\nelif N == "2":\n a = int(input())\n b =int(input())\n print(a+b)', 'N = input()\nif N == "1":\n print("Hello World")\nelif N == "2":\n a = int(input())\n b =int(input())\n print(a+b)\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s147735265', 's736985214', 's176246959'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [121, 121, 121] |
p03238 | u835482198 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n = int(input())\nif n == 1:\n print("Hello world")\nelif n == 2:\n a = int(input())\n b = int(input())\n print(a + b)\n', 'n = int(input())\nif n == 1:\n print("Hello World")\nelif n == 2:\n a = int(input())\n b = int(input())\n print(a + b)\n'] | ['Wrong Answer', 'Accepted'] | ['s016059682', 's832360843'] | [2940.0, 2940.0] | [17.0, 18.0] | [125, 125] |
p03238 | u835732324 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["n = int(inout())\nif n == 1:\n print('Hello World')\nelse:\n a = int(inout())\n b = int(inout())\n print(a+b)", "n = int(input())\nif n == 1:\n print('Hello World')\nelse:\n a = int(input())\n b = int(input())\n print(a+b)"] | ['Runtime Error', 'Accepted'] | ['s714794547', 's692450831'] | [2940.0, 2940.0] | [18.0, 17.0] | [115, 115] |
p03238 | u839188633 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['from math import ceil\nn, m = map(int, input().split())\nfor i in range(n, ceil(m**.5), 1):\n if not m % i:\n print(m//i)\n break\nfor i in range(int(min((m / n), m**.5)), 0, -1):\n if not m % i:\n print(i)\n break\n', "if input() == '1':\n print('Hello World')\n exit()\nprint(int(input())+int(input()))"] | ['Runtime Error', 'Accepted'] | ['s743128236', 's317021781'] | [3060.0, 2940.0] | [19.0, 17.0] | [240, 87] |
p03238 | u842170774 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['#112A\nN=int(input())\nif N==2:\n A=int(input())\n B=int(input())\n N=A+B\nprint(N)', "#112A\nN=int(input())\nif N==1:\n print('Hello World')\nif N==2:\n A=int(input())\n B=int(input())\n N=A+B\n print(N)"] | ['Wrong Answer', 'Accepted'] | ['s861844862', 's153287252'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 124] |
p03238 | u842950479 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["N,T=map(int, input().split())\nct=[]\nNminimum=int(101)\noutput=str('TLE')\nfor i in range(N):\n ct.append(list(map(int, input().split())))\nfor i in range(N):\n if ct[i][1]<=T:\n if ct[i][0]<Nminimum:\n Nminimum=ct[i][0]\n output=Nminimum\nprint(output)", "N=int(input())\nif N==1:\n output=str('Hello World')\nelse:\n A=int(input())\n B=int(input())\n output=A+B\nprint(output)"] | ['Runtime Error', 'Accepted'] | ['s282023533', 's227137783'] | [3060.0, 2940.0] | [17.0, 18.0] | [278, 126] |
p03238 | u843318346 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["n = int(input())\nif n ==1:\n print('Hello World'):\nelse:\n a = int(input())\n b = int(input())\n print(a+b)", "n = int(input())\nif n ==1:\n print('Hello World')\nelse:\n a = int(input())\n b = int(input())\n print(a+b)\n"] | ['Runtime Error', 'Accepted'] | ['s231131785', 's591436806'] | [2940.0, 2940.0] | [17.0, 17.0] | [107, 107] |
p03238 | u845333844 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["n,t=map(int, input().split())\nl=[input().split() for i in range(n)]\n\nk=[]\n\nfor x in range(n):\n if (int(l[x][1])<=t):\n k.append(l[x][0])\n \nif (k==[]):\n print('TLE')\nelse: \n print(min(k))\n", "n=int(input())\nif (n==1):\n print('Hello World')\nelse:\n a=int(input())\n b=int(input())\n print(a+b)"] | ['Runtime Error', 'Accepted'] | ['s588861884', 's767029083'] | [2940.0, 2940.0] | [17.0, 17.0] | [194, 101] |
p03238 | u845427284 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N = int(input())\n\nif N == 1 :\n\tprint("Hello World")\nelse :\n \tA = int(input())\n B = int(input())\n print(A + B)', 'N = int(input())\nif N == 1 :\n\tprint("Hello World")\nelse :\n\tA = int(input())\n B = int(input())\n print(A + B)', 'N = int(input())\nif N == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A + B)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s222131972', 's554208604', 's117056012'] | [2940.0, 2940.0, 2940.0] | [16.0, 16.0, 17.0] | [116, 113, 117] |
p03238 | u845847173 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N = input()\nif N == 1:\n print("Hello World")\nelif N == 2:\n A, B = map(int, input().split())\n print(A + B)', 'N = input()\nA, B = map(int, input().split())\n\nif N == 1:\n print("Hello World")\nelif N == 2:\n print(A + B)\nelse:\n print(-1)', 'N = int(input())\nA, B = map(int, input().split())\n\nif N == 1:\n print("Hello World")\nelif N == 2:\n print(A + B)', 'N = input()\nif N == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A + B)', 'N = input()\nA = input()\nB = input()\n\nif N == 1:\n print("Hello World")\nelif N == 2:\n print(A + B)\nelse:\n print(-1)', 'N = int(input())\nif N == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A + B)'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s072093385', 's230390634', 's283645690', 's425777361', 's788009218', 's376247297'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 18.0, 17.0, 17.0] | [114, 131, 116, 112, 122, 117] |
p03238 | u846150137 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['if input()==\'1\':\n print("Hallo World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)', 'if input()==\'1\':\n print("Hello World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)'] | ['Wrong Answer', 'Accepted'] | ['s759898410', 's132617281'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 92] |
p03238 | u850582941 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N = int(input())\n\nif N == 1:\n print("Hello world")\n\nelif N == 2:\n A = int(input())\n B = int(input())\n print(A + B)\n', 'N = int(input())\n\nif N == 1:\n print("Hello world")\n\nelse:\n A = int(input())\n B = int(input())\n print(A + B)\n', 'N = int(input())\n\nif N == 1:\n print("Hello World")\n\nelif N == 2:\n A = int(input())\n B = int(input())\n print(A + B)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s402376620', 's942954374', 's407154325'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [127, 120, 126] |
p03238 | u853336092 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["n, m = map(int, input().split())\nkouyaku_max = m // n\nkouyaku = 1\nfor i in range(min(kouyaku_max,int(m**0.5)),0,-1):\n if ((m % (i) == 0) and (n*i <= m)):\n kouyaku = i\n break\n\nprint('{}'.format(kouyaku))", 'a = int(input())\nif a == 1:\n print("Hello World")\nelse:\n b = int(input())\n c = int(input())\n print(\'{}\'.format(b+c))'] | ['Runtime Error', 'Accepted'] | ['s305218032', 's933709670'] | [3060.0, 2940.0] | [17.0, 18.0] | [219, 128] |
p03238 | u853900545 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["n = int(input())\na = int(input())\nb = int(input())\n\nif n ==1:\n print('Hello World')\nelse:\n print(a + b)", "n = int(input())\nif n ==1:\n print('Hello World')\nelse:\n a = int(input())\n b = int(input())\n print(a + b)"] | ['Runtime Error', 'Accepted'] | ['s373692867', 's335331244'] | [2940.0, 3316.0] | [17.0, 18.0] | [109, 116] |
p03238 | u855985627 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["N = int(input())\nif N == 1:\n print('Hello world')\nelif N == 2:\n A = int(input(''))\n B = int(input(''))\n print(A + B)", "import random\n\ndef is_prime(q,k=50):\n if q == 2: return True\n if q < 2 or q&1 == 0: return False\n d = (q-1)>>1\n while d&1 == 0:\n d >>= 1\n for i in range(k):\n a = random.randint(1,q-1)\n t = d\n y = pow(a,t,q)\n while t != q-1 and y != 1 and y != q-1: \n y = pow(y,2,q)\n t <<= 1\n if y != q-1 and t&1 == 0:\n return False\n return True\n\nn,m=(int(i) for i in input().split(' '))\nif m%n>100000:\n for i in range(1,n):\n if m%i==0 and is_prime(i) and is_prime(m//i) and (i==1 or m//i<n):\n print('1')\n exit()\nfor i in range(n,m+1):\n if i==m:\n print(1)\n break\n if m%i==0:\n print(m//i)\n break\n if m-i-n>0 and m%(m-i-n)==0 and m//(m-i-n)>n:\n print(m-i-n)\n break\n", "import random\n\ndef is_prime(q,k=50):\n if q == 2: return True\n if q < 2 or q&1 == 0: return False\n d = (q-1)>>1\n while d&1 == 0:\n d >>= 1\n for i in range(k):\n a = random.randint(1,q-1)\n t = d\n y = pow(a,t,q)\n while t != q-1 and y != 1 and y != q-1: \n y = pow(y,2,q)\n t <<= 1\n if y != q-1 and t&1 == 0:\n return False\n return True\n\nn,m=(int(i) for i in input().split(' '))\nif m%n>10000:\n for i in range(1,n):\n if m%i==0 and is_prime(i) and is_prime(m//i) and (i==1 or m//i<n):\n print('1')\n exit()\nfor i in range(n,m+1):\n if i==m:\n print(1)\n break\n if m%i==0:\n print(m//i)\n break\n if m%(m-i+1)==0\n print(m-i+1)\n break\n", "N = input()\nif N == 1:\n print('Hello world')\nelif N == 2:\n A = input('')\n B = input('')\n print(A + B)", "import random\n\ndef is_prime(q,k=50):\n if q == 2: return True\n if q < 2 or q&1 == 0: return False\n d = (q-1)>>1\n while d&1 == 0:\n d >>= 1\n for i in range(k):\n a = random.randint(1,q-1)\n t = d\n y = pow(a,t,q)\n while t != q-1 and y != 1 and y != q-1: \n y = pow(y,2,q)\n t <<= 1\n if y != q-1 and t&1 == 0:\n return False\n return True\n\nn,m=(int(i) for i in input().split(' '))\n\nif n==1:\n print(m)\n exit()\nif True:\n for i in range(1,n):\n if m%i==0 and is_prime(m//i) and m//i>n:\n print('1')\n exit()\nfor i in range(1,m//n+1)[::-1]:\n if i==1:\n print(i)\n break\n if m%i==0 and m//i>=n:\n print(i)\n break\n", "n,m=(int(i) for i in input().split(' '))\ni=n\nwhile True:\n if m%i==0:\n if m//i>=n:\n print(i)\n break\n else:\n i-=1\n", "import random\n\ndef is_prime(q,k=50):\n if q == 2: return True\n if q < 2 or q&1 == 0: return False\n d = (q-1)>>1\n while d&1 == 0:\n d >>= 1\n for i in range(k):\n a = random.randint(1,q-1)\n t = d\n y = pow(a,t,q)\n while t != q-1 and y != 1 and y != q-1: \n y = pow(y,2,q)\n t <<= 1\n if y != q-1 and t&1 == 0:\n return False\n return True\n\nn,m=(int(i) for i in input().split(' '))\n\nif n==1:\n print(m)\n exit()\nif m//n>10000:\n for i in range(1,n):\n if m%i==0 and is_prime(m//i) and m//i>n:\n print('1')\n exit()\nfor i in range(1,m//n+1)[::-1]:\n if i==1:\n print(i)\n break\n if m%i==0 and m//i>=n:\n print(i)\n break\n", "import random\n\ndef is_prime(q,k=50):\n if q == 2: return True\n if q < 2 or q&1 == 0: return False\n d = (q-1)>>1\n while d&1 == 0:\n d >>= 1\n for i in range(k):\n a = random.randint(1,q-1)\n t = d\n y = pow(a,t,q)\n while t != q-1 and y != 1 and y != q-1: \n y = pow(y,2,q)\n t <<= 1\n if y != q-1 and t&1 == 0:\n return False\n return True\n\nn,m=(int(i) for i in input().split(' '))\nfor i in range(1,n):\n if m%i==0 and is_prime(m//i) and (i==1 or m//i<n):\n print('1')\n exit()\nfor i in range(n,m):\n if i==m:\n print(1)\n break\n if m%i==0:\n print(m//i)\n break\n", "N = input()\nif N == 1:\n print('Hello world')\nelif N == 2:\n A = input('')\n B = input('')\n print(A + B)", "import random\n\ndef is_prime(q,k=50):\n if q == 2: return True\n if q < 2 or q&1 == 0: return False\n d = (q-1)>>1\n while d&1 == 0:\n d >>= 1\n for i in range(k):\n a = random.randint(1,q-1)\n t = d\n y = pow(a,t,q)\n while t != q-1 and y != 1 and y != q-1: \n y = pow(y,2,q)\n t <<= 1\n if y != q-1 and t&1 == 0:\n return False\n return True\n\nn,m=(int(i) for i in input().split(' '))\nfor i in range(1,n):\n if m%i==0 and (is_prime(i) or i==1) and is_prime(m//i) and (i==1 or m//i<n):\n print('1')\n exit()\nfor i in range(n,m+1):\n if i==m:\n print(1)\n break\n if m%i==0:\n print(m//i)\n break\n if m-i-n>0 and m%(m-i-n)==0 and m//(m-i-n)>n:\n print(m-i-n)\n break", "def factor(x):\n factor=[]\n if x==1:\n return\n else:\n i=2\n while x>1:\n if x%i==0:\n factor.append([i,1])\n x/=i\n while x%i==0:\n factor[-1][1]+=1\n x/=i\n i+=1\n return factor\n\nm,n=(int(i) for i in input().split(' '))\nfactor=factor(m)\nans=1\nfor data in factor:\n data[1]=data[1]//n\n ans=ans*(data[0]**data[1])\nprint(ans)", "n,m=(int(i) for i in input().split(' '))\nfor i in range(1,1000)[::-1]:\n if i==1:\n print(i)\n break\n if m%i==0 and m//i>=n:\n print(m//i)\n break\n", "n,m=(int(i) for i in input().split(' '))\ni=m%n\nif m==2147483647:\n print(1)\n exit()\nwhile True:\n if i==1:\n print(i)\n break\n if m%i==0 and m//i>=n:\n print(i)\n break\n else:\n i-=1\n", "N = int(input())\nif N == 1:\n print('Hello World')\nelif N == 2:\n A = int(input(''))\n B = int(input(''))\n print(A + B)"] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s142257285', 's171917483', 's232443677', 's533465556', 's539162354', 's548218300', 's551796849', 's634281272', 's674313628', 's681948802', 's692588041', 's896344774', 's982607905', 's367757183'] | [2940.0, 3440.0, 3064.0, 2940.0, 3316.0, 2940.0, 4196.0, 3316.0, 2940.0, 3316.0, 3064.0, 3060.0, 2940.0, 2940.0] | [17.0, 21.0, 17.0, 17.0, 21.0, 18.0, 31.0, 21.0, 17.0, 21.0, 18.0, 18.0, 18.0, 17.0] | [128, 773, 742, 113, 714, 128, 720, 657, 113, 759, 377, 156, 196, 128] |
p03238 | u857148155 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | [' n=int(input())\n if n==1:print("Hello World")\n else:\n a=int(input())\n b=int(input())\n print(a+b)', 'n=int(input())\nif n==1:print("Hello World)\nelse:\n a=int(input())\n b=int(input())\n print(a+b)', 'n=int(input())\nif n==1:print("Hello World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s152702707', 's828814136', 's592190699'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [126, 101, 102] |
p03238 | u857673087 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["if int(input()) ==1:\n 'Hello World'\nelse:\n A = int(input())\n B = int(input())\n print(A+B)\n", "if input() ==1:\n 'Hello World'\nelse:\n A = int(input())\n B = int(input())\n print(A+B)", "if int(input()) ==1:\n print('Hello World')\nelse:\n A = int(input())\n B = int(input())\n print(A+B)\n"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s239034206', 's256359449', 's686207349'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [94, 88, 101] |
p03238 | u859897687 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["i=int(input);print(i()+i()if1<i()else'Hello World')\n", 'if input()==1:\n print("Hello World")\nelse:\n a,b=input(),input();print(a+b)', "i=int(input);print(i()+i()if 1<i()else'Hello World')\n", 'if int(input())==1:\n print("Hello World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)\n '] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s095562609', 's340299262', 's860845286', 's674760562'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0, 20.0] | [52, 76, 53, 100] |
p03238 | u863397945 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['age = int(input())\nA = int(input())\nB = int(input())\n\nif age == 1:\n print("Hello World")\n \nelse:\n print(A+B)', 'age = int(input())\n\nif age == 1:\n print("Hello World")\n\nelif age == 2:\n A = int(input())\n B = int(input())\n print(A + B)'] | ['Runtime Error', 'Accepted'] | ['s424803989', 's816398799'] | [2940.0, 9080.0] | [17.0, 24.0] | [111, 132] |
p03238 | u863850961 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n=int(input())\na=int(input())\nb=int(input())\nif(n==1):\n print("Hello World")\nelif(n==2):\n print(int(a+b))', 'k, s = list(map(int, input().split()))\n\np = s\nfactors = {}\n\nwhile p > 1:\n f = False\n for i in range(2, int(p**0.5)+1):\n if p % i == 0:\n if i in factors:\n factors[i] += 1\n else:\n factors[i] = 1\n\n p //= i\n f = True\n break\n\n if not f:\n if p in factors:\n factors[p] += 1\n else:\n factors[p] = 1\n break\n\nif len(factors) == 0:\n print(1)\nelse:\n primes = list(factors.keys())\n exp = [0] * len(primes)\n upper = s/k\n ans = 1\n\n while exp[0] <= factors[primes[0]]:\n num = 1\n for i in range(len(primes)):\n num *= pow(primes[i], exp[i])\n\n if num == upper:\n ans = num\n break\n elif num < upper:\n ans = max(ans, num)\n\n index = len(primes)-1\n done = False\n while not done:\n exp[index] += 1\n if exp[index] > factors[primes[index]]:\n if index == 0:\n break\n else:\n exp[index] = 0\n index -= 1\n else:\n done = True\n\n print(ans)\n', 'n=int(input())\n\nif(n==1):\n print("Hello World")\nelif(n==2):\n a=int(input())\n b=int(input())\n print(int(a+b))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s212804151', 's455924439', 's938127942'] | [9092.0, 9096.0, 8976.0] | [24.0, 26.0, 24.0] | [111, 1196, 120] |
p03238 | u864006187 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n=int(input())\nif n==1:print("Hello word")\na=int(input())\nb=int(input())\nif n==2 :print(a+b)', 'n=int(input())\nif n==1:\n print("Hello word")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)', 'n=int(input())\nif n==1:\n print("Hello Word")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)\n', 'n=int(input())\nif n==1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s408351391', 's603528133', 's776592025', 's970686477'] | [9104.0, 9164.0, 9012.0, 8912.0] | [25.0, 29.0, 27.0, 27.0] | [92, 110, 111, 111] |
p03238 | u865067466 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["N = int(input())\n\nif N == 1:\n print('Hello, World')\nelse:\n A, B = map(int, open(0).read().split())\n print(A+B)\n", "N = int(input())\n\nif N == 1:\n print('Hello World')\nelse:\n A, B = map(int, [input() for i in range(2)])\n print(A+B)\n"] | ['Runtime Error', 'Accepted'] | ['s429643341', 's632642241'] | [2940.0, 2940.0] | [17.0, 17.0] | [120, 124] |
p03238 | u867848444 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["n=int(input())\nif n==1:\n print('Hellow World')\nelif n==2:\n a,b=int(input()),int(input())\n print(a+b)", "n=int(input())\nif n==1:\n print('Hello World')\nelif n==2:\n a,b=int(input()),int(input())\n print(a+b)"] | ['Wrong Answer', 'Accepted'] | ['s922191048', 's379026902'] | [2940.0, 2940.0] | [17.0, 17.0] | [109, 108] |
p03238 | u869154953 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N=int(input())\n\nif N==1:\n\tprint("Hello world")\nelse:\n\tA=int(input())\n\tB=int(input())\n\tprint(A+B)\n\n\n\n', 'N=int(input())\n\nif N==1:\n\tprint("Hello World")\nelse:\n\tA=int(input())\n\tB=int(input())\n\tprint(A+B)\n\n\n\n'] | ['Wrong Answer', 'Accepted'] | ['s607516193', 's589080011'] | [9184.0, 8972.0] | [27.0, 30.0] | [100, 100] |
p03238 | u869728296 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n,w = map(int,input().split())\nm = 1001\nfor i in range(n):\n a,b = map(int,input().split())\n if b <= w and a < m:\n m = a\nif m == 1001:\n print("TLE")\nelse:\n print(m)\n \n', "a=int(input())\n\nif(a==1):\n print('Hello World')\n\nelif(a==2):\n A=int(input())\n B=int(input())\n print(A+B)\n\n"] | ['Runtime Error', 'Accepted'] | ['s508413602', 's757174633'] | [3060.0, 2940.0] | [19.0, 17.0] | [188, 118] |
p03238 | u869937227 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n = int(input())\na = int(input())\nb = int(input())\nif n == 1:\n print("Hello World")\nelse:\n print(a + b)', 'n = int(input())\nif n == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a + b)'] | ['Runtime Error', 'Accepted'] | ['s701375988', 's512226574'] | [2940.0, 2940.0] | [17.0, 17.0] | [105, 109] |
p03238 | u871596687 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N = int(input())\n\nif N == 1:\n print("Hello world")\nelif N == 2:\n A = int(input())\n B = int(input())\n print(A+B)\n', 'N = int(input())\n\nif N == 1:\n print("Hello World")\nelif N == 2:\n A = int(input())\n B = int(input())\n print(A+B)\n'] | ['Wrong Answer', 'Accepted'] | ['s526550550', 's462440621'] | [2940.0, 2940.0] | [17.0, 17.0] | [124, 124] |
p03238 | u872538555 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["n = int(input())\n\nif n == 2:\n\ta = int(input())\n b = int(input())\n print(a + b)\nelse:\n\tprint('Hello World')", "n = int(input())\n\nif n == 2:\n\ta = int(input())\n b = int(input())\n print(a + b)\nelse:\n\tprint('Hello World')", "n = int(input())\n\nif n == 2:\n a = int(input())\n b = int(input())\n print(a + b)\nelse:\n print('Hello World')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s473186248', 's724820569', 's060983536'] | [8876.0, 8872.0, 9156.0] | [23.0, 22.0, 25.0] | [112, 112, 111] |
p03238 | u872887731 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N = int(input)\nif N == 1:\n print("Hello World")\nelse :\n A , B = int(input)\n print(A+B)', 'N = int(input())\nif N == 1:\n print("Hello World")\nelse :\n A = int(input())\n B = int(input())\n print(A+B)'] | ['Runtime Error', 'Accepted'] | ['s087879735', 's628747004'] | [2940.0, 2940.0] | [17.0, 17.0] | [95, 117] |
p03238 | u874527681 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N,T = map(int, input().split())\nminC = 1001\nflag = False\nfor i in range(int(N)):\n c, t = map(int, input().split())\n if int(T) > t and minC > c:\n minC = c\n\nprint(minC)', 'N,T = map(int, input().split())\nminC = 1001\nflag = False\nfor i in range(int(N)):\n c, t = map(int, input().split())\n if int(T) >= t and minC >= int(c):\n minC = c\n frag = True\n\nif(flag == False):\n print("TLE")\nelse:\n print(minC)', 'N = int(input())\nif (N == 1): \n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s268986077', 's395592220', 's989479581'] | [2940.0, 3060.0, 2940.0] | [18.0, 17.0, 18.0] | [179, 252, 118] |
p03238 | u874741582 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n=int(input())\na=int(input())\nb=int(input())\nif n ==1:\n print("Hello World")\nelse:\n print(a+b)', 'n=int(input())\na=int(input())\nb=int(input())\nif n ==1:\n print("Hello World")\nelif n ==2:\n print(a+b)', 'n=int(input())\nif n ==1:\n print("Hello World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s088389922', 's878299141', 's401610386'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [100, 106, 108] |
p03238 | u875731881 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N=int(input())\nif N=1:\n print("Hello World")\nelse:\n A,B=map(int,input().split())\n print(A+B)', 'N=int(input())\nif N==1:\n print("Hello World")\nelse:\n A=int(input())\n B=int(input())\n print(A+B)\n'] | ['Runtime Error', 'Accepted'] | ['s845863471', 's230716913'] | [2940.0, 2940.0] | [18.0, 18.0] | [101, 108] |
p03238 | u882209234 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["N = int(input())\n\nif N == 1:\n print('Hello world')\nelif N == 2:\n A = int(input())\n B = int(input())\n print(A+B)\n", "N = int(input())\n\nif N == 1:\n print('Hello World')\nelif N == 2:\n A = int(input())\n B = int(input())\n print(A+B)\n"] | ['Wrong Answer', 'Accepted'] | ['s681508426', 's778018681'] | [2940.0, 2940.0] | [17.0, 18.0] | [124, 124] |
p03238 | u887207211 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N = int(input())\nif N == 1:\n print("Hello Wolrd")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)', 'N = int(input())\nif N == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)'] | ['Wrong Answer', 'Accepted'] | ['s450759077', 's021986815'] | [2940.0, 2940.0] | [17.0, 17.0] | [107, 107] |
p03238 | u893584578 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["if int(input()) == 1:\n print 'Hello World'\nelse:\n A = int(input())\n B = int(input())\n C = A + B\n print C", "#coding: utf-8\n\nif int(input()) == 1:\n print 'Hello World'\nelse:\n A = int(input)\n B = int(input)\n C = A + B\n print C", "#coding: utf-8\n\nif int(input()) == 1:\n print ('Hello World')\nelse:\n A = int(input())\n B = int(input())\n print (A+B)"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s156465162', 's285325790', 's385963508'] | [2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [104, 116, 127] |
p03238 | u894258749 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["N = int(input())\nif N==1:\n\tprint('Hello World')\nelse:\n\tA = int(input())\n\tB = int(input())\n print(A+B)", "N = int(input())\nif N==1:\n\tprint('Hello World')\nelse:\n\tA = int(input())\n\tB = int(input())\n\tprint(A+B)"] | ['Runtime Error', 'Accepted'] | ['s664734044', 's120633124'] | [2940.0, 2940.0] | [17.0, 17.0] | [104, 101] |
p03238 | u895730552 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['# -*- coding: utf-8 -*-\n\nn = int(input())\n\nif n == 1:\n print("Hello world")\n\nif n == 2:\n a = int(input())\n b = int(input())\n print(a+b)\n ', 'n = int(input())\n\nif n == 1:\n print("Hello world")\n\nif n == 2:\n a = int(input())\n b = int(input())\n print(a+b)', 'n = int(input())\n\nif n == 1:\n print("Hello World")\n\nif n == 2:\n a = int(input())\n b = int(input())\n print(a+b)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s274269067', 's437274772', 's709828478'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [151, 123, 123] |
p03238 | u896741788 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n=int(input())\nif n==1:print("Hello world")\nelse:\n a,s=map(int,input().split())\n print(a+s)', 'n=int(input())\nif n==1:print("Hello World")\nelse:\n a,s=int(input()),int(input())\n print(a+s)'] | ['Runtime Error', 'Accepted'] | ['s578059478', 's068131884'] | [2940.0, 2940.0] | [17.0, 18.0] | [97, 98] |
p03238 | u898917044 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['#abc112_a\n\nAGE_1 = 1\nAGE_2 = 2\n\ndef main():\n a = int(input("Enter age: "))\n if a == AGE_1:\n print ("Hello World")\n elif AGE_2:\n A = int(input("Enter integer A: "))\n B = int(input("Enter integer B: "))\n output = A + B\n print ("{}".format(str(output)))\n\nif __name__ == "__main__": main()\n', '#abc112_a\n\nAGE_1 = 1\nAGE_2 = 2\n\ndef main():\n a = int(input(""))\n if a == AGE_1:\n print ("Hello World")\n elif AGE_2:\n A = int(input(""))\n B = int(input(""))\n output = A + B\n print ("{}".format(str(output)))\n\nif __name__ == "__main__": main()\n'] | ['Wrong Answer', 'Accepted'] | ['s199525138', 's582988875'] | [2940.0, 2940.0] | [18.0, 17.0] | [330, 285] |
p03238 | u899711906 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N=input()\nif N==1:\n print("Hello World")\nelif N==2:\n a=input()\n b=input()\n print(a+b)', 'import sys\nN=input()\nif N == 1:\n\tprint("Hello World")\nelif N == 2:\n\ta=input()\n\tb=input()\n\tprint(a+b)\n', 'import sys\nN=input()\nif N == 1:\n\tprint("Hello World")\nelif N == 2:\n\ta=input()\n\tb=input()\n\tprint(a+b)\n', 'import sys\nN=int(input())\nif N == 1:\n\tprint("Hello World")\nelif N == 2:\n\ta=int(input())\n\tb=int(input())\n\tprint(a+b)\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s179676232', 's632152203', 's748018313', 's580311209'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [89, 101, 101, 116] |
p03238 | u900927478 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N,T=map(int,input().split())\nmin=1001\nfor i in range(N):\n c,t=map(int,input().split())\n if t<(T+1):\n if c<min:\n min=c \nif min=1001:\n print("TLE")\nelse:\n print(min)', 'N,T=map(int,input().split())\nmin=1001\nfor i in range(N):\n c,t=map(int,input().split())\n if t<(T+1):\n if c<min:\n min=c \nif min==1001:\n print("TLE")\nelse:\n print(min)\n', 'a=int(input())\nif a==1:\n print("Hello World")\nelif a==2 :\n b=int(input())\n c=int(input())\n print(b+c)\n '] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s414549557', 's979305606', 's065967695'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [203, 205, 118] |
p03238 | u901598613 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n=int(input())\nif n==1:\n print("Hollo World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)', 'n=int(input())\nif n==1:\n print("Holle World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)', 'n=int(input())\nif n==1:\n print("Hello World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s165061049', 's691248798', 's756929308'] | [9144.0, 9148.0, 9172.0] | [27.0, 24.0, 30.0] | [107, 107, 107] |
p03238 | u903948194 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["N = int(input())\n\nif N == 1:\n print('Hello world')\nelif N == 2:\n A = int(input())\n B = int(input())\n print(A+B)", 'import itertools\n\nN = int(input())\nparams = []\nfor i in range(N):\n xyh = [int(n) for n in input().split()]\n params.append(xyh)\n\nfor cxi, cyi in itertools.product(range(101), range(101)):\n for k in range(N):\n if params[k][2] > 0:\n hight = params[k][2] + abs(params[k][0] - cxi) + abs(params[k][1] - cyi)\n\n for k in range(N):\n if params[k][2] != max(hight - abs(params[k][0] - cxi) - abs(params[k][1] - cyi), 0)\n break\n \n else:\n print(cxi, cyi, hight)', "N = int(input())\n\nif N == 1:\n print('Hello World')\nelif N == 2:\n A = int(input())\n B = int(input())\n print(A+B)"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s190252344', 's387373113', 's297192100'] | [2940.0, 3064.0, 2940.0] | [18.0, 17.0, 18.0] | [123, 510, 123] |
p03238 | u904943473 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["N = int(input())\nlst = [int(input()) for i in range(2)]\nif (N == 1):\n print('Hello World')\nelse:\n print(sum(lst))", "N = int(input())\nlst = [int(input()) for i in range(N)]\nif (N == 1):\n print('Hello World')\nelse:\n print(sum(lst))", "N = int(input())\nlst = [int(input()) for i in range(N)]\nif (N == 1):\n print('Hello World')\nelse:\n print(sum(lst))", "N = int(input())\nif (N == 1):\n print('Hello World')\nelse:\n lst = [int(input()) for i in range(N)]\n print(sum(lst))"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s108099707', 's584525885', 's829928589', 's979109500'] | [3316.0, 2940.0, 2940.0, 3316.0] | [20.0, 17.0, 18.0, 20.0] | [119, 119, 119, 117] |
p03238 | u905510147 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['x = int(input())\nif x == 1:\n print("Hello world")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)\n', 'x = int(input())\nif x == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)\n'] | ['Wrong Answer', 'Accepted'] | ['s272704436', 's978023453'] | [2940.0, 2940.0] | [17.0, 17.0] | [116, 116] |
p03238 | u905582793 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["N,T=map(int,input().split())\nls=[int(input()) for _ in range(N)]\nans=10**18\nfor i in ls:\n if i[0] <= T:\n ans = min(ans,i[1])\nif ans < 10**18:\n print(ans)\nelse:\n print('TLE')\n", 'if int(input())==1:\n print("Hello World")\nelse:\n print(int(input())+int(input()))'] | ['Runtime Error', 'Accepted'] | ['s900733307', 's658230698'] | [3060.0, 2940.0] | [17.0, 17.0] | [180, 83] |
p03238 | u905953533 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["n, T = map(int, input().split())\na = set()\nmin_ = 1001\nfor i in range(n):\n c, t = map(int, input().split())\n a.add(c)\n if t <= T and c <= min_:\n min_ = c\n a.remove(c)\nif min_ == 1001:\n print('TLE')\nelse:\n print(min_)", "n, T = map(int, input().split())\na = set()\nmin_ = 1000\nfor i in range(n):\n c, t = map(int, input().split())\n a.add(c)\n if t <= T and a[i] <= min_:\n min_ = a[i]\n a.remove(c)\nif min_ == 1000:\n print('TLE')\nelse:\n print(min_)", "n, T = map(int, input().split())\na = []\nmin_ = 1001\nfor i in range(n):\n c, t = map(int, input().split())\n a.append(c)\n if t <= T and a[i] <= min_:\n min_ = a[i]\nif min_ == 1001:\n print('TLE')\nelse:\n print(min_)", "n = int(input())\nif n == 1:\n print('Hello World')\nelse:\n a = int(input())\n b = int(input())\n print(a + b)"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s140891600', 's410146053', 's807638585', 's465930121'] | [3060.0, 3060.0, 3060.0, 2940.0] | [18.0, 17.0, 18.0, 17.0] | [241, 247, 231, 117] |
p03238 | u908349502 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["n = int(input())\na = int(input())\nb = int(input())\nif n == 1:\n print('Hello World')\nelse:\n print(a+b)", "n = int(input())\nif n == 1:\n print('Hello World')\nelse:\n a = int(input())\n b = int(input())\n print(a+b)"] | ['Runtime Error', 'Accepted'] | ['s270599527', 's061594041'] | [2940.0, 2940.0] | [17.0, 18.0] | [103, 107] |
p03238 | u911438260 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["N, T = map(int,input().split())\nmincost = 1001\nfor i in range(1, N+1):\n c, t = map(int,input().split())\n if t <= T:\n cost = c\n if cost < mincost:\n mincost = cost\n\nif mincost == 1001:\n print('TLE')\nif mincost < 1001:\n print(mincost)\n", 'N, T = map(int,input().split())\nmintime = 1000\nfor i in range(1, N):\n c, t = map(int,input().split())\n if t <= T:\n time = t\n if time < mintime:\n mintime = time\n\nprint(mintime)', "N, T = map(int,input().split())\nmincost = 1000\nfor i in range(1, N+1):\n c, t = map(int,input().split())\n if t <= T:\n cost = c\n if cost < mincost:\n mincost = cost\n\nif mincost == 1000:\n print('TLE')\nif mincost < 1000:\n print(mincost)", "N = int(input())\n\nif N == 1:\n print('Hello World!')\nelse:\n A = int(input())\n B = int(input())\n print(A+B)", "N = int(input())\n\nif N == 1:\n print('Hello World')\nelse:\n A = int(input())\n B = int(input())\n print(A+B)"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s099411139', 's239568084', 's273148256', 's750184430', 's078828508'] | [2940.0, 2940.0, 3060.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0] | [265, 206, 264, 117, 116] |
p03238 | u911575040 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["x=int(input())\ny=int(input())\nz=int(input())\nif x==1:\n print('Hello World')\nelse:\n print(y+z)\n", "if int(input()) == 1:\n print('Hello World')\nelse:\n print(int(input()) + int(input()))"] | ['Runtime Error', 'Accepted'] | ['s423028830', 's069526495'] | [2940.0, 2940.0] | [18.0, 17.0] | [100, 87] |
p03238 | u912862653 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n = input()\nif n==1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)', 'n = int(input())\nif n==1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)'] | ['Runtime Error', 'Accepted'] | ['s731539130', 's291337967'] | [2940.0, 2940.0] | [17.0, 17.0] | [108, 113] |
p03238 | u920299620 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N,M=map(int,input().split())\ni=N\nwhile(i*2 <=M):\n if(M%i==0):\n break\n i+=1\nif(i*2>M):\n i=M\nprint(M//i)', 'n=int(input())\nif(n==1):\n print("Hello World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)'] | ['Runtime Error', 'Accepted'] | ['s563773417', 's564510491'] | [3060.0, 2940.0] | [17.0, 17.0] | [118, 108] |
p03238 | u921563073 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['# -*- coding: utf-8 -*-\nn,t = map(int,input().split())\nans_no = 0\nans_cost = t\n\nfor i in range(n):\n a,b = map(int,input().split())\n if b<ans_cost:\n ans_no = a\n\nif ans_no == 0:\n print("TLE")\nelse print(ans_no)', 'age = int(input())\nif age == 1:\n print("Hello World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)'] | ['Runtime Error', 'Accepted'] | ['s144183260', 's366769411'] | [2940.0, 2940.0] | [17.0, 17.0] | [224, 107] |
p03238 | u921773161 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N = int(input())\nx = [0] * N\ny = [0] * N\nh = [0] * N\nfor i in range(N):\n x[i], y[i], h[i] = map(int, input().split())\n\ntop = [[] for _ in range(101*101)]\n\nfor i in range(101):\n for j in range(101):\n top[i*101+j] = [i, j]\n\n#print(top)\n\nH = 0\n\nfor i in range(len(top)):\n topx = top[i][0]\n topy = top[i][1]\n H = 0\n h_list = []\n for j in range(N):\n if h[j] != 0:\n tmp = abs(topx - x[j]) + abs(topy - y[j]) + h[j]\n h_list.append(tmp)\n if h_list.count(h_list[0]) == N - h.count(0) :\n ansx = topx\n ansy = topy\n ansH = h_list[0]\n break\n\nprint(ansx, ansy, ansH)\n', "N = int(input())\nif N == 1 :\n print('Hello World')\nelse :\n a = int(input())\n b = int(input())\n print(a+b)"] | ['Runtime Error', 'Accepted'] | ['s176114871', 's996860610'] | [3064.0, 2940.0] | [17.0, 17.0] | [641, 109] |
p03238 | u924406834 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n,m = map(int,input().split())\nfor i in range(n,10000000000000000):\n if m%i == 0:\n n=i\n break\nprint(int(m/i))', "n = int(input())\na = int(input())\nb = int(input())\nif n == 1:\n print('Hello World')\nelse:\n print(a+b) ", "n = int(input())\na = int(input())\nb = int(input())\nif n == 1:\n print('Hello World')\nelse:\n print(a+b) ", "n = int(input())\nfor i in range(n-1):\n a = int(input())\n b = int(input())\nif n == 1:\n print('Hello World')\nelse:\n print(a+b) "] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s204680621', 's499511845', 's965409073', 's644351690'] | [2940.0, 3316.0, 2940.0, 2940.0] | [17.0, 20.0, 17.0, 17.0] | [126, 108, 108, 137] |
p03238 | u930970950 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["if input() == 1:\n print('Hello World')\nelse:\n print(input() + input())", "if input() == 1:\n print('Hello World')\nelse:\n print(int(input()) + int(input()))", "if input() == '1':\n print('Hello World')\nelse:\n print(int(input()) + int(input()))"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s674903602', 's832634345', 's850961071'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [76, 86, 88] |
p03238 | u931489673 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n=int(input())\nif n==1:\n print("Hello world")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)\n', 'n=int(input())\nif n==1:\n print("Hello World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)\n'] | ['Wrong Answer', 'Accepted'] | ['s879549022', 's622066442'] | [2940.0, 2940.0] | [17.0, 18.0] | [108, 108] |
p03238 | u932370518 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['def main():\n N = int(input())\n if N == 1 :\n print("Hello,World!")\n elif N == 2 :\n A = int(input())\n B = int(input())\n print(A + B)\n else:\n pass\n\nif __name__ == \'__main__\':\n main()', 'def main():\n N = int(input())\n if N == 1 :\n print("Hello World")\n elif N == 2 :\n A = int(input())\n B = int(input())\n print(A + B)\n else:\n pass\n\nif __name__ == \'__main__\':\n main()'] | ['Wrong Answer', 'Accepted'] | ['s257373442', 's432651325'] | [2940.0, 2940.0] | [17.0, 17.0] | [229, 228] |
p03238 | u934868410 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n = int(input())\na = int(input())\nb = int(input())\nif n == 1:\n print("Hello World")\nif n == 2:\n print(a+b)', 'n = int(input())\nif n == 1:\n print("Hello World")\nelif n == 2:\n a = int(input())\n b = int(input())\n print(a+b)'] | ['Runtime Error', 'Accepted'] | ['s603914037', 's281526143'] | [2940.0, 2940.0] | [18.0, 17.0] | [108, 114] |
p03238 | u936985471 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n=list(map(int,open(0).read().split()))\nprint((n[1]+n[2],"Hello World")[n[0]==1])', 'n,*d=map(int,open(0).read().split())\nprint((sum(d),"Hello World")[n==1])'] | ['Runtime Error', 'Accepted'] | ['s301812390', 's259018848'] | [3064.0, 2940.0] | [20.0, 17.0] | [81, 72] |
p03238 | u940061594 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['#Partition\nimport math\nN,M = map(int,input().split())\nn = 1\nrootM = int(math.sqrt(M))\nfor i in range(rootM+1):\n if M % (i+1) == 0 and N*(i+1) <= M:\n n = i+1\nif N == 1:\n n = M\nprint(n)', '#Programming Education\nN = int(input())\nif N == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)'] | ['Runtime Error', 'Accepted'] | ['s695169694', 's062422676'] | [3060.0, 2940.0] | [17.0, 17.0] | [196, 138] |
p03238 | u943657163 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["n = input()\nif n == '1':\n print('Hello world')\nelse:\n print(int(input())+int(input()))", "if int(input()) == 1:\n print('Hello World')\nelse:\n print(int(input()) + int(input()))\n"] | ['Wrong Answer', 'Accepted'] | ['s142279294', 's656146384'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 92] |
p03238 | u946026022 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N = int(input())\n\nXYHA = []\n\nfor i in range(N):\n x,y,h = map(int,input().split())\n if h == 0:\n N -= 1\n continue\n XYHA.append([x,y,h])\n\nfor i in range(101):\n for j in range(101):\n HC = XYHA[0][2] + abs(XYHA[0][0] - i) + abs(XYHA[0][1] - j)\n\n for k in range(1, N):\n H = XYHA[k][2] + (XYHA[k][0] - i) + abs(XYHA[k][1] - j)\n\n if HC != H:\n break\n\n if k == N - 1:\n print(i,j,HC)\n exit()\nprint(0,0,0)', 'n = int(input())\n\nif n == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n\n print(a + b)\n'] | ['Runtime Error', 'Accepted'] | ['s216047557', 's491102862'] | [3064.0, 2940.0] | [18.0, 18.0] | [511, 120] |
p03238 | u951480280 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n,m=map(int,input().split())\nm_root=int(m**0.5)\ndiv_l=[]\nans=0\n\nfor i in range(1,m_root + 1):\n if m%i == 0:\n div_l.append(i)\n div_l.append(m//i)\n\nif m//n in div_l:\n ans = m//n\nelse:\n div_l.append(m//n)\n div_l.sort()\n ans = div_l[div_l.index(m//n) - 1]\nprint(ans)', 'if int(input())==1:\n print("Hello World")\nelse:\n print(int(input())+int(input()))'] | ['Runtime Error', 'Accepted'] | ['s934388923', 's215483507'] | [3064.0, 2940.0] | [17.0, 17.0] | [291, 87] |
p03238 | u951601135 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["N,T=map(int,input().split())\nli = [list(map(int,input().split())) for i in range(N)]\nt_cost=[T - li[i][1] for i in range(N)]\nif(all(x < 0 for x in t_cost)):\n print('TLE')\nelse:\n t_cost_1=[]\n for i in range(N):\n if(t_cost[i]>=0):\n t_cost_1.append(i)\n else:\n print(min([li[t_cost_1[i]][0] for i in range(len(t_cost_1))]))", "N,T=map(int,input().split())\nli = [list(map(int,input().split())) for i in range(N)]\nt_cost=[T - li[i][1] for i in range(N)]\nif(all(x < 0 for x in t_cost)):\n print('TLE')\nelse:\n t_cost_1=[]\n for i in range(N):\n if(t_cost[i]>=0):\n t_cost_1.append(i)\n else:continue\n print(min([li[t_cost_1[i]][0] for i in range(len(t_cost_1))]))", "N,T=map(int,input().split())\nli = [list(map(int,input().split())) for i in range(N)]\n#print(li)\nt_cost=[T - li[i][1] for i in range(N)]\n#print(t_cost)\nif(all(x < 0 for x in t_cost)):\n print('TLE')\nelse:\n t_cost_1=[]\n for i in range(N):\n if(t_cost[i]>=0):\n t_cost_1.append(i)\n else:continue\n #print(t_cost_1)\n print(min([li[t_cost_1[i]][0] for i in range(len(t_cost_1))]))", "N, T = map(int, input().split())\nresult = 1001\nfor _ in range(N):\n c, t = map(int, input().split())\n if t <= T:\n result = min(result, c)\n\nif (result == 1001):\n print('TLE') \nelse:\n print(result)", "n=int(input())\nprint('Hello World' if n==1 else int(input())+ int(input()))"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s279984569', 's562951082', 's701119403', 's838319565', 's628351597'] | [2940.0, 3064.0, 3064.0, 3060.0, 2940.0] | [18.0, 18.0, 18.0, 18.0, 18.0] | [334, 342, 495, 213, 75] |
p03238 | u960171798 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['N = input()\nA = input()\nB = input()\nif N == 1:\n print("Hello World")\nelse:\n print(A+B)', 'N = input()\nA = input()\nB = input()\nif N == 1:\n print("Hello World")\nelse:\n print(int(A+B))\n', 'N = input()\nif N == 1:\n print("Hello World")\nelse:\n A = input()\n B = input()\n print(int(A+B))\n', 'N = int(input())\nif N == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(int(A+B))\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s237260898', 's392012776', 's439148275', 's998758906'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0, 17.0] | [88, 94, 98, 113] |
p03238 | u961916328 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["if int(input()) == 2:\n print(int(input())+int(int(input())\nelse:\n print('Hello World')\n ", "if int(input()) == 2:\n print(int(input())+int(input()))\nelse:\n print('Hello World')"] | ['Runtime Error', 'Accepted'] | ['s483656981', 's828948271'] | [2940.0, 2940.0] | [17.0, 18.0] | [91, 85] |
p03238 | u962609087 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["def main():\n n = int(input())\n if n == 1:\n print('Hello WOrld')\n else:\n a = int(input())\n b = int(input())\n print(a + b)\nmain()", "def main():\n n = int(input())\n if n == 1:\n print('Hello World')\n else:\n a = int(input())\n b = int(input())\n print(a + b)\nmain()"] | ['Wrong Answer', 'Accepted'] | ['s424446242', 's349155723'] | [9152.0, 9008.0] | [28.0, 27.0] | [143, 143] |
p03238 | u966695411 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["a=map(int,open(0).read().split())\nprint('Hello World'if a[0]<2else a[1]+a[2])", "i=input;i(eval(i()+'+'+i())if'1'<i()else'Hello World')", "i=input;print(eval(i()+'+'+i())if'1'<i()else'Hello World')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s434893599', 's603131008', 's939401669'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [77, 54, 58] |
p03238 | u967835038 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["n=int(inpit())\nif n==1:\n print('Hello World')\nelse:\n a=int(input())\n b=int(input())\n print(a+b)", "n=int(input())\nif n==1:\n print('Hello World')\nelse:\n a=int(input())\n b=int(input())\n print(a+b)"] | ['Runtime Error', 'Accepted'] | ['s818156568', 's668552775'] | [2940.0, 2940.0] | [18.0, 17.0] | [99, 99] |
p03238 | u970197315 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n = int(input())\na = int(input())\nb = int(input())\n\nif n==1:\n print("Hello World")\nelif n==2:\n print(a+b)\n', 'n = int(input())\n\n\nif n==1:\n print("Hello World")\nelif n==2:\n a = int(input())\n b = int(input())\n print(a+b)\n'] | ['Runtime Error', 'Accepted'] | ['s325226036', 's936523058'] | [2940.0, 2940.0] | [17.0, 17.0] | [112, 121] |
p03238 | u971476953 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['n = int(input())\na = int(input())\nb = int(input())\n\nif n == 1:\n print("Hello World")\nif n == 2:\n print(a + b)', 'n = int(input())\na = int(input())\nb = int(input())\n\nif n == 1:\n print("Hello World")\nif n == 2:\n print(a + b)', 'n = int(input())\n\nif n == 1:\n print("Hello World")\nif n == 2:\n a = int(input())\n b = int(input())\n print(a + b)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s348807124', 's976009060', 's835480153'] | [9000.0, 9104.0, 9100.0] | [23.0, 30.0, 23.0] | [111, 111, 115] |
p03238 | u975300347 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["N = input()\nif N == '1':\n print(N)\n exit()\nelse:\n A = int(input())\n B = int(input())\n print(A+B)", "N = input()\nif N == '1':\n print('Hello World')\n exit()\nelse:\n A = int(input())\n B = int(input())\n print(A+B)"] | ['Wrong Answer', 'Accepted'] | ['s541862383', 's201007056'] | [9080.0, 9096.0] | [30.0, 27.0] | [111, 123] |
p03238 | u977855674 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ['d = [int(input()) for i in range(0, 3)]\nprint("Hello World" if d[0] == 1 else sum(d[1:]))', 'n = int(input())\nprint("Hello World" if n == 1 else sum([int(input()) for i in range(0, 2)]))'] | ['Runtime Error', 'Accepted'] | ['s050429014', 's879666346'] | [2940.0, 2940.0] | [18.0, 18.0] | [89, 93] |
p03238 | u980492406 | 2,000 | 1,048,576 | In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him. | ["n = input()\nif n == '1' :\n print('Helli World')\nelse :\n a,b = map(int,input().split())\n print(a+b)", "n = input()\nif n == '1' :\n print('Hello World')\nelse :\n a = int(input())\n b = int(input())\n print(a+b)"] | ['Runtime Error', 'Accepted'] | ['s480870533', 's742979263'] | [3316.0, 2940.0] | [22.0, 18.0] | [107, 114] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.