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
|
|---|---|---|---|---|---|---|---|---|---|---|
p03233
|
u985443069
| 2,000
| 1,048,576
|
We have a directed weighted graph with N vertices. Each vertex has two integers written on it, and the integers written on Vertex i are A_i and B_i. In this graph, there is an edge from Vertex x to Vertex y for all pairs 1 \leq x,y \leq N, and its weight is {\rm min}(A_x,B_y). We will consider a directed cycle in this graph that visits every vertex exactly once. Find the minimum total weight of the edges in such a cycle.
|
[" import sys\nimport socket\n\nif socket.gethostname() in ['N551J', 'F551C']:\n sys.stdin = open('c1.in')\n\n\ndef read_int_list():\n return list(map(int, input().split()))\n\n\ndef read_int():\n return int(input())\n\n\ndef read_str_list():\n return input().split()\n\n\ndef read_str():\n return input()\n\n\ndef solve():\n n = read_int()\n rows = [read_int_list() for i in range(n)]\n a, b = map(list, zip(*rows))\n res = sum(a)\n res = min(res, sum(b))\n all_values = [(a[i], i, 0) for i in range(n)]\n all_values.extend([(b[i], i, 1) for i in range(n)])\n all_values.sort()\n index_of_value = {v: i for i, v in enumerate(all_values)}\n first_values = [\n set(all_values[:n - 2]),\n set(all_values[:n - 1]),\n set(all_values[:n]),\n ]\n\n s = [sum([t[0] for t in v]) for v in first_values]\n\n for i in range(n):\n rest = []\n k = 0\n if index_of_value[(a[i], i, 0)] < n:\n k += 1\n else:\n rest.append(a[i])\n if index_of_value[(b[i], i, 1)] < n:\n k += 1\n else:\n rest.append(b[i])\n t = s[k] + sum(rest)\n res = min(res, t)\n return res\n\n\ndef main():\n res = solve()\n print(res)\n\n\nif __name__ == '__main__':\n main()\n", "import sys\nimport socket\n\nif socket.gethostname() in ['N551J', 'F551C']:\n test_case = 'c1.in'\n sys.stdin = open(test_case)\n\n\ndef read_int_list():\n return list(map(int, input().split()))\n\n\ndef read_int():\n return int(input())\n\n\ndef read_str_list():\n return input().split()\n\n\ndef read_str():\n return input()\n\n\ndef solve():\n n = read_int()\n rows = [read_int_list() for i in range(n)]\n a, b = map(list, zip(*rows))\n res = sum(a)\n res = min(res, sum(b))\n all_values = [(a[i], i, 0) for i in range(n)]\n all_values.extend([(b[i], i, 1) for i in range(n)])\n all_values.sort()\n index_of_value = {v: i for i, v in enumerate(all_values)}\n first_values = [\n set(all_values[:n - 2]),\n set(all_values[:n - 1]),\n set(all_values[:n]),\n ]\n\n s = [sum([t[0] for t in v]) for v in first_values]\n for i in range(n):\n rest = []\n k = 0\n last = n - 2\n indices = sorted([(index_of_value[(a[i], i, 0)], a[i]),\n (index_of_value[(b[i], i, 1)], b[i])])\n\n for index, value in indices:\n if index < last:\n last += 1\n k += 1\n else:\n rest.append(value)\n t = s[k] + sum(rest)\n res = min(res, t)\n return res\n\n\ndef main():\n res = solve()\n print(res)\n\n\nif __name__ == '__main__':\n main()\n"]
|
['Runtime Error', 'Accepted']
|
['s666518748', 's628237790']
|
[2940.0, 86824.0]
|
[17.0, 1126.0]
|
[1254, 1381]
|
p03238
|
u002459665
| 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)\n\n\nif __name__ == \'__main__\':\n main()\n', "from collections import defaultdict\n\n\ndef main():\n N = int(input())\n pairs = []\n for _ in range(N):\n pair = [int(e) for e in input().split()]\n pairs.append(pair)\n\n d = defaultdict(int)\n for pair in pairs:\n x, y, h = pair\n\n for X in range(101):\n for Y in range(101):\n H = h + (abs(X - x) + abs(Y - y))\n d[(X, Y, H)] += 1\n\n for k, v in d.items():\n if v == N:\n X, Y, H = k\n print(X, Y, H)\n\n\nif __name__ == '__main__':\n main()\n", "from collections import defaultdict\n\n\ndef main():\n N = int(input())\n pairs = []\n for _ in range(N):\n pair = [int(e) for e in input().split()]\n pairs.append(pair)\n\n d = defaultdict(int)\n for pair in pairs:\n x, y, h = pair\n\n for X in range(101):\n for Y in range(101):\n H = h + (abs(X - x) + abs(Y - y))\n d[(X, Y, H)] += 1\n\n for k, v in d.items():\n if v == N:\n X, Y, H = k\n print(X, Y, H)\n\n\nif __name__ == '__main__':\n main()\n", '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)\n\n\nif __name__ == \'__main__\':\n main()\n']
|
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s078151662', 's639341806', 's732969033', 's221256951']
|
[2940.0, 3316.0, 3316.0, 2940.0]
|
[17.0, 21.0, 21.0, 17.0]
|
[199, 542, 542, 198]
|
p03238
|
u003501233
| 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())\nA=int(input())\nB=int(input())\n\nif N == 1:\n print("Hello World")\nelif N == 2:\n print(A+B)', 'N=int(input())\n\nif N == 1:\n print("Hello World")\nelif N == 2:\n\tA=int(input())\n\tB=int(input())\n\tprint(A+B)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s929806741', 's943709169', 's180578825']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[98, 105, 106]
|
p03238
|
u003928116
| 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']
|
['s633395208', 's635299156']
|
[2940.0, 3064.0]
|
[19.0, 19.0]
|
[95, 99]
|
p03238
|
u005977014
| 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,B,C,D=map(int,input().split())\nif A<=C:\n if D<=B:\n t=B-C\n else:\n t=D-C\nelse:\n if D<=B:\n t=B-A\n else:\n t=D-A\n t=D-A\nif t<=0:\n print(0)\nelse:\n print(t)', "N=int(input())\nif N==1:\n print('Hello World')\n exit()\nelse:\n A=int(input())\n B=int(input())\n print(A+B)"]
|
['Runtime Error', 'Accepted']
|
['s074549950', 's287547136']
|
[9188.0, 8940.0]
|
[25.0, 26.0]
|
[170, 108]
|
p03238
|
u007263493
| 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())\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')\nelse:\n a = int(input())\n b = int(input())\n print(a+b)"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s935038902', 's951614982', 's205761262']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[110, 110, 114]
|
p03238
|
u007569200
| 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 numpy as np\nN, T = map(int, input().split())\ncosts = []\ntimes = []\nfor i in np.arange(N):\n ci, ti = map(int, input().split())\n costs.append(ci)\n times.append(ti)\nindex = np.argmin(times)\nt_min = times[index]\nif t_min < T:\n print(costs[index])\nelse:\n print('TLE')\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)"]
|
['Runtime Error', 'Accepted']
|
['s887273757', 's477400764']
|
[12504.0, 2940.0]
|
[149.0, 17.0]
|
[285, 122]
|
p03238
|
u008582165
| 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")\nelse:\n A = int(input())\n B = int(input())\n print(A + B)', 'a = int(input())\nif a == 1:\n print("Hello world")\nelif a == 2:\n A = int(input())\n B = int(input())\n print(A + B)', 'a = int(input())\nif a == 1:\n print("Hello World")\nelif a == 2:\n A = int(input())\n B = int(input())\n print(A + B)']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s139068911', 's828355586', 's804830882']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[117, 124, 124]
|
p03238
|
u010437136
| 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 io\nimport sys\n\n line1 = sys.stdin.readline().rstrip()\n line2 = sys.stdin.readline().rstrip()\n line3 = sys.stdin.readline().rstrip()\n if int(line1) == 1:\n return "Hello World"\n else:\n return int(line2)+int(line3)\nsolve()', 'import io\nimport sys\n\ndef solve():\n \n line1 = sys.stdin.readline().rstrip()\n line2 = sys.stdin.readline().rstrip()\n line3 = sys.stdin.readline().rstrip()\n if int(line1) == 1:\n return "Hello World"\n else:\n return int(line2)+int(line3)\nsolve()', 'import io\nimport sys\n\ndef solve():\n line1 = sys.stdin.readline().rstrip()\n line2 = sys.stdin.readline().rstrip()\n line3 = sys.stdin.readline().rstrip()\n if int(line1) == 1:\n print("Hello World")\n else:\n print(int(line2)+int(line3))\nsolve()']
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s142652236', 's379958706', 's784628172']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[255, 273, 268]
|
p03238
|
u013408661
| 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\nn=int(input())\ns=[[int(i) for i in l.split()] for l in sys.stdin]\nfor cx in range(101):\n for cy in range(101):\n flag=True\n flag2=True\n stack2==10**18\n for i in range(n):\n if flag==False:\n break\n x,y,h=s[i]\n H=abs(x-cx)+abs(y-cy)+h\n if h!=0 and flag2:\n stack=H\n flag2=False\n if h==0:\n stack2=min(stack2,H)\n if h!=0 and flag2==False:\n if stack!=H:\n flag=False\n break\n if flag and stack<=stack2:\n print(cx,cy,H)\n exit()', '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']
|
['s196873742', 's636757799']
|
[3064.0, 2940.0]
|
[17.0, 17.0]
|
[536, 99]
|
p03238
|
u017415492
| 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(a+b)\nelse:\n print("Hello World")', 'n=int(input())\na=int(input())\nb=int(input())\n\nif n==2:\n print(a+b)\nelse:\n print("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")']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s054710912', 's832990923', 's810200602']
|
[2940.0, 3316.0, 2940.0]
|
[17.0, 22.0, 17.0]
|
[95, 96, 100]
|
p03238
|
u018586085
| 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()\n\nif n == 1:\n print ("Hello World")\nelse:\n a = input()\n b = input()\n a = int(a)\n b = int(b)\n c = a + b\n print (c)', 'n = input()\nn = int(n)\n\nif n == 1:\n print ("Hello World")\nelse:\n a = input()\n b = input()\n a = int(a)\n b = int(b)\n c = a + b\n print (c)']
|
['Runtime Error', 'Accepted']
|
['s373255315', 's416330049']
|
[2940.0, 3060.0]
|
[17.0, 17.0]
|
[131, 142]
|
p03238
|
u021548497
| 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())\nc = a+b\nprint("Hello World" if n == 1 else c)', 'n = int(input())\na = int(input())\nb = int(input())\nc = a+b\nif n == 1:\n print("Hello World")\nelse:\n print(c)', 'n = int(input())\na = int(input())\nb = int(input())\nprint("Hello World" if n == 1 else 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', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s238176102', 's588237960', 's886616302', 's255158633']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[96, 113, 90, 116]
|
p03238
|
u022215787
| 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, T = map(int, input().split())\ni = 0\nmin_cost = 1000\nfg = False\nwhile i < N:\n i += 1\n c, t = map(int, input().split())\n if t <= T:\n if c <= min_cost:\n fg = True\n min_cost = c\n\nif fg:\n print(min_cost)\nelse:\n print('TLE')", "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']
|
['s524095287', 's974743928', 's891061642']
|
[2940.0, 3188.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[112, 265, 117]
|
p03238
|
u023229441
| 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,A,B=[ int(x) for x in input().split()]\nif N == 1:\n print("Hello,world")\n\t\nelse:\n print(A+B)\n\t', 'if int(input()) == 1:\n print("Hello World")\n\nelse:\t\n A=int(input())\n\tB=int(input())\n\tprint(A+B)\n', 'if int(input()) == 1:\n print("Hello,World")\n\nelse:\t\n A=int(input())\n B=int(input())\n print(A+B)', 'if int(input()) == 1:\n print("Hello World")\n\nelse:\n\t\n\tA=int(input())\n\tB=int(input())\n\tprint(A+B)\n']
|
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
|
['s601377582', 's810689139', 's842634113', 's599284649']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[19.0, 17.0, 17.0, 17.0]
|
[101, 102, 107, 100]
|
p03238
|
u026075806
| 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 chg(n):\n if n==1:\n return 9\n elif n==9:\n return 1\n return n\n\nn = int(input())\nn,a1 = divmod(n,10)\nn,a2 = divmod(n,10)\nn,a3 = divmod(n,10)\n\n\nprint(100*chg(a3)+10*chg(a2)+chg(a1))', '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']
|
['s873618665', 's896993738']
|
[3060.0, 2940.0]
|
[17.0, 17.0]
|
[190, 103]
|
p03238
|
u026155812
| 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)", "import sys\nN = int(input())\nif N == 1:\n print('Hello World')\n sys.exit()\nA = int(input())\nB = int(input())\nprint(A+B)"]
|
['Runtime Error', 'Accepted']
|
['s774284489', 's733924596']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[103, 119]
|
p03238
|
u026788530
| 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.
|
['\nlis = []\n\nN,M = [int(i) for i in input().split()]\nM_ = M\ni = 2\n\nwhile True:\n if M % i == 0:\n M = M // i\n lis.append(i)\n elif M == 1:\n break\n else:\n i += 1\nans = M_\n\nfor n in range(2**len(lis)):\n m = bin(n)[-1:1:-1]\n ret = 1\n for l in range(len(m)):\n if int(m[l]):\n ret *= lis[l]\n # print(lis[l])\n if ret >= N:\n break\n if ret >= N:\n #print(ret)\n ans = min(ans,ret)\n\nprint(M_//ans)\n', 'N = input()\n\nif N == \'1\':\n print("Hello World")\n\nelse:\n print(int(input()) + int(input()))']
|
['Runtime Error', 'Accepted']
|
['s078616443', 's850553873']
|
[3064.0, 2940.0]
|
[17.0, 17.0]
|
[499, 96]
|
p03238
|
u027675217
| 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 in 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']
|
['Runtime Error', 'Accepted']
|
['s723480781', 's875060315']
|
[2940.0, 2940.0]
|
[19.0, 17.0]
|
[116, 116]
|
p03238
|
u033524082
| 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 % 2 == 0:\n print(A+B)\nelse:\n print("Hello World")', 'a = int(input())\nif a==1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)']
|
['Runtime Error', 'Accepted']
|
['s830883227', 's077698125']
|
[3060.0, 2940.0]
|
[20.0, 18.0]
|
[104, 105]
|
p03238
|
u033627628
| 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(int(input())+int(input()))', 'if input()=="1":\n print("Hello World")\nelse:\n print(int(input())+int(input()))']
|
['Runtime Error', 'Accepted']
|
['s673837722', 's463295090']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[83, 84]
|
p03238
|
u035445296
| 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 = input()\nb = input()\nprint('Hello World' if n ==1 else int(a)+int(b))", "n = int(input())\nprint('Hello World' if n ==1 else int(input())+int(input()))"]
|
['Runtime Error', 'Accepted']
|
['s500220298', 's574094474']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[89, 77]
|
p03238
|
u036340997
| 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())\nxy = [[i, j] for i in range(101) for j in range(101)]\n\ndef md(x1, x2):\n return abs(x1[0]-x2[0]) + abs(x1[1]-x2[1])\n \ninfos = []\nfor i in range(n):\n info = list(map(int, input().split()))\n infos.append(info)\n \n if i != 0:\n for j in range(i):\n if infos[j][0] != 0:\n dh = infos[i][2] - infos[j][2]\n xy = list(filter(lambda x: md(x, infos[j][:2]) - md(x, infos[i][:2]) == dh, xy))\n \n if len(xy) == 1: \n break\n\n \nx = xy[0][0]\ny = xy[0][1]\nk = 0\nfor i in range(n):\n if infos[i][2] > 0:\n k = i\n break\nh = md(infos[k][:2], [x, y]) + infos[k][2]\nprint('{} {} {}'.format(x, y, h))", "n = int(input())\nxy = [[i, j] for i in range(101) for j in range(101)]\n\ndef md(x1, x2):\n return abs(x1[0]-x2[0]) + abs(x1[1]-x2[1])\n \ninfos = []\nfor i in range(n):\n info = list(map(int, input().split()))\n infos.append(info)\n \n if infos[i][2] == 0:\n xy.remove(infos[i][0], infos[i][1])\n \n if i != 0:\n for j in range(i):\n if infos[j][0] != 0:\n dh = infos[i][2] - infos[j][2]\n xy = list(filter(lambda x: md(x, infos[j][:2]) - md(x, infos[i][:2]) == dh, xy))\n \n if len(xy) == 1: \n break\n\n \nx = xy[0][0]\ny = xy[0][1]\nk = 0\nfor i in range(n):\n if infos[i][2] > 0:\n k = i\n break\nh = md(infos[k][:2], [x, y]) + infos[k][2]\nprint('{} {} {}'.format(x, y, h))\n", "if input()=='1':\n print('Hello World')\nelse:\n print(int(input())+int(input())) "]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s120284467', 's309635082', 's761167411']
|
[4084.0, 4084.0, 2940.0]
|
[22.0, 22.0, 17.0]
|
[643, 710, 81]
|
p03238
|
u039189422
| 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\tprint(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']
|
['s186244488', 's515902678']
|
[2940.0, 3060.0]
|
[17.0, 19.0]
|
[94, 95]
|
p03238
|
u044635590
| 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())\nab = list(map(int, input().split()))\n\nif n == 1:\n print("Hello World")\nif n == 2:\n print(ab[0] + ab[1])\n\n', 'n = int(input())\nif n == 2:\n a = int(input())\n b = int(input())\n\nif n == 1:\n print("Hello World")\nif n == 2:\n print(a + b)\n\n']
|
['Runtime Error', 'Accepted']
|
['s722941334', 's233210386']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[128, 136]
|
p03238
|
u044952145
| 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 C=A+B\n print(C)', 'N = int(input())\n\nif(N==1):\n print("Hello World")\nelif(N==2):\n A =int(input())\n B=int(input())\n C=A+B\n print(C)']
|
['Wrong Answer', 'Accepted']
|
['s024817327', 's401719314']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[126, 126]
|
p03238
|
u045408189
| 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(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']
|
['s931316916', 's219234339']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[84, 100]
|
p03238
|
u048945791
| 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\n\nn = int(input())\n\nxyh = [list(map(int, sys.stdin.readline().split())) for _ in range(n)]\n\nisOk = False\ni = 0\nj = 0\nconstant = -1\n\nfor i in range(101):\n for j in range(101):\n\n constant = -1\n for xyhTemp in xyh:\n if xyhTemp[2] != 0:\n temp = xyhTemp[2] + abs(i - xyhTemp[0]) + abs(j - xyhTemp[1])\n\n if constant == -1:\n constant = temp\n\n if constant != temp:\n break\n else:\n\n for p in xyh:\n if p[2] == 0 and constant - abs(i - p[0]) - abs(j - p[1]) > 0:\n break\n else:\n isOk = True\n break\n \n if isOk:\n break\n\nprint(i, j, constant)\n \n', 'n = int(input())\n\nxyh = [list(map(int, input().split())) for _ in range(n)]\n\nisOk = False\ni = 0\nj = 0\nconstant = -1\n\nfor i in range(101):\n for j in range(101):\n\n constant = -1\n for xyhTemp in xyh:\n if xyhTemp[2] != 0:\n temp = xyhTemp[2] + abs(i - xyhTemp[0]) + abs(j - xyhTemp[1])\n\n if constant == -1:\n constant = temp\n\n if constant != temp:\n break\n else:\n\n for p in xyh:\n if p[2] == 0 and constant - abs(i - p[0]) - abs(j - p[1]) > 0:\n break\n else:\n isOk = True\n break\n \n if isOk:\n break\n\nprint(i, j, constant)\n \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', 'Runtime Error', 'Accepted']
|
['s309062494', 's357897050', 's179066210']
|
[3064.0, 3064.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[767, 742, 118]
|
p03238
|
u050121913
| 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')\n\nelse:\n print(A+B)", "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)"]
|
['Runtime Error', 'Accepted']
|
['s633067591', 's283042004']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[103, 109]
|
p03238
|
u054931633
| 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']
|
['s829315761', 's644571696']
|
[9008.0, 9072.0]
|
[29.0, 27.0]
|
[95, 103]
|
p03238
|
u055687574
| 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(1)\nelse:\n a = int(input())\n b = int(input())\n print(a + b)\n', 'N, T = map(int, input().split())\n\nc_min = 1001\nt_ = None\nfor _ in range(N):\n c, t = map(int, input().split())\n if T >= t and c_min > c:\n c_min = c\n t_ = t\nif t_ == None:\n print("TLE")\nelse:\n print(c_min)', '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']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s071427682', 's238879048', 's584262523']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[107, 229, 119]
|
p03238
|
u057993957
| 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(intput())\n\nif N == 1:\n print('Hello World')\n\nelse:\n print(sum([int(input()) for i in range(2)]))\n", "N, a, b = [int(input()) for i in range(3)]\n\nprint('Hello World' if N == 1 else a + b)", "N, a, b = [int(input()) for i in range(3)]\n\nprint('Hello World' if N == 1 else str(a + b))", "print('Hello World' if input() == '1' else sum([int(input()) for i in range(2)]))\n"]
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s165226808', 's801677456', 's988780233', 's233960854']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[107, 85, 90, 82]
|
p03238
|
u058592821
| 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())\nif age == 1:\n print('Hello'World)\nelse:\n a = int(input())\n b = int(input())\n print(a+b)\n ", "age = int(input())\nif age == 1:\n print('HelloWorld')\nelse:\n a = int(input())\n b = int(input())\n print(a+b)\n ", "age = int(input())\nif age == 1:\n print('Hello World')\nelse:\n a = int(input())\n b = int(input())\n print(a+b)\n "]
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s021383667', 's473417513', 's548721983']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[113, 113, 114]
|
p03238
|
u059210959
| 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.
|
['#encoding utf-8\n\nn = int(input())\ndata = []\nfor i in range(n):\n x,y,h=map(int,input().split())\n data.append([x,y,h])\n\ndef calH(cx,cy,data):\n return data[2]+abs(data[0]-cx)+abs(data[1]-cy)\n\ndef conh(temH,cx,cy,data):\n return temH-abs(data[0]-cx)-abs(data[1]-cy)\n\n\nfor i in range(101):\n for j in range(101):\n clear = 0\n count = 0\n for k in range(n):\n if clear == 0:\n temH = calH(i,j,data[k])\n if data[k][2] != 0:\n clear = 1\n else:\n if conh(temH,i,j,data[k]) < 0:\n count += 1\n else:\n count += 1\n clear = 1\n\n for k in range(count,n):\n print(k)\n ignore_flag = 0\n if data[k][2] == 0:\n if conh(temH,i,j,data[k]) < 0:\n ignore_flag = 1\n count += 1\n\n if ignore_flag == 0:\n if calH(i,j,data[k]) != temH:\n break\n else:\n count += 1\n if count == n:\n answer=[i,j,calH(i,j,data[0])]\n\nprint(answer[0],answer[1],answer[2])\n', '#encoding utf-8\n\nn = int(input())\ndata = []\nfor i in range(n):\n x,y,h=map(int,input().split())\n data.append([x,y,h])\n\ndef calH(cx,cy,data):\n return data[2]+abs(data[0]-cx)+abs(data[1]-cy)\n\ndef conh(temH,cx,cy,data):\n return temH-abs(data[0]-cx)-abs(data[1]-cy)\n\n\nfor i in range(101):\n for j in range(101):\n clear = 0\n count = 0\n for k in range(n):\n if clear == 0:\n temH = calH(i,j,data[k])\n if data[k][2] != 0:\n clear = 1\n else:\n if conh(temH,i,j,data[k]) < 0:\n count += 1\n else:\n count += 1\n clear = 1\n\n for k in range(count,n):\n print(k)\n ignore_flag = 0\n if data[k][2] == 0:\n if conh(temH,i,j,data[k]) < 0:\n ignore_flag = 1\n count += 1\n\n if ignore_flag == 0:\n if calH(i,j,data[k]) != temH:\n break\n else:\n count += 1\n if count == n:\n answer=[i,j,calH(i,j,data[0])]\n\nprint(answer[0],answer[1],answer[2])\n', '#!/usr/bin/env python3\n# encoding:utf-8\nimport copy\nimport random\nimport bisect \nimport fractions \nimport math\nimport sys\nimport collections\nfrom decimal import Decimal \n\nmod = 10**9+7\nsys.setrecursionlimit(mod) \n\nd = collections.deque()\ndef LI(): return list(map(int, sys.stdin.readline().split()))\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', 'Runtime Error', 'Accepted']
|
['s105716131', 's277757666', 's517169430']
|
[3064.0, 3064.0, 10792.0]
|
[17.0, 17.0, 38.0]
|
[1221, 1221, 580]
|
p03238
|
u059262067
| 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 print(int(input())+int(input()))\n\n\n', 'n = int(input())\n \nif n == 1:\n print("Hello World")\nelse:\n print(int(input())+int(input()))\n ']
|
['Runtime Error', 'Accepted']
|
['s398800094', 's015572295']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[94, 95]
|
p03238
|
u063346608
| 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\tanswer = "Hello World"\n print(answer)\nelif N == 2:\n\tA = input(int())\n B = input(int())\n\tanswer = A + B\n\tprint(int(answer))', 'N = int(input())\n \nif N == 1:\n\tanswer = "Hello World"\n\tprint(answer)\nelif N == 2:\n\tA = input(int())\n B = input(int())\n\tanswer = A + B\n\tprint(int(answer))', 'N = int(input())\n\nif N == 1:\n\tanswer = "Hello World"\n print(answer)\nelif N == 2:\n\tA,B = map(int,input().split())\n\tanswer = A + B\n\tprint(int(answer))', 'N = int(input())\n\nif N == 1:\n\tanswer = "Hello World"\n\tprint(answer)\nelif N == 2:\n\tA = int(input())\n\tB = int(input())\n\tanswer = A + B\n\tprint(answer)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s004610017', 's664732621', 's779492564', 's828426069']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 18.0]
|
[158, 156, 151, 147]
|
p03238
|
u064408584
| 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=[]\nfor i in range(n):\n a.append(list(map(int, input().split())))\na.sort(key=lambda x:(-x[2],x[0]+x[1]))\nif n==1:\n print(a[0][0],a[0][1],a[0][2])\nelse:\n for i in range(101):\n for j in range(101):\n ansh=[0]*(n+2)\n for k,(x,y,h) in enumerate(a):\n ansh[k]=h+abs(i-x)+abs(j-y)\n if h==0:ansh[k]=min([ansh[k],max(ansh[:k])])\n if len(set(ansh))==2:\n print(i,j,ansh[1])', "n=int(input())\nif n==1:print('Hello World')\nelse:\n print(int(input())+int(input()))"]
|
['Runtime Error', 'Accepted']
|
['s117847309', 's512008069']
|
[3064.0, 2940.0]
|
[17.0, 17.0]
|
[471, 86]
|
p03238
|
u064563749
| 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==2:\n A,B=map(int,[input() for i in range(2)])\n print(A+B)\nelse:\n print('Hello World')\n"]
|
['Runtime Error', 'Accepted']
|
['s776698575', 's362247891']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[99, 115]
|
p03238
|
u071970578
| 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)\n", "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', 'Accepted']
|
['s004800952', 's150212526']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[108, 122]
|
p03238
|
u072606168
| 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 = input().split()\nN,T = int(x[0]),int(x[1])\na,b,c,d = [],[],[],[]\nfor i in range(N):\n v = input().split()\n v = [int(s) for s in v]\n a.append(v)\nfor i in range(N):\n b.append(a[i][0])\nfor i in range(N):\n c.append(a[i][1])\nfor i in range(N):\n if b[i] < T:\n d.append(a[b.index(b[i])][0])\nif len([i for i, x in enumerate(d) if x == min(d)]) == 1 and [i for i, x in enumerate(d) if x == min(d)] != [0]:\n print(min(d))\nelse:\n print('TLE')", "x = input().split()\nN,T = int(x[0]),int(x[1])\na = []\nb = []\nc = []\nd = []\nfor i in range(N):\n v = input().split()\n v = [int(s) for s in v]\n a.append(v)\nfor i in range(N):\n b.append(a[i][0])\nfor i in range(N):\n c.append(a[i][1])\nfor i in range(N):\n if b[i] < T:\n d.append(a[b.index(b[i])][0])\nif len([i for i, x in enumerate(d) if x == min(d)]) == 1 and [i for i, x in enumerate(d) if x == min(d)] != [0]:\n print(min(d))\nelse:\n print('TLE')", "a = int(input())\nif a == 1:\n print('Hello World')\nelse:\n b = int(input())\n c = int(input())\n print(b + c)"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s746733551', 's927890056', 's415950290']
|
[3064.0, 3064.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[464, 470, 117]
|
p03238
|
u075303794
| 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']
|
['s637230087', 's956680500']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[105, 109]
|
p03238
|
u075595666
| 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\ninput = sys.stdin.readline\nn = int(input())\nc = []\nfor i in range(n):\n a = [int(i) for i in input().split()]\n c.append(a)\n\np,q,r = c[0]\nif n == 1:\n print(p,q,r)\n exit()\n\nend = c[-1]\nc = c[1:]\nfor i in range(101):\n for j in range(101):\n chk = abs(p-i)+abs(q-j)+r\n for num,k in enumerate(c):\n x,y,h = k\n if abs(x-i)+abs(y-j)+h != chk and h != 0:\n break\n if k == end:\n ans = (i,j,chk)\n\nprint(*ans)', "n = int(input())\nif n == 1:\n print('Hello World')\n exit()\nelse:\n a = int(input())\n b = int(input())\n print(a+b) "]
|
['Runtime Error', 'Accepted']
|
['s197751184', 's897267505']
|
[3064.0, 2940.0]
|
[18.0, 17.0]
|
[445, 123]
|
p03238
|
u077291787
| 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.
|
['# ABC112A - Programming Education\ndef main():\n N, A, B = map(int, open(0).read().split())\n flg = N == 1\n print("Hello World" if flg else A + B)\n\n\nif __name__ == "__main__":\n main()', '# ABC112A - Programming Education\ndef main():\n N, *A = map(int, open(0).read().split())\n flg = N == 1\n print("Hello World" if flg else sum(A))\n\n\nif __name__ == "__main__":\n main()']
|
['Runtime Error', 'Accepted']
|
['s025767435', 's750562939']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[192, 191]
|
p03238
|
u077898957
| 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 print(int(input())+int(input()))\n", "n=int(input())\nif n==1:\n ans='Hello World'\nelse:\n a=int(input())\n b=int(input())\n ans=a+b\nprint(ans)\n"]
|
['Wrong Answer', 'Accepted']
|
['s520663545', 's613809664']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[95, 113]
|
p03238
|
u079022116
| 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")exit()\nelse:print(int(input())+int(input()))', 'n=int(input())\nif n==1:print("Hello World")\nelse:print(int(input())+int(input()))']
|
['Runtime Error', 'Accepted']
|
['s888571727', 's016660495']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[87, 81]
|
p03238
|
u081688405
| 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 _ in range(2))", "if input()=='1':\n print('Hello World')\nelse:\n print(sum(int(input()) for _ in range(2)))\n"]
|
['Runtime Error', 'Accepted']
|
['s345101291', 's615298820']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[89, 91]
|
p03238
|
u083960235
| 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())\nL=[list(map(int,input().split())) for i in range(N)]\nx=[]\ny=[]\nh=[]\nfor l in L:\n x.append(l[0])\n y.append(l[1])\n h.append(l[2])\nCx=0\nCy=0\nH=0\n\nfor i in range(101):#Cx\n for j in range(101):#Cy\n flag=True\n for k in range(N):\n if h[k]!=0:\n H=h[k]+abs(i-x[k])+abs(j-y[k])\n break\n\n for k in range(N):\n if h[k]!=max(H-abs(i-x[k])-abs(j-y[k]),0):\n flag=False\n break\n \n if flag==True:\n Cx,Cy=i,j\n break\n if flag==True:\n break\nprint("{} {} {}".format(Cx,Cy,H))\n ', 'import sys, re, os\nfrom collections import deque, defaultdict, Counter\nfrom math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians\nfrom itertools import permutations, combinations, product, accumulate\nfrom operator import itemgetter, mul\nfrom copy import deepcopy\nfrom string import ascii_lowercase, ascii_uppercase, digits\nfrom heapq import heapify, heappop, heappush\n \ndef input(): return sys.stdin.readline().strip()\ndef INT(): return int(input())\ndef MAP(): return map(int, input().split())\ndef S_MAP(): return map(str, input().split())\ndef LIST(): return list(map(int, input().split()))\ndef S_LIST(): return list(map(str, input().split()))\n \nsys.setrecursionlimit(10 ** 9)\nINF = float(\'inf\')\nmod = 10 ** 9 + 7\n\nN = INT()\nif N == 1:\n print("Hello World")\nelse:\n A = INT()\n B = INT()\n print(A + B)']
|
['Runtime Error', 'Accepted']
|
['s921847439', 's831269481']
|
[3064.0, 3892.0]
|
[18.0, 26.0]
|
[635, 821]
|
p03238
|
u086866608
| 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.
|
['w=input()\nif w == 1:\n print("Hello World")\nelif w == 2:\n a=input()\n b=input()\n print(a+b)\n', 'w=int(input())\nif w == 1:\n print("Hello World")\nelif w == 2:\n a=int(input())\n b=int(input())\n print(a+b)\n\n']
|
['Wrong Answer', 'Accepted']
|
['s557061665', 's782054342']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[102, 118]
|
p03238
|
u089142196
| 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= input()\n A= input()\n B= input()\n\n If N==1:\n print("Hello World") \n else:\n print(A+B)\n \nmain()', 'def main():\n N= int(input())\n A= int(input())\n B= int(input())\n\n if N==1:\n print("Hello World") \n else:\n print(A+B)\n \nmain()', 'def main():\n N= input()\n A= int(input())\n B= int(input())\n\n if N==1:\n print("Hello World") \n else:\n print(A+B)\n \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)\n\n \nmain()']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s424250550', 's517624887', 's634014178', 's765832970']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 17.0, 17.0, 17.0]
|
[144, 160, 155, 168]
|
p03238
|
u089376182
| 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\nprint('Hello World' if n==1 else a+b)\n", "n = int(input())\n\nprint('Hello World' if n==1 else int(input())+int(input()))\n"]
|
['Runtime Error', 'Accepted']
|
['s743230912', 's528394374']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[90, 78]
|
p03238
|
u094191970
| 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)", "Old = int(input())\nif Old == 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)"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s499458790', 's576690339', 's091040771']
|
[2940.0, 2940.0, 9116.0]
|
[17.0, 17.0, 27.0]
|
[115, 116, 99]
|
p03238
|
u094565093
| 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())\nxyh=[list(map(int,input().split())) for i in range(N)]\nMAX=100\nfor PosY in range(MAX+1):\n for PosX in range(MAX+1):\n needH=-1\n for i in range(N):\n if xyh[i][2]>0:\n tmp=xyh[i][2]+abs(PosX-xyh[i][0])+abs(PosY-xyh[i][1])\n if needH==-1:\n needH=tmp\n else:\n if needH!=tmp:\n needH=-2\n break\n if needH==-2:\n continue\n for i in range(N):\n if xyh[i][2]==0:\n dist=abs(PosX-xyh[i][0])+abs(PosY-xyh[i][1])\n if needH>dist:\n needH=-2\n break\n if needH==-2:\n continue\n print(PosX,PosY,needH)', "N=int(input())\nif N==1:\n print('Hello World')\nif N==2:\n A=int(input())\n B=int(input())\n print(A+B)"]
|
['Runtime Error', 'Accepted']
|
['s176879657', 's305155657']
|
[3064.0, 2940.0]
|
[17.0, 18.0]
|
[776, 110]
|
p03238
|
u099566485
| 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)"]
|
['Wrong Answer', 'Accepted']
|
['s673275418', 's503215092']
|
[3316.0, 2940.0]
|
[20.0, 17.0]
|
[108, 107]
|
p03238
|
u102902647
| 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']
|
['s166851610', 's774609297']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[105, 113]
|
p03238
|
u102960641
| 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")\nelif n == 2:\n\ta = int(input())\n b = int(input())\n print(a+b)', 'n, t = map(int,input().split())\nmydict = {}\nfor i in range(n):\n\ta, b = map(int,input().split())\n\tmydict.setdefault(a, b)\nsortedDict = sorted(mydict.items())\nk = 0\nfor j in sortedDict:\n\tk += 1\n\tif j[1] <= t:\n\t\tprint(j[0])\n\t\tbreak\n\tif k == len(sortedDict):\n\t\tprint("TLE")\n', 'n, t = map(int,input().split())\nmydict = {}\nfor i in range(n):\n\ta, b = map(int,input().split())\n\tmydict.setdefault(a, b)\nsortedDict = sorted(mydict.items())\nk = 0\nfor j in sortedDict:\n\tk += 1\n\tif j[1] <= t:\n\t\tprint(j[0])\n\t\tbreak\n\tif k == len(sortedDict):\n\t\tprint("TLE")\n\t\tbreak\n', 'n = 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']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s617852812', 's662595744', 's784633607', 's781771524']
|
[2940.0, 3188.0, 3060.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[116, 270, 278, 111]
|
p03238
|
u103730790
| 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("Heloo World")\n \nelse:\n a = int(input())\n b = int(input())\n print(a + b)', 'n = int(input())\n\nif n == 1:\n \tprint("Hello World")\n \nelse:\n \ta = int(input())\n \tb = int(input())\n print(a + b)', 'n = int(input())\n\nif n == 1:\n print("Hello Word")\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 Word")\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 Word")\n \nelse:\n A = int(input())\n B = int(input())\n print(A + B)', 'N = int(input())\n\nif N == 1:\n \tprint("Heloo World")\n \nelse:\n \tA = int(input())\n \tB = int(input())\n print(A + B)', '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)']
|
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s242608972', 's420771186', 's622392559', 's646952201', 's963333829', 's987500671', 's077407757']
|
[2940.0, 3068.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 20.0, 17.0, 17.0, 17.0]
|
[113, 116, 123, 123, 122, 116, 113]
|
p03238
|
u103902792
| 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())\ndef get_h(pos,cx,cy,H):\n r= H - abs(pos[0]-cx) - abs(pos[1]-cy)\n return r\n\npoints = []\nfor i in range(n):\n x,y,h = map(int,input().split())\n if h == 0:\n continue\n points.append([x,y,h])\n \nans = []\nif ans == []:\n for i in range(101):\n for j in range(101):\n d = get_h(points[0],i,j,0)- get_h(points[1],i,j,0)\n if points[0][2]- points[1][2] == d:\n ans.append([i,j])\nfor k in range(len(points)):\n for l in range(k+1,len(points)):\n for elem in ans[:]:\n i = elem[0]\n j = elem[1]\n if points[k][2] - points[l][2] != abs(points[l][0]-i) + abs(points[l][1]-j)- abs(points[k][0]-i)-abs(points[k][1]-j):\n ans.remove(elem)\nh = abs(points[0][0]-ans[0][0])+abs(points[0][1]-ans[0][1]) + points[0][2]\nprint('{} {} {}'.format(ans[0][0],ans[0][1],h))", "n = int(input())\nif n == '1':\n print('Hello World')\nelse:\n print(map(+,map(int,input().split())))", "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']
|
['s119826608', 's981579571', 's613826761']
|
[3064.0, 2940.0, 2940.0]
|
[18.0, 17.0, 18.0]
|
[805, 99, 107]
|
p03238
|
u106297876
| 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())\n\nif n == 2:\n a=int(input())\n b=int(input())\n print(a+b)\nelse:\n print('Hello World')"]
|
['Runtime Error', 'Accepted']
|
['s840789488', 's892946956']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[101, 110]
|
p03238
|
u107091170
| 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 ', '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']
|
['s426701859', 's500269554']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[98, 102]
|
p03238
|
u111652094
| 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())\nA = int(input())\nB = int(input())\n\nif N ==1:\n print("Hello World")\nelse:\n print(A+B)', 'N = int(input())\n\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', 'Accepted']
|
['s022425320', 's176608580', 's128055992']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 18.0, 18.0]
|
[107, 107, 116]
|
p03238
|
u114648678
| 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==2:\n a=int(input())\n b=int(input())\nif n==1:\n print("Hello World")\nelse:\n print(a+b)']
|
['Runtime Error', 'Accepted']
|
['s443058223', 's680877814']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[95, 108]
|
p03238
|
u115877451
| 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('Heelo World')\nelse:\n b=int(input())\n c=int(input())\n print(b+c)", "a=int(input())\nif a==1:\n print('Hello World')\nelse:\n b=int(input())\n c=int(input())\n print(b+c)"]
|
['Wrong Answer', 'Accepted']
|
['s798699306', 's338607055']
|
[3060.0, 2940.0]
|
[20.0, 17.0]
|
[99, 99]
|
p03238
|
u116233709
| 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())\nli=[]\ncnt=[]\nfor i in range(n):\n x,y,h=map(int,input().split())\n li.append([x,y,h])\nfor j in range(0,101):\n for k in range(0,101):\n for l in range(n):\n if li[l][2]!=0:\n cnt.append(li[l][2]+abs(li[l][0]-j)+abs(li[l][1]-k))\n elif l!=0 and li[l][2]==0:\n if cnt[0]-abs(li[l][0]-j)-abs(li[l][1]-k)>0:\n cnt.append(0) \n if len(set(cnt))==1 and max(cnt[0]-abs(li[0][0]-j)-abs(li[0][1]-k),0)==li[0][2]:\n ans=[j,k,cnt[0]]\n break\n else:\n cnt=[]\n\nprint(ans[0],ans[1],ans[2]) \n \n \n \n \n \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\n']
|
['Runtime Error', 'Accepted']
|
['s282364213', 's061866198']
|
[3064.0, 2940.0]
|
[18.0, 17.0]
|
[682, 101]
|
p03238
|
u118211443
| 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")\nelse:\n print(A+B)', 'N=int(input())\nA=int(input())\nB=int(input())\nC=A+B\nif N==1:\n print("Hello World")\nif N==2:\n print(C)', "N=int(input())\nA=int(input())\nB=int(input())\nC=A+B\nif N == 1:\n print('Hello World')\nif N == 2:\n print(C)", 'N=int(input())\nif N == 1:\n print("Hello World")\nif N == 2:\n A=int(input())\n B=int(input())\nif N == 2:\n print(A+B)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s005941918', 's273407945', 's602197920', 's756394315', 's101592708']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 18.0, 18.0, 17.0, 18.0]
|
[99, 99, 106, 110, 125]
|
p03238
|
u119982147
| 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)']
|
['Wrong Answer', 'Accepted']
|
['s785133999', 's261797539']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[115, 115]
|
p03238
|
u123745130
| 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']
|
['s777150111', 's982065404']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[98, 100]
|
p03238
|
u124498235
| 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 Wolrd")\n\texit()\nelse:\n\ta = int(input())\n\tb = int(input())\n\tprint (a+b)\n\texit()\n', 'n = int(input())\nif n == 1:\n\tprint ("Hello World")\nelse:\n\ta = int(input())\n\tb = int(input())\n\tprint (a+b)']
|
['Wrong Answer', 'Accepted']
|
['s871115502', 's257654153']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[122, 105]
|
p03238
|
u126183307
| 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())\nans=[]\nif n == 1:\n ans="Hello World"\nelse:\n ans=a+b\nprint(ans)', 'n=int(input())\na=int(input())\nb=int(input())\nans=[]\nif n == 1:\n ans="Hello World"\nelse:\n ans=a+b\nprint(ans)', 'n=int(input())\ns = [int(input()) for i in range((n-1)*2)]\nans=[]\nif n == 1:\n ans="Hello World"\nelse:\n ans=s[0]+s[1]\nprint(ans)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s440237282', 's700416919', 's792541765']
|
[2940.0, 2940.0, 3064.0]
|
[17.0, 17.0, 17.0]
|
[113, 113, 132]
|
p03238
|
u127499732
| 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.
|
['IN=open(0).read().split()\nif len(IN)==1:\n print("Hello world")\nelse:\n print(int(IN[1])+int(IN[2]))', 'IN=open(0).read().split()\nif len(IN)==1:\n print("Hello World")\nelse:\n print(int(IN[1])+int(IN[2]))']
|
['Wrong Answer', 'Accepted']
|
['s497119274', 's029334367']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[100, 100]
|
p03238
|
u127856129
| 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())\nb=int(input())\nc=int(input())\nif a==1:\n print("Hello World")\nelse:\n print(b+c)', 'a=int(input())\nb=int(input())\nc=int(input())\nif a==1:\n print("Hello World")\nelif a==2:\n print(b+c)\n', 'a=int(input())\nif a==1:\n print("Hello World")\nelse:\n b=int(input())\n c=int(input())\n print(b+c)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s557710418', 's712913914', 's469041319']
|
[2940.0, 2940.0, 2940.0]
|
[18.0, 18.0, 18.0]
|
[95, 101, 99]
|
p03238
|
u128740947
| 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())\nA,B = map(int,input().split())\n\n\nif n == 1:\n print("Hello World")\nelse :\n print("A+B")', 'n = int(input())\nA,B = map(int,input().split())\n\n\nif n == 1:\n print("Hello World")\nelse :\n print(A+B)', '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())\n\n\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', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s186523646', 's191583323', 's415109299', 's666322584', 's076707734']
|
[2940.0, 3188.0, 2940.0, 2940.0, 2940.0]
|
[19.0, 19.0, 18.0, 18.0, 17.0]
|
[111, 109, 107, 109, 119]
|
p03238
|
u129019798
| 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=input()\nif I==1:\n print('hello world')\nelse:\n A=Input()\n B=Input()\n print(A+B)", "I=input()\nif I=='1':\n print('hello world')\nelse:\n A=input()\n B=input()\n print(int(A)+int(B))\n", "I=input()\nif I==1:\n print('hello world')\nelse:\n A=input()\n B=input()\n print(int(A)+int(B))\n", "I=input()\nif I=='1':\n print('Hello World')\nelse:\n A=input()\n B=input()\n print(int(A)+int(B))\n"]
|
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s023431068', 's400756828', 's732996113', 's327039282']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[83, 96, 94, 96]
|
p03238
|
u129749062
| 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 A,B = int(input())\n print(A+B)", 'print(int(input()) + int(input()) if int(input()) == 2 else "Hello World\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', 'Runtime Error', 'Accepted']
|
['s181256641', 's323146269', 's286796989']
|
[2940.0, 2940.0, 9016.0]
|
[17.0, 17.0, 28.0]
|
[90, 75, 107]
|
p03238
|
u129978636
| 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 \nif( N == 2):\n A = int(input())\n B = int(input())\n \n print(int( 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( int( A + B))"]
|
['Runtime Error', 'Accepted']
|
['s669822970', 's663476699']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[130, 130]
|
p03238
|
u131264627
| 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 a == 1:\n print('Hellp World')\nelse:\n print(a + b)", "n = int(input())\nprint('Hello World' if n == 1 else int(input()) + int(input())) "]
|
['Runtime Error', 'Accepted']
|
['s301538375', 's510099314']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[104, 81]
|
p03238
|
u132583371
| 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')\nif n ==2:\n a,b = map(int,input().split())\n print(a+b)", "n = int(input())\nif n ==1:\n print('Hello world')\nif n ==2:\n a,b = map(int,input().split())\n print(a+b)\n ", "n = int(input())\nif n ==1:\n print('Hello World')\nif n ==2:\n a = int(input())\n b = int(input())\n ans = a+b\n print(ans)"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s270152266', 's835252720', 's624655628']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[111, 116, 132]
|
p03238
|
u133347536
| 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(\'HelloWorld\')\nelif N == 2:\n\tA=int(input("A="))\n\tB=int(input("B="))\n\tprint(A+B)', 'N = int(input())\nif N == 1:\n print(\'HelloWorld\')\nelif N == 2:\n A = int(input("A="))\n B = int(input("B="))\n print(A+B)', "N = int(input())\nif N == 1:\n print('HelloWorld')\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', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s369254703', 's404880449', 's428053169', 's187373290']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[115, 129, 122, 123]
|
p03238
|
u138486156
| 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 = [list(map(int, input().split())) for i in range(n)]\nfor i in range(101):\n for j in range(101):\n H = []\n check = []\n for k in range(n):\n x = a[k][0]\n y = a[k][1]\n h = a[k][2]\n if h == 0:\n check.append((x, y))\n else:\n H.append(h + abs(x-i) + abs(y-j))\n if len(set(H)) > 1:\n break\n if k == n-1:\n state = False\n for s,t in check:\n if H[0] - abs(s-i) - abs(t-j) > 0:\n state = True\n break\n if state:\n break\n print(i, j, H[0])\n exit()\n\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\n']
|
['Runtime Error', 'Accepted']
|
['s705736301', 's571436688']
|
[3064.0, 2940.0]
|
[18.0, 17.0]
|
[764, 117]
|
p03238
|
u140680196
| 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())\n\na = []\n\nfor i in range(n):\n cost, time = map(int, input().split())\n if time <= t:\n a.append(cost)\n\nif len(a) is 0:\n print("TLE")\nelse:\n a.sort()\n print(a[0])\n', 'n = input()\n\nif n is\'1\':\n print("Hello World")\nelif n is \'2\':\n a = int(input())\n b = int(input())\n print(a + b)']
|
['Runtime Error', 'Accepted']
|
['s075369867', 's911441583']
|
[3060.0, 2940.0]
|
[17.0, 17.0]
|
[200, 115]
|
p03238
|
u142415823
| 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.
|
["border = 101\n\n\ndef manhattan_distance(Cx, Cy, H, X, Y):\n return max(H - abs(X - Cx) - abs(Y - Cy), 0)\n\n\ndef judge_center(Cx, Cy, cords):\n for x, y, h in cords:\n if h > 0:\n H = abs(cords[0][0] - Cx) + abs(cords[0][1] - Cy) + cords[0][2]\n break\n for x, y, h in cords:\n tmp = manhattan_distance(Cx, Cy, H, x, y)\n if (h > 0 and H != tmp) or (h == 0 and H > tmp):\n return -1\n return H\n\n\ndef main():\n N = int(input())\n cords = [list(map(int, input().split(' '))) for _ in range(N)]\n\n for tmp_Cx in range(border):\n for tmp_Cy in range(border):\n h = judge_center(tmp_Cx, tmp_Cy, cords)\n if h != -1:\n print('{} {} {}'.format(tmp_Cx, tmp_Cy, h))\n return 0\n\n\nif __name__ == '__main__':\n main()\n", 'N = int(input())\nA = int(input())\nB = int(input())\n\nif N == 1:\n print("Hello World")\nelse:\n print(A+B)\n', 'N = int(input())\n\n\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']
|
['s180082968', 's512482882', 's952669536']
|
[3064.0, 3316.0, 2940.0]
|
[18.0, 19.0, 17.0]
|
[820, 109, 118]
|
p03238
|
u143173995
| 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.
|
['\nN, T = map(int, input().split())\n\nans = 1001\n\nif N < 1 or N > 100 or T < 1 or T > 1000:\n SystemExit\n\nfor i in range(N):\n cost, time = map(int, input().split())\n if time < T:\n ans = min(ans, cost)\n\nif ans == 1001:\n print("TLE")\nelse:\n print(ans)', '\nN, T = map(int, input().split())\n\nans = 1001\n\nfor i in range(N):\n cost, time = map(int, input().split())\n if time < T:\n ans = min(ans, cost)\n\nif ans == 1001:\n print("TLE")\nelse:\n print(ans)', "\nN = int(input())\n\nif N == 1:\n print('Hello World')\nelif N == 2:\n \n A = int(input())\n B = int(input())\n \n if A < 1 or A > 9 or B < 1 or B > 9:\n SystemExit\n print(A+B)\n"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s011913181', 's027239685', 's534149465']
|
[3060.0, 2940.0, 2940.0]
|
[19.0, 17.0, 17.0]
|
[401, 329, 276]
|
p03238
|
u143492911
| 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(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=input()\n b=input()\n print(int(a)+int(b))\n']
|
['Runtime Error', 'Accepted']
|
['s229482563', 's227455623']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[109, 108]
|
p03238
|
u145915236
| 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']
|
['s766991901', 's881775396']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[104, 107]
|
p03238
|
u149752754
| 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\nif int(math.sqrt(M)) > N:\n divlist = []\n for i in range (N, int(math.sqrt(M))):\n if M%i == 0:\n divlist.append(i)\n else:\n continue\n \n if divlist != []:\n for i in range(N, int(math.sqrt(M))):\n if M%i == 0:\n ans = M//i\n break\n else:\n continue\n else:\n for i in range(N,0,-1):\n if M%i == 0:\n ans = i\n break\n else:\n continue\n \nelse:\n for i in range(M//N,0,-1):\n if M%i == 0:\n ans = i\n break\n else:\n continue\n\nprint(ans)', 'import math\nN, M = map(int, input().split())\n\nif int(math.sqrt(M)) > N:\n divlist = []\n for i in range (N, int(math.sqrt(M))):\n if M%i == 0:\n divlist.append(i)\n \n if divlist != []:\n for i in range(N, int(math.sqrt(M))):\n if M%i == 0:\n ans = M//i\n break\n else:\n for i in range(N,0,-1):\n if M%i == 0:\n ans = i\n break\nelse:\n for i in range(M//N,0,-1):\n if M%i == 0:\n ans = i\n break\n \nprint(ans)', 'import math\nN, M = map(int, input().split())\n\nif int(math.sqrt(M)) > N:\n for i in range(N,int(math.sqrt(M))):\n if M%i == 0:\n ans = M//i\n break\n else:\n continue\nelse:\n for i in range(M//N,0,-1):\n if M%i == 0:\n ans = i\n break\n else:\n continue\n\nprint(ans)', "G = int(input())\nif G == 1:\n print('Hello World')\nif G == 2:\n ANS = 0\n for i in range(2):\n ANS += int(input())\n print(ANS)"]
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s343687233', 's524466797', 's590630931', 's456649795']
|
[3064.0, 3064.0, 3060.0, 2940.0]
|
[17.0, 18.0, 17.0, 17.0]
|
[719, 562, 352, 141]
|
p03238
|
u151042563
| 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('Helo World')\nelif N==2:\n A = int(input())\n B = int(input())\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)"]
|
['Wrong Answer', 'Accepted']
|
['s444221782', 's933401088']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[118, 119]
|
p03238
|
u151365505
| 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())\nB = int(input())\nprint(6 - 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 = 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', 'Accepted']
|
['s842748203', 's949115436', 's517373848']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[50, 114, 115]
|
p03238
|
u152614052
| 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.
|
["input_num = input()\n\nif input_num != 1:\n a = int(input())\n b = int(input())\n print(a + b)\nelse:\n print('Hello World')", "input_num = input()\n\nif input_num == '1':\n print('Hello World')\n\nelse:\n a = int(input())\n b = int(input())\n print(a + b)\n"]
|
['Runtime Error', 'Accepted']
|
['s217135834', 's278632956']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[129, 133]
|
p03238
|
u152638361
| 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())\nif Age ==1:\n \tprint("Hello World")\nelse:\n\tAB = [int(input()) for i in range(2)]\n print(AB[0]+AB[1])', 'Age = int(input())\nif Age ==1:\n print("Hello World")\nelse:\n AB = [int(input()) for i in range(2)]\n print(AB[0]+AB[1])']
|
['Runtime Error', 'Accepted']
|
['s588894777', 's749928726']
|
[3064.0, 2940.0]
|
[18.0, 17.0]
|
[122, 126]
|
p03238
|
u157850041
| 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())\ndata = []\nfor _ in range(N):\n x, y, h = list(map(int, input().split()))\n data.append([x,y,h])\nfor x in range(101):\n flag2 = True\n for y in range(101):\n result = abs(data[0][0] - x) + abs(data[0][1] - y) + data[0][2]\n flag = True\n for dat in data:\n if result != abs(dat[0] - x) + abs(dat[1] - y) + dat[2]:\n flag = False\n break\n if flag == True and result >= 0:\n print(x,y,result)\n Flag2 = False\n break\n if flag2 == False:break', 'x = input()\nif int(x) == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a + b)']
|
['Runtime Error', 'Accepted']
|
['s504770388', 's193927427']
|
[3064.0, 2940.0]
|
[17.0, 17.0]
|
[559, 117]
|
p03238
|
u158620769
| 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()\n\nif N == 1:\n print("Hello World")\nelse:\n a = input()\n b = 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(str(a + b))']
|
['Runtime Error', 'Accepted']
|
['s820346448', 's447267296']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[96, 116]
|
p03238
|
u162893962
| 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())\n\nd = {}\nfor _ in range(N):\n Ns = [int(i) for i in input().split()]\n time = Ns[1]\n if time <= T:\n d[Ns[0]] = time\nif d:\n print(min(d))\nelse:\n print('TLE')", "N = int(input())\n\n\nif N == 1:\n print('Hello World')\nelse:\n A = int(input())\n B = int(input())\n print(A + B)"]
|
['Runtime Error', 'Accepted']
|
['s712452497', 's715727084']
|
[3060.0, 2940.0]
|
[17.0, 16.0]
|
[208, 119]
|
p03238
|
u163874353
| 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")\n break\nelse:\n a = int(input())\n b = int(input())\n print(a + b)', '\nn = int(input())\nif n == 1:\n print("Hello World")\n exit()\nelse:\n a = int(input())\n b = int(input())\n print(a + b)']
|
['Runtime Error', 'Accepted']
|
['s078992506', 's977443213']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[127, 129]
|
p03238
|
u169138653
| 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,t=map(int,input().split())\nct=[list(map(int,input().split())) for i in range(n)]\nans=float('inf')\nok=False\nfor i in range(n):\n if ct[i][1]<=t:\n ans=min(ans,ct[i][0])\n ok=True\nif ok:\n print(ans)\nelse:\n print('TLE')\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']
|
['s475869057', 's545593638', 's512918812']
|
[2940.0, 3060.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[95, 225, 100]
|
p03238
|
u170324846
| 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(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']
|
['s179478771', 's871118428']
|
[2940.0, 2940.0]
|
[18.0, 18.0]
|
[94, 109]
|
p03238
|
u173374079
| 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()\n\nif n == 1:\n print("Hello World")\nelif n == 2:\n print(a + b)', '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 = input()\na = int(input())\nb = int(input())\n\nif n == "1":\n print("Hello World")\nelif n == "2":\n print(a + b)', 'n = 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)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s470037440', 's749645841', 's770379309', 's470917998']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[98, 117, 116, 119]
|
p03238
|
u178192749
| 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)\n"]
|
['Wrong Answer', 'Accepted']
|
['s376175836', 's252247306']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[107, 108]
|
p03238
|
u181215519
| 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{\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', 'Accepted']
|
['s295151657', 's382010073']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[131, 127]
|
p03238
|
u181937133
| 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 numpy as np,math,itertools\nn=int(input())\na=int(input())\nb=int(input())\nif n==1:print("Hello World")\nelse:print(a+b)', 'import numpy as np,math,itertools\nn=int(input())\nif n==1:print("Hello World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)']
|
['Runtime Error', 'Accepted']
|
['s359664477', 's249429730']
|
[21888.0, 18604.0]
|
[1493.0, 1347.0]
|
[123, 136]
|
p03238
|
u183200783
| 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())\n\nif age == 1:\n "Hello World"\nelse:\n A = int(input())\n B = int(input())\n print(A + B)', 'age = int(input())\n\nif age == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A + B)\n']
|
['Wrong Answer', 'Accepted']
|
['s791269343', 's572145059']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[107, 115]
|
p03238
|
u185037583
| 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, a, b = [int(input()) for i in range(3)]\nif n==1:\n print('Hello World')\nelse:\n print(a+b)\n \n \n", "n = int(input())\nif n == 1:\n print('Hello World')\nelse:\n a, b = [int(input()) for i in range(2)]\n print(a+b)\n"]
|
['Runtime Error', 'Accepted']
|
['s943509841', 's884654179']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[100, 118]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.