problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p03238
u589087860
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 exit(0)\n\nelse:\n a = int(input())\n b = int(input())\n print(a + b)\n', 'n = int(input())\n\nif n == 1:\n print("Hello World")\n exit(0)\n\nelse:\n a = int(input())\n b = int(input())\n print(a + b)\n']
['Wrong Answer', 'Accepted']
['s781099799', 's076685123']
[2940.0, 2940.0]
[17.0, 17.0]
[133, 132]
p03238
u589726284
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['N = int(input())\nif N == 1:\n print("Hello world")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)\n', 'N = int(input())\nif N == 1:\n print("Hello world")\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")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s488772921', 's980233337', 's413494331']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[116, 123, 116]
p03238
u593063683
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\nN = int(input())\nif N==1: print('hello, world')\nelse:\n A, B = [int(x) for x in input().split()]\n print(A+B)\n ", "# A\nN = int(input())\nif N==1: print('Hello World')\nelse:\n A = int(input())\n B = int(input())\n print(A+B)\n "]
['Runtime Error', 'Accepted']
['s675714343', 's767535921']
[2940.0, 2940.0]
[18.0, 17.0]
[122, 118]
p03238
u595205513
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("How old are you ?: "))\n\nif n == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print("{0}".format(a + b))', 'total = [int(i) for i in input().split()]\nn = total[0]\ntime_limit = total[1]\n\nci = []\nti = []\nfor i in range(n):\n list = [int(j) for j in input().split()]\n ci.append(list[0])\n ti.append(list[1])\n\nmin = 1000\nfor i in range(len(ci)):\n if ci[i] < min and ti[i] < time_limit:\n min = ci[i]\n\nif min != 1000:\n print(min)\nelse:\n print("TLE")', 'total = [int(i) for i in input().split()]\nn = total[0]\ntime_limit = total[1]\n\nci = []\nti = []\nfor i in range(n):\n list = [int(j) for j in input().split()]\n ci.append(list[0])\n ti.append(list[1])\n\nmin = 100\nupdate = 0\nfor i in range(len(ci)):\n if ci[i] <= min and ti[i] <= time_limit:\n min = ci[i]\n update = 1\n\nif update == 1:\n print(min)\nelse:\n print("TLE")', 'n = int(input())\n\nif n == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print("{0}".format(a + b))']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s808741080', 's814260936', 's894935350', 's442600418']
[2940.0, 3064.0, 3064.0, 2940.0]
[17.0, 18.0, 17.0, 17.0]
[153, 358, 389, 132]
p03238
u597455618
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())\nm = 1001\nfor i in range(n):\n c, t = map(int, input().split())\n if t < T:\n m = min(c, m)\nif m == 1001:\n print("TLE")\nelse:\n print(m)', 'n = int(input())\na = [input() for i in range(n)]\nif n ==1 :\n print("Hello World")\nelse :\n print(a[o]+ a[1])', 'n = int(input())\nif n ==1 :\n print("Hello World")\nelse :\n a = [int(input()) for i in range(n)]\n print(a[0] + a[1])']
['Runtime Error', 'Runtime Error', 'Accepted']
['s211727464', 's788561258', 's420201633']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[170, 109, 117]
p03238
u599547273
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['print', 'n = int(input())\n\nif n == 1:\n\tprint("Hello World")\nelse:\n\ta, b = [int(input()) for _ in range(2)]\n\tprint(a + b)']
['Wrong Answer', 'Accepted']
['s564260620', 's769767376']
[2940.0, 2940.0]
[17.0, 24.0]
[5, 111]
p03238
u600261652
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())\nprint("Hello World" if N == 1 else A+B)', '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)']
['Runtime Error', 'Accepted']
['s978898160', 's180248941']
[2940.0, 2940.0]
[17.0, 17.0]
[89, 111]
p03238
u600402037
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
["# coding: utf-8\nimport sys\n\nsr = lambda: sys.stdin.readline().rstrip()\nir = lambda: int(sr())\nlr = lambda: list(map(int, sr().split()))\n\nN = ir()\nif N == 1:\n pritn('Hello World'); exit()\nA = ir(); B = ir()\nanswer = A + B\nprint(answer)\n", "# coding: utf-8\nimport sys\n\nsr = lambda: sys.stdin.readline().rstrip()\nir = lambda: int(sr())\nlr = lambda: list(map(int, sr().split()))\n\nN = ir()\nif N == 1:\n print('Hello World'); exit()\nA = ir(); B = ir()\nanswer = A + B\nprint(answer)\n"]
['Runtime Error', 'Accepted']
['s746319643', 's028766006']
[2940.0, 2940.0]
[18.0, 17.0]
[238, 238]
p03238
u601082779
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['if int(input())==1:print("Hello World")else:print(int(input())+int(input()))', 'if int(input())==1\n\tprint("Hello World")\nelse\n\tprint(int(input())+int(input()))', 'if int(input())==1:\n\tprint("Hello World")\nelse:\n\tprint(int(input())+int(input()))']
['Runtime Error', 'Runtime Error', 'Accepted']
['s388119182', 's404696407', 's889478945']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[76, 79, 81]
p03238
u603234915
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)', 'if int(input()) == 1:\n print("Hello World")\nelse:\n print(int(input()) + int(input()))']
['Runtime Error', 'Accepted']
['s048133194', 's114002172']
[2940.0, 2940.0]
[17.0, 17.0]
[109, 91]
p03238
u604412462
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.
["s = [int(input()) for i in range(3)]\nif s[0] == 1:\n print('Hello World')\nif s[0] == 2:\n print(int(s[1] + s[2]))", "age = int(input())\nif age == 1:\n print('Hello World')\n \nif age == 2:\n s = [int(input()) for i in range(2)]\n print(int(s[0] + s[1]))"]
['Runtime Error', 'Accepted']
['s565836915', 's441836497']
[3064.0, 2940.0]
[18.0, 18.0]
[117, 143]
p03238
u606033239
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=[]\n\nx,y,k=-1,-1,-1\nn=-1\nfor _ in range(n):\n a.append(list(map(int,input().split())))\n if a[_][2] != 0:\n n=i\nfor i in range(101):\n for j in range(101):\n h=a[0][2]+abs(a[0][0]-i)+abs(a[0][1]-j)\n d=True\n\n for l in range(n):\n if a[l][2] > 0 and h != a[l][2]+abs(a[l][0]-i)+abs(a[l][1]-j):\n d=False\n if a[l][2]==0 and h>abs(a[l][0]-i)+abs(a[l][1]-j):\n d=False\n \n if d:\n x,y,k=i,j,h\n print(x,y,k)\n exit()\n\n', "\nN = int(input('1または2を入力してください:'))\n\nif N == 1:\n print('Hello World')\nelse:\n A=int(input('Aの値を入力してください(0~9の整数):'))\n B=int(input('Bの値を入力してください(0~9の整数):'))\n print(A+B)\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', 'Wrong Answer', 'Accepted']
['s581771868', 's894888474', 's808849563']
[3064.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0]
[557, 261, 112]
p03238
u609814378
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\nans = []\n\nfor i in range(N):\n c,t = map(int, input().split())\n if T > t[i]:\n number = c[i]\n ans.appned(number)\n \n\nif len(ans) == 0:\n print("TLE")\nelse:\n print(min(ans)) \n ', 'n = int(input())\n \nif n==1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)']
['Runtime Error', 'Accepted']
['s063795061', 's080810313']
[2940.0, 2940.0]
[17.0, 17.0]
[243, 107]
p03238
u611562941
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())\n\nif n == 1:\n print("Hello World")\nelse:\n print(a+b)', 'n = int(input())\na = int(input())\nb = int(input())\n\n\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())\n\n\nif n == 1:\n print("Hello World")\nelse:\n print(a+b)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s084693307', 's638361806', 's743889165']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[106, 109, 128]
p03238
u619458041
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\ndef main():\n input = sys.stdin.readline\n N = int(input())\n A = int(input())\n B = int(input())\n if N == 1:\n print('Hello World')\n else:\n print(A + B)\n\n\nif __name__ == '__main__':\n main()", "import sys\n \ndef main():\n input = sys.stdin.readline\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()"]
['Runtime Error', 'Accepted']
['s260874732', 's013819847']
[2940.0, 2940.0]
[18.0, 18.0]
[210, 217]
p03238
u619819312
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['n, m = list(map(int,input().split()))\ndef solve():\n for i in range(m//n, 0, -1):\n if m % i == 0:\n print(i)\n break\nsolve()', 'n=int(input())\nif n==1:\n print("Hello World")\nelse:\n t=[int(input()) for i in range(2)] \n print(t[0]+t[1])']
['Runtime Error', 'Accepted']
['s168447798', 's461937548']
[2940.0, 2940.0]
[17.0, 20.0]
[153, 109]
p03238
u620846115
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['n= int(input())\nif n = 1:\n print("Hello World")\nelif n = 2:\n a = int(input())\n b = int(input())\n print(a+b)', 'n= int(input())\nif n = 1:\n print("Hello World")\n exit()\nelse:\n a = int(input())\n b = int(input())\n print(a+b)', 'n= int(input())\nif n = 1:\n print("Hello World")\n exit()\n\na = int(input())\nb = int(input())\nprint(a+b)', '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', 'Runtime Error', 'Runtime Error', 'Accepted']
['s140326010', 's225882982', 's743024485', 's006573944']
[8880.0, 8848.0, 8856.0, 9156.0]
[25.0, 24.0, 24.0, 26.0]
[111, 114, 103, 115]
p03238
u623036684
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())\ncage,cage2=[],[]\nfor i in range(N):\n c, t = map(int, input().split())\n if t<=T:\n\tcage.append(c)\nif cage==None:\n print("TLE")\nelse:\n print(min(cage))', 'N, T = map(int, input().split())\ncage,cage2=[],[]\nfor i in range(N):\n c, t = map(int, input().split())\n if t<=T:\n cage.append(c)\nif cage is None:\n print("TLE")\nelse:\n print(min(cage))', 'N, T = map(int, input().split())\ncage,cage2=[],[]\nfor i in range(N):\n c, t = map(int, input().split())\n if t<=T:\n\tcage.append(c)\nif cage is None:\n print("TLE")\nelse:\n print(min(cage))', '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', 'Runtime Error', 'Runtime Error', 'Accepted']
['s109967637', 's400470263', 's771991767', 's202154262']
[2940.0, 3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 19.0]
[185, 192, 187, 105]
p03238
u623065116
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, b = map(int, input().split())\n ans = a+b\n print(ans)', 'n = int(input())\n\nif n == 1:\n print("Hello World")\nelif n ==2:\n a = int(input())\n b = int(input())\n ans = a+b\n print(ans)']
['Runtime Error', 'Accepted']
['s540510991', 's440074162']
[2940.0, 2940.0]
[18.0, 17.0]
[120, 136]
p03238
u624160088
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
["N = int(input('N:'))\nif N == 1:\n\tprint('Hello World')\nelif N == 2:\n\tA = int(input('A:'))\t\n\tB = int(input('B:'))\n\tprint(A+B)", "N = int(input())\n\nx_list=[]\ny_list=[]\nh_list=[]\n\ndef all_same(items):\n\treturn all(map(lambda x: x == items[0], items))\n\nfor i in range(N):\n\tx,y,h=map(int, input().split())\n\tx_list.append(x)\n\ty_list.append(y)\n\th_list.append(h)\t\n\t\t\nfor cy in range(N+1):\n\tfor cx in range(N+1):\n\t\tH_list = []\n\t\tfor i in range(N):\n\t\t\tif h_list[i] != 0:\n\t\t\t\tH = abs(cx - x_list[i])+abs(cy - y_list[i])+h_list[i]\n\t\t\t\tH_list.append(H) \n\t\t\tif h_list[i] == 0:\n\t\t\t\tH = abs(cx - x_list[i])+abs(cy - y_list[i])+h\n\t\t\t\tif H > 0:\n\t\t\t\t\tbreak\n\t\telse:\n\t\t\tif all_same(H_list):\n\t\t\t\tprint(str(cx)+' '+str(cy)+' '+str(H_list[0]))\n\t\t\t\tbreak\n\t\tbreak\t\t\t\t\n\telse:\n\t\tcontinue\n\tbreak\n\n\t\t\t\t\n\t\t\t\n\t\t\t", "N = int(input())\nif N == 1:\n\tprint('Hello World')\nelif N == 2:\n\tA = int(input())\t\n\tB = int(input())\n\tprint(A+B)"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s640692871', 's898496145', 's693502043']
[2940.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[123, 651, 111]
p03238
u626337957
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())\nsurveys = [list(map(int, input().split())) for _ in range(N)]\nfor x in range(101):\n for y in range(101):\n before = 0\n identified = True\n for survey in surveys:\n if survey[2] == 0:\n continue\n height = survey[2] + abs(x-survey[0]) + abs(y-survey[1])\n if before != 0 and before != height:\n identified = False\n continue\n before = height\n if identified:\n print(x, y, before)\n exit()\n', 'N = int(input())\nsurveys = [list(map(int, input().split())) for _ in range(N)]\nfor x in range(101):\n for y in range(101):\n before = 0\n identified = True\n for survey in surveys:\n height = survey[2] + abs(x-survey[0]) + abs(y-survey[1])\n if height != 0 and before != height:\n identified = False\n continue\n if height != 0:\n before = height\n if identified:\n print(x, y, before)\n', 'N = int(input())\nsurveys = [list(map(int, input().split())) for _ in range(N)]\nfor x in range(101):\n for y in range(101):\n before = -1\n identified = True\n for survey in surveys:\n height = survey[2] + abs(x-survey[0]) + abs(y-survey[1])\n if before != -1 and before != height:\n if survey[2] == 0:\n continue\n identified = False\n break\n if before == -1:\n before = height\n if identified:\n print(x, y, before)\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', 'Runtime Error', 'Accepted']
['s001225599', 's194671675', 's414666185', 's225715341']
[3064.0, 3060.0, 3064.0, 2940.0]
[17.0, 17.0, 18.0, 17.0]
[459, 428, 474, 107]
p03238
u628262476
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=map(int,input().split())\nprint('Hello World' if n==1 else a+b)", "n,a,b=map(int,[input() for i in range(3)])\nprint('Hello World' if n==1 else a+b)", "n=int(input())\nif n==1:\n print('Hello World')\nelse:\n a=int(input());b=int(input())\n print(a+b)\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s103601468', 's872043462', 's777771666']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 19.0]
[68, 80, 98]
p03238
u633763428
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\n\nif n == 1:\n print("Hello world")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)', 'n = int(input())\n\n\nif n == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)\n']
['Wrong Answer', 'Accepted']
['s215363671', 's583124313']
[2940.0, 2940.0]
[17.0, 17.0]
[117, 118]
p03238
u634461820
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 N == 1:\n print("Hello World")\nelif N == 2:\n print(A + B)\n', 'N, T = map(int,raw_input().split())\nans = float("inf")\n\nfor i in range(N):\n c,t = map(int,input(),split())\n if t <= T:\n ans = min(num,c)\n\nif ans == float("inf"):\n print("TLE")\nelse:\n print(ans)\n', 'N, T = map(int,input().split())\nans = float("inf")\n\nfor i in range(0,N):\n c,t = map(int,input(),split())\n if t <= T:\n ans = min(num,c)\n\nif ans == float("inf"):\n print("TLE")\nelse:\n print(ans)\n', 'if N = 1:\n print("Hello Wowld")\nelif N = 2:\n print A + B\nelse:\n exit if\n', 'N, T = map(int,input().split())\nans = float("inf")\n\nfor i in range(N):\n c,t = map(int,input().split())\n if t <= T:\n ans = min(ans,c)\n\nif ans == float("inf"):\n print("TLE")\nelse:\n print(ans)\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']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s021927178', 's059707063', 's080025112', 's184716373', 's449834317', 's418786257']
[2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 20.0, 17.0]
[66, 213, 211, 75, 209, 125]
p03238
u635339675
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\tprint("Hello World")\t\nelse:\n print(b+c)\t\n', 'a=int(input())\nb=int(input())\nc=int(input())\nif a!=1:\n\tprint(b+c)\nelse:\n\tprint("Hello World")\t\n', 'a=[]\nfor i in range(3):\n\ta.append(int(input()))\n\nif a[0]!=1:\n\tprint(a[1]+a[2])\nelse:\n\tprint("Hello World")\n\n ', '\na=int(input())\nif a==1:\n\tprint("Hello World")\nelse:\n\tb=int(input())\n\tc=int(input())\n\tprint(b+c)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s225531702', 's639333721', 's826559582', 's875744253']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[99, 95, 112, 210]
p03238
u635947839
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\tprint('Hello World')\nelse:\n\ta = input()\n\tb = input()\n\tprint(a + b)", "n = int(input())\n\nif n==1:\n\tprint('Hello World')\nelse:\n\ta = int(input())\n\tb = int(input())\n\tprint(a + b)"]
['Runtime Error', 'Accepted']
['s757704870', 's854360119']
[2940.0, 2940.0]
[17.0, 17.0]
[90, 104]
p03238
u640319601
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 print(A+B)\n", "if int(input()) == 1:\n print('Hello World')\nelse:\n A = int(input())\n B = int(input())\n print(A+B)\n"]
['Runtime Error', 'Accepted']
['s741009848', 's265171866']
[2940.0, 2940.0]
[17.0, 17.0]
[99, 110]
p03238
u643714578
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 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)', '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', 'Wrong Answer', 'Accepted']
['s309749244', 's660818167', 's646828894']
[2940.0, 2940.0, 2940.0]
[19.0, 17.0, 17.0]
[99, 99, 99]
p03238
u648212584
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['N = int(input())\n\nif N = 1:\n print("Hello World")\nelse:\n A = int(input())\n \n B = int(input())\n \n print( A + B )\n', 'N = int(input())\n \nif N == 1:\n print("Hello World")\nelse:\n A = int(input())\n \n B = int(input())\n \n print( A + B )']
['Runtime Error', 'Accepted']
['s108583825', 's845029852']
[2940.0, 2940.0]
[17.0, 17.0]
[118, 119]
p03238
u652081898
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")\n \nelif N == 2:\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(a+b)\n']
['Wrong Answer', 'Accepted']
['s307911856', 's267519388']
[2940.0, 2940.0]
[17.0, 18.0]
[113, 117]
p03238
u652264802
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 = [int(s) for s in input().split()]\n\nc = []\nt = []\nfor n in N:\n inputs = input().split()\n c.append(int(inputs[0]))\n t.append(int(inputs[1]))\n\nmin_cost = None\nfor i in range(N):\n if t[i] <= T and (min_cost is None or c[i] <= min_cost):\n min_cost = c[i]\n result = i\n\nreturn i', 'x = input()\nif x is "1":\n print("Hello World")\nelif x is "2":\n a = int(input())\n b = int(input())\n print(a+b)\n']
['Runtime Error', 'Accepted']
['s522049777', 's749491218']
[3060.0, 2940.0]
[17.0, 17.0]
[305, 122]
p03238
u652656291
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 a == 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\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']
['s804707831', 's886713127', 's628285017']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[104, 104, 108]
p03238
u653837719
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())\nt, a = map(int, input().split())\nh = list(map(int, input().split()))\nans = 10000\n\nfor i in range(n):\n if abs(a - (t - h[i] * 0.006)) < ans:\n ans = abs(a - (t - h[i] * 0.006))\n b = i\nprint(b + 1)\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)\n']
['Runtime Error', 'Accepted']
['s246942329', 's563091838']
[2940.0, 2940.0]
[17.0, 17.0]
[235, 119]
p03238
u659640418
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['if int(input())==1:\n print("Hello World!")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)', 'if int(input())==1:\n print("Hello World!")\nelse:\n a,b = map(int, input().split())\n print(a+b)', 'if int(input())==1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s376435084', 's846669091', 's729477552']
[2940.0, 3060.0, 2940.0]
[17.0, 18.0, 18.0]
[108, 102, 107]
p03238
u660562696
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\nelse:\n A = int(input())\n B = int(input())\n\n print(A+B)", "age=input()\nif age==1:\n print('Hello World')\n \nelse:\n A=int(input())\n B=int(input())\n print(A+B)", "N=int(input())\n\nif N == 1:\n print('Hello World')\n\nif N == 2:\n A=int(input())\n B=int(input())\n\n print(A+B)"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s001838399', 's036389982', 's238705743']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[117, 100, 117]
p03238
u663014688
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())\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']
['s916377576', 's046141044']
[2940.0, 2940.0]
[17.0, 17.0]
[110, 119]
p03238
u663438907
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(int(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())\nif N == 1:\n print('Hello World')\nelse:\n A = int(input())\n B = int(input())\n print(int(A+B))"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s405375896', 's917899331', 's046367379']
[3316.0, 2940.0, 2940.0]
[22.0, 17.0, 17.0]
[109, 104, 112]
p03238
u665893287
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
["# -*- coding: utf-8 -*-\n\ndef main():\n n = int(input())\n if n == 1:\n print('Hello, World')\n else:\n print(int(input()) + int(input()))\n\n\nif __name__ == '__main__':\n main()\n", "# -*- coding: utf-8 -*-\n\ndef main():\n n = int(input())\n if n == 1:\n print('Hello World')\n else:\n print(int(input()) + int(input()))\n\n\nif __name__ == '__main__':\n main()\n"]
['Wrong Answer', 'Accepted']
['s558080521', 's295833333']
[2940.0, 2940.0]
[18.0, 17.0]
[196, 195]
p03238
u666844906
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 print(int(input()) + int(input()))\n", "n = int(input())\nif n == 1:\n print('Hello World')\nelse:\n print(int(input()) + int(input()))"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s029831627', 's916746450', 's279429007']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[115, 98, 97]
p03238
u667024514
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())\nlis = [list(map(int,input().split())) for i in range(n)]\nli = []\nfor nu,nuu,nuuu in lis:\n if nuuu != 0:li.append([nu,nuu,nuuu])\nfor i in range(101):\n for j in range(101):\n s = set()\n for h in range(len(li)):\n num = abs(li[h][0]-i)+abs(li[h][1]-j)\n if num + li[h][2] < 0:\n s.add(num + li[h][2] + 1)\n s.add(num + li[h][2])\n if len(s) == 1:\n for num in s:\n print(i,j,num)', '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']
['s322144249', 's767712296']
[3064.0, 3316.0]
[18.0, 23.0]
[430, 118]
p03238
u667694979
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['n=int(input)\n\nif n==1:\n print("Hello World")\nelse:\n A=int(input())\n B=int(input())\n print(A+B)', 'n=int(input())\n\nif n==1:\n print("Hello World")\nelse:\n A=int(input())\n B=int(input())\n print(A+B)']
['Runtime Error', 'Accepted']
['s833966449', 's617180878']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 100]
p03238
u669573977
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.
['#!/Library/Frameworks/Python.framework/Versions/3.5/bin/python3\n\nn = int(input())\nvh = {}\nzx = []\nzy = []\nzh = []\nfor j in range(101):\n for k in range(101):\n vh[j, k] = -2\nfor i in range(n):\n x, y, h = list(map(int, input().split()))\n if h == 0:\n zx.append(x)\n zy.append(y)\n zh.append(h)\n continue\n for j in range(101):\n for k in range(101):\n hi = h + abs(j - x) + abs(k - y)\n if vh[j, k] == -2:\n vh[j, k] = hi\n elif vh[j, k] > -1:\n if vh[j, k] != hi:\n vh[j, k] = -1\n\nrs = 0\nfor j in range(101):\n for k in range(101):\n if vh[j, k] > -1:\n rs += 1\n rj = j\n rk = k\n\nif rs == 1:\n print(rj, rk, vh[rj, rk])\nelse:\n for i in range(rs):\n dels = 0\n for j in range(101):\n for k in range(101):\n hi = zh + abs(j - zx) + abs(k - zy)\n if vh[j, k] > -1:\n if vh[j, k] != hi:\n dels += 1\n if dels == rs - 1:\n for j in range(101):\n for k in range(101):\n hi = zh + abs(j - zx) + abs(k - zy)\n if vh[j, k] > -1:\n if vh[j, k] != hi:\n vh[j, k] = -1\n for j in range(101):\n for k in range(101):\n if vh[j, k] > -1:\n print(j, k, vh[j, k])\n \n', "#!/Library/Frameworks/Python.framework/Versions/3.5/bin/python3\nfrom collections import defaultdict\n\nn = 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']
['s697585688', 's268605627']
[4220.0, 3444.0]
[21.0, 87.0]
[1504, 216]
p03238
u670567845
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
["N = int(input())\nA = int(input())\nB = int(input())\n\nif N == 1:\n print('Hello World')\nif N == 2:\n print(A+B)", "N = int(input())\nA = int(input())\nB = int(input())\n\nif N == 1:\n print('Hello World')\nelif N == 2:\n print(A+B)", "N = int(input())\nA = int(input())\nB = int(input())\n\nif N == 1:\n print('Hello World')\nif N == 2:\n print(A+B)", "N = int(input())\n\n\nif N == 1:\n print('Hello World')\nelif N == 2:\n A = int(input())\n B = int(input())\n print(A+B)"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s490052455', 's632049407', 's707630210', 's924804815']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[113, 115, 113, 124]
p03238
u672882146
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['N = int(input())\nif N ==2:\n A = int(input())\n B = int(input())\n print(A+B)\nelse:\n print("Hello world")\n', 'N = int(input())\nif N ==2:\n A = int(input())\n B = int(input())\n print(A+B)\nelse:\n print("Hello World")\n']
['Wrong Answer', 'Accepted']
['s558055310', 's174770845']
[2940.0, 2940.0]
[17.0, 18.0]
[115, 115]
p03238
u672898046
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")\n quit()\nelif n==2:\n a = int(input())\n b = int(input())\n print(a+b)']
['Runtime Error', 'Accepted']
['s468814384', 's265633553']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 121]
p03238
u674959030
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['n=int(input())\nif n==2:\n a=[int(input()) for i in range(2)]\nif n==1:\n print("Hello,World")\nelse:\n print(a[0]+a[1])', 'n=int(input())\nif n==1:\n print("Hello World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)']
['Wrong Answer', 'Accepted']
['s542927503', 's996594643']
[2940.0, 9164.0]
[17.0, 27.0]
[123, 107]
p03238
u677312543
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\nlist = []\nfor i in range(0, N):\n x, y, h = [int(x) for x in input().split()]\n list.append((x, y, h))\n\nfor X in range(0, 101):\n for Y in range(0, 101):\n b = True\n H = 0\n for Cx, Cy, Ch in list:\n if Ch != 0:\n H = Ch + abs(X - Cx) + abs(Y - Cy)\n for Cx, Cy, Ch in list:\n h = max(H - abs(X - Cx) - abs(Y - Cy), 0)\n if Ch != h:\n b = False\n if b == True:\n print(X, Y, H)\n sys.exit(0)\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", 'import sys\n\nN = int(input())\n\nlist = []\nfor i in range(0, N):\n x, y, h = [int(x) for x in input().split()]\n list.append((x, y, h))\n\nfor X in range(0, 101):\n for Y in range(0, 101):\n b = True\n H = 0\n for Cx, Cy, Ch in list:\n if Ch != 0:\n H = Ch + abs(X - Cx) + abs(Y - Cy)\n for Cx, Cy, Ch in list:\n h = max(H - abs(X - Cx) - abs(Y - Cy), 0)\n if Ch != h:\n b = False\n if b == True:\n print(X, Y, H)\n sys.exit(0)\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 = 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', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s007456013', 's650248872', 's706677860', 's840953783', 's492247625']
[3064.0, 2940.0, 3064.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0, 17.0]
[537, 117, 537, 117, 116]
p03238
u677705680
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\nn = n.replace("1","a").replace("9","1").replace("a","9")\n\nprint(int(n))\n', 'n = input()\n\nn = n.replace("1","a").replace("9","1").replace("a","9")\n\nprint(int(n))\n', '2\n3\n5', 'age = int(input())\n\nif age == 1:\n print("Hello World")\nelse:\n print(sum([int(input()) for x in range(age)]))\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s073955516', 's247976652', 's354907779', 's404906291']
[2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 18.0, 17.0, 20.0]
[85, 85, 5, 115]
p03238
u684204084
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\tprint(int(input())+int(input()))\n', 'n = int(input())\nif n == 1:\n\tprint("Hello World")\nelif n == 2:\n\tprint(int(input())+int(input()))\n']
['Wrong Answer', 'Accepted']
['s822724623', 's658415570']
[2940.0, 2940.0]
[17.0, 18.0]
[97, 97]
p03238
u686036872
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['N = int(input())\nA = int(input())\nB = int(input())\nif N ==1:\n print("Hello World")\nelse:\n print(A+B)', 'N = int(input())\nA = int(input())\nB = int(input())\nif N == 1:\n print("Hello World")\nelif N ==2:\n print(A+B)', 'N = int(input())\nif N == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s283681583', 's309522539', 's264657804']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[106, 113, 115]
p03238
u687044304
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['# -*- coding: utf-8 -*-\n\ndef main():\n N = input()\n\n if N == 1:\n print("Hello World")\n exit()\n else:\n print(int(input()) + int(input()))\n\nif __name__ == \'__main__\':\n main()\n', '# -*- coding: utf-8 -*-\n\ndef main():\n N = input()\n\n if N == "1":\n print("Hello World")\n exit()\n else:\n print(int(input()) + int(input()))\n\nif __name__ == \'__main__\':\n main()\n']
['Runtime Error', 'Accepted']
['s997836724', 's672049497']
[2940.0, 2940.0]
[17.0, 17.0]
[205, 207]
p03238
u687135117
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)", '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())\nA = int(input())\nB = int(input())\nif N==1:\n\tprint("Hello world")\nelse:\n\tprint(A+B)\n ', '\nn = int(input())\nif n==1:\n\tprint("Hello World")\nelse:\n\ta = int(input())\n\tb = int(input())\n\tprint(a+b)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s198810075', 's445459003', 's898855046', 's970455002', 's609824955']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 18.0]
[101, 101, 101, 102, 102]
p03238
u693105608
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['N = int(input())\nA = int(input())\nB = int(input())\n\nif N == 1:\n print("Hello World")\nelif N == 2:\n print(A+B)', 'N = 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 A = int(input())\n B = int(input())\n print(A+B)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s512656135', 's589225511', 's438465257']
[9100.0, 9116.0, 8988.0]
[32.0, 24.0, 27.0]
[115, 115, 123]
p03238
u693378622
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']
['s952839028', 's905608438']
[2940.0, 2940.0]
[17.0, 17.0]
[93, 96]
p03238
u695079172
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']
['s897377207', 's417645699']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 107]
p03238
u698501671
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 == 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)"]
['Runtime Error', 'Accepted']
['s306938297', 's588235090']
[2940.0, 2940.0]
[17.0, 17.0]
[122, 122]
p03238
u701318346
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 _ in range(N)]\nH_list= [XYH[i][2] for i in range(N)]\nH_max = max(H_list)\nH_min = min(H_list)\nH_diff = H_max - H_min\nans = []\n\n\nfor H in range(H_max - (200 - H_diff), H_max + (201 - H_diff)):\n for Cx in range(0, 101):\n for Cy in range(0, 101):\n count = 0\n for X, Y, h in XYH:\n if h == max(H - abs(X - Cx) - abs(Y - Cy), 0):\n count += 1\n else:\n break\n\n if count == N:\n ans = [str(Cx), str(Cy), str(H)]\n\nprint(' '.join(ans))\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"]
['Runtime Error', 'Accepted']
['s340112963', 's997945634']
[3064.0, 2940.0]
[18.0, 18.0]
[673, 110]
p03238
u703110933
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
["if int(input())%2:\n print('Hello World')\nelse:\n print(sum(map(int,input().split())))\nprint('Hello World')", "if input()=='1':\n print('Hello World')\nelse:\n print(int(input())+int(input()))\n"]
['Wrong Answer', 'Accepted']
['s747681505', 's344628610']
[2940.0, 2940.0]
[17.0, 17.0]
[111, 85]
p03238
u703890795
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['N, T = map(int, input().split())\nA = []\nfor i in range(N):\n c, t = map(int, input().split())\n if t <= T:\n A.append(c)\nif len(A)==0:\n print("TLE")\nelse:\n print(min(A))', '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']
['s031230048', 's218647625']
[3060.0, 2940.0]
[18.0, 18.0]
[173, 107]
p03238
u705427370
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())\n\nif N == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)']
['Runtime Error', 'Accepted']
['s072816654', 's233969882']
[2940.0, 2940.0]
[17.0, 17.0]
[108, 116]
p03238
u706414019
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(eval(input()+'+'+input()))", 'N,T = map(int,(list(input().split())))\ncost = []\nfor _ in range(N):\n c,t = map(int,(list(input().split())))\n if t<=T:\n cost.append(c)\nprint(min(cost))', "if input() == '1':\n print('Hello World')\nelse:\n print(eval(input()+'+'+input()))"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s506278553', 's651632726', 's078476689']
[8820.0, 9064.0, 8976.0]
[23.0, 31.0, 25.0]
[80, 163, 82]
p03238
u709799578
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
["N = int(input())\nif N == 1:\n print('Hellow World')\nelse:\n print(int(input())+int(input()))", "N = int(input())\nif N == 1:\n print('Hellow World')\nelse:\n print(int(input())+int(input()))", "N = int(input())\nif N == 1:\n print('Hellow World')\nelse:\n a = int(input())\n b = int(input())\n print(a + b)", "N = int(input())\nif N == 1:\n print('Hellow World')\nelse:\n print(input()+input())", "N = int(input())\nif N == 1:\n print('Hello World')\nelse:\n print(int(input())+int(input()))"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s054865213', 's089016647', 's310844560', 's553446393', 's764561463']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[96, 96, 118, 86, 95]
p03238
u710907926
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 = map(int, open(0).read().split())\nif n == 1:\n print("Hello World")\nelse:\n print(a+b)\n', 'n, a, b = map(int, open(0))\nif n == 1:\n print("Hello World")\nelse:\n print(a+b)\n', 'n, *t = map(int, open(0))\nif n == 1:\n print("Hello World")\nelse:\n print(sum(t))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s596392434', 's976065797', 's568735354']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[100, 85, 86]
p03238
u710952331
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['N = int(input())\nA = int(input())\nB = int(input())\n\nif N == 1:\n print("Hello World")\nelif N == 2:\n print(A+B)', 'N = int(input())\n\nif N == 1:\n print("Hello World")\nelif N ==2:\n A = int(input())\n B = int(input())\n print(A+B)']
['Runtime Error', 'Accepted']
['s873012990', 's745252548']
[3316.0, 2940.0]
[20.0, 17.0]
[111, 114]
p03238
u712868001
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()) for i in range(2)]\nc=b[0]+b[1]\nif a == 1:\n print('Hello World')\nelse:\n print(c)", 'a = int(input())\nif a == 1:\n print(Hello World)\nelse:\n list=[int(input()) for i in range(2)]\n print(list[0]+list[1])', 'a = int(input())\nif a == 1:\n print(Hello World)\nelse:\n list=[input() for i in range(2)]\n print(list[0]+list[1])', 'a = int(input())\nlist=[int(input()) for i in range(2)]\nif a == 1:\n print(Hello World)\nelse:\n print(list[0]+list[1])', "a = int(input())\nif a == 1:\n print('Hello World')\nelse:\n b=[int(input()) for i in range(2)]\n c=b[0]+b[1]\n\n\n print(c)"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s130385951', 's734526578', 's836830626', 's894430553', 's448993924']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0, 17.0]
[114, 119, 114, 117, 120]
p03238
u717626627
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
["n = int(input())\n\nif n == 1:\n print('Hello World')\nelse:\n a = int(input()\n b = int(input()\n print(a+b)", "n = int(input())\n\nif n == 1:\n print('Hello World')\nelse:\n a = int(input())\n b = int(input())\n print(a+b)"]
['Runtime Error', 'Accepted']
['s382799827', 's031971574']
[2940.0, 2940.0]
[17.0, 17.0]
[106, 108]
p03238
u721776301
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")\nelif N==2:\n N1 = input()\n N2 = input()\n print (N1+N2)\n', 'N = input()\n\nif N==1:\n\tprint ("Hello World")\nelif N==2:\n \tN1 = input()\n\tN2 = input()\n\tprint (N1+N2)\n', 'N = input()\nN1 = input()\nN2 = input()\n\nif N==1:\n print ("Hello World")\nelif N==1:\n print (N1+N2)', 'N = int(input())\n\nif N==1:\n print ("Hello World")\nelif N==2:\n N1 = int(input())\n N2 = int(input())\n print (N1+N2)']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s174424644', 's337894259', 's848160429', 's775616227']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[99, 100, 98, 113]
p03238
u722535636
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\tprint('Hello world')\nelse:\n\tprint(int(input())+int(input()))", "if input() == '1':\n\tprint('Hello world')\nelse:\n\tprint(int(input())+int(input())))", "if input() == '1':\n\tprint('Hello World')\nelse:\n\tprint(int(input())+int(input()))"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s281124766', 's890265623', 's579758722']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[80, 81, 80]
p03238
u723180465
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())\nxyhs = []\nfor _ in range(n):\n xyhs.append(tuple(map(int, input().split())))\n\nxyhs = sorted(xyhs, key=lambda v: v[2], reverse=True)\n\nanss = []\nfor y in range(101):\n for x in range(101):\n x0, y0, h0 = xyhs[0]\n ht = h0 + abs(x0 - x) + abs(y0 - y)\n\n flag = True\n for xyh in xyhs[1:]:\n xi, yi, hi = xyh\n his = max(ht - abs(xi - x) - abs(yi - y), 0)\n if his != hi:\n flag = False\n break\n\n if flag:\n anss.append((x, y, ht))\n\nprint(anss[0][0], anss[0][1], anss[0][2])', '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']
['s956633941', 's964310069']
[3064.0, 2940.0]
[17.0, 17.0]
[590, 117]
p03238
u723304131
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\nelif N == 2:\n print(A+B)\n', 'N = int(input())\n\nif N == 1:\n print("Hello World")\n\nelif N == 2:\n A = int(input())\n B = int(input())\n print(A+B)']
['Runtime Error', 'Accepted']
['s430953114', 's729029589']
[2940.0, 2940.0]
[17.0, 17.0]
[117, 124]
p03238
u724892495
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['print(int(input())+int(input())if input()==\'1\'else"Hello World")', 'if input()==\'1\':\n print("Hello world")\nelse:\n print(int(input())+int(input()))', 'print("Hello world"if input()==\'1\' else int(input())+int(input()))', 'print(int(input())+int(input())if int(input())-1 else"Hello world")', 'print(int(input())+int(input())if input()==\'2\' else "Hello World")']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s200004056', 's248143654', 's718963258', 's856446230', 's105407869']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[64, 84, 66, 67, 66]
p03238
u727412592
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\nN=int(N)\n\nx=list()\ny=list()\nh=list()\nfor i in range(N):\n temp=input().split(" ")\n x.append(int(temp[0]))\n y.append(int(temp[1]))\n h.append(int(temp[2]))\n \ndef pass_all_condition(x,y,h,x_i,y_i,h_i):\n result=True\n for k in range(len(x)):\n if h[k]!=max(h_i-abs(x_i-x[k])-abs(y_i-y[k]),0):\n result=False\n return(result)\n \ndef print_answer(x,y,h):\n for x_i in range(100):\n for y_i in range(100):\n for h_i in range(1,100):\n if pass_all_condition(x,y,h,x_i,y_i,h_i):\n print(x_i, y_i, h_i)\n return\n\nprint_answer(x,y,h)', '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']
['s275463485', 's998063142']
[3064.0, 2940.0]
[18.0, 17.0]
[641, 111]
p03238
u727787724
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['n=int(input())\nif n==2:\n a=int(input())\n b=int(input())\n print(a+b)\nelse:\n print(n)', "n=int(input())\nif n==2:\n a=int(input())\n b=int(input())\n print(a+b)\nelse:\n print('Hello World!')", "n=int(input())\nif n==2:\n a=int(input())\n b=int(input())\n print(a+b)\nelse:\n print('Hello World')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s175351461', 's583857822', 's591048953']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[95, 108, 107]
p03238
u729008627
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)"]
['Runtime Error', 'Accepted']
['s864122978', 's376415763']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 107]
p03238
u729535891
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())\nprint('Hello world' if n == 1 else a + b)", "n = int(input())\nif n == 2:\n a = int(input())\n b = 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)"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s756758619', 's966225495', 's454772973']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[92, 111, 117]
p03238
u733774002
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")\nelif(age == 2):\n A = int(input())\n B = int(input())\n ans = A + B\n print(ans)\n', 'age = int(input())\nif(age == 1):\n print("Hello, World")\nelse:\n A = int(input())\n B = int(input())\n ans = A + B\n print(ans)', 'age = int(input())\nif(age == 1):\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n ans = A + B\n print(ans)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s042175473', 's461357912', 's673929588']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 20.0]
[148, 137, 137]
p03238
u736729525
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['N = input()\nif N == \'1\':\n print("Hello World")\nelse:\n print(int(input()) + int(input())', 'N = input()\nif N == \'1\':\n print("Hello World")\nelse:\n print(int(input()) + int(input()))']
['Runtime Error', 'Accepted']
['s629384098', 's831422802']
[2940.0, 2940.0]
[17.0, 17.0]
[89, 90]
p03238
u738037409
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\nmc = float("inf")\nans = "TLE"\n\nfor i in range(N):\n c, t = map(int, input().split())\n if t <= T and c < mc:\n mc = c\n ans = str(c)\n\nprint(ans)', 'N, T = map(int, input().split())\n\nmc = float("inf")\nans = "TLE"\n\nfor i in range(N):\n c, t = map(int, input().split())\n if t <= T and c < mc:\n mc = c\n ans = str(c)\n\nprint(ans)', 'N = int(input())\n\nif N == 1: print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a + b)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s460875748', 's899065172', 's432078420']
[3060.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[194, 194, 114]
p03238
u740047492
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 print(a+b)', 'n=input()\nif n==1:\n print("Hello World")\nelif n==2:\n a=int(input())\n b=int(input())\n print(a+b)', 'n=int(input());print("Hello World" if n==1 else a=int(input() b=int(input() a+b)))', 'n=int(input())\na=int(input())\nb=int(input())\nprint("Hello World" if n==1 else a+b)', 'n=int(input())print("Hello World" if n==1 else a=int(input() b=int(input() print(a+b)))', 'n=int(input())\nif n==1:\n print("Hello World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s002395749', 's230571508', 's277583665', 's711133982', 's882865571', 's860099046']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[65, 99, 82, 82, 87, 99]
p03238
u740767776
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['X = int(input())\nif X == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input()\n print(A + B)', 'X = int(input())\nif X == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A + B)']
['Runtime Error', 'Accepted']
['s827746136', 's680875402']
[2940.0, 2940.0]
[17.0, 17.0]
[108, 109]
p03238
u747873993
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']
['s966639505', 's336723020']
[2940.0, 2940.0]
[17.0, 18.0]
[95, 107]
p03238
u748311048
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)"]
['Runtime Error', 'Accepted']
['s070025008', 's263354965']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 99]
p03238
u749770850
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("Hwllo World")\nelse:\n\ta = int(input())\n\tb = int(input())\n\tprint( a + b)', 'n = int(input())\na = int(input())\nb = int(input())\n\nif n == 1:\n\tprint("Hwllo World")\nelse:\n\tprint( a + b)', 'n = int(input())\n\nif n == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s702631356', 's829123178', 's853241509']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[107, 105, 108]
p03238
u750838232
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())\nprint("Hello World" if n == 2 else int(input())+int(input()))', 'n=int(input())\nprint("Hello World" if n != 2 else int(input())+int(input()))']
['Runtime Error', 'Accepted']
['s288767057', 's223216388']
[2940.0, 2940.0]
[17.0, 17.0]
[76, 76]
p03238
u751900801
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\nelse:\n a = int(input())\n b = 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', 'Accepted']
['s666074322', 's996813445']
[2940.0, 2940.0]
[17.0, 17.0]
[119, 119]
p03238
u752767312
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\n \nN,M = map(int,input().split())\n \nans = 1\nfor i in range(1,M+1):\n if M % i != 0:\n continue\n B = M / i\n \n if (i * N <= M):\n ans = max(ans,i)\n if (B * N <= M):\n ans = max(ans,B)\n\nprint(ans)', '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']
['s977847174', 's557906525']
[3060.0, 2940.0]
[17.0, 17.0]
[239, 115]
p03238
u754511616
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==2:\n print(int(input())+int(input()))\nelse:\n print(a)', "a=int(input())\nif a==2:\n print(int(input())+int(input()))\nelse:\n print('Hello World')"]
['Wrong Answer', 'Accepted']
['s955048615', 's256708229']
[9072.0, 9104.0]
[27.0, 27.0]
[75, 87]
p03238
u757117214
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\nl=[]\nfor i in sys.stdin:\n l.append(int(i))\nif len(l)==1:\n print(l[0])\nelse:\n print(l[1]+l[2])', 'import sys\nl=[]\nfor i in sys.stdin:\n l.append(int(i))\nprint("Hello World" if l[0]==1 else l[1]+l[2])']
['Wrong Answer', 'Accepted']
['s393476378', 's952390020']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 101]
p03238
u758475901
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['X = int(input())\nif X == 1:\n print("Hellow World")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)', 'X = int(input())\nif X == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)']
['Wrong Answer', 'Accepted']
['s957933575', 's080694824']
[2940.0, 2940.0]
[17.0, 17.0]
[108, 107]
p03238
u758884263
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 print(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)']
['Runtime Error', 'Accepted']
['s976727316', 's924935322']
[2940.0, 2940.0]
[17.0, 17.0]
[120, 122]
p03238
u762420987
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() == "2":\n A,B = int(input()),int(input())\n print(A+B)\nelse:\n print("Hello world")\n', 'if input() == "2":\n A = int(input())\n B = int(input())\n print(A+B)\nelse:\n print("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)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s178947258', 's195753624', 's153851780']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 18.0]
[101, 107, 118]
p03238
u762540523
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['print("Hello World"if input()=="1"else int(input())+int(input())', 'print("Hello World"if input()=="1"else int(input())+int(input()))']
['Runtime Error', 'Accepted']
['s010198451', 's087714102']
[2940.0, 2940.0]
[17.0, 17.0]
[64, 65]
p03238
u763968347
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['# coding : utf-8\n\nimport math\n\nN,M = map(int,input().split())\n\nb = M//N\n\nl = []\nfor i in range(1,int(math.sqrt(M)+1)):\n if M % i == 0:\n l.append(i)\n\nans = 1\nfor l_ in l:\n if l_ <= b:\n ans = max(ans,l_)\n\nprint(ans)', "# coding : utf-8\n\nN = 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']
['s411449396', 's016276603']
[3060.0, 2940.0]
[17.0, 17.0]
[233, 139]
p03238
u766407523
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()))']
['Wrong Answer', 'Accepted']
['s057638599', 's077814338']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 84]
p03238
u767777873
2,000
1,048,576
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
['import sys\nimport itertools\n\nN = int(sys.stdin.readline().strip())\n\nset_list = []\nfor line in sys.stdin.readlines():\n x, y, h = list(map(int, line.strip().split()))\n ans_set = set()\n for Cx, Cy in itertools.product(range(101), range(101)):\n dx = abs(x - Cx)\n dy = abs(y - Cy)\n d = dx + dy\n H = h + d\n # if H >= d:\n if H >= 1:\n ans_set.add((Cx, Cy, H))\n set_list.append(ans_set)\n\nans_set = set_list[0]\nif len(set_list) > 1:\n for s in set_list[1:]:\n ans_set = ans_set & s\n\nif len(ans_set) == 1:\n Cx, Cy, H = list(ans_set)[0]\n print(Cx, Cy, H)\n#else:\n# for s in set_list:\n# Cx, Cy, H = list(ans_set)[0]\n# if H >= 1:\n# print(Cx, Cy, H)\n', '#!/usr/bin/env python\n\n\nimport sys\n\nn = int(sys.stdin.readline().strip())\n\nif n == 1:\n print("Hello World")\nelif n == 2:\n i = int(sys.stdin.readline().strip())\n j = int(sys.stdin.readline().strip())\n print(i + j)\n\n\n']
['Runtime Error', 'Accepted']
['s983710123', 's707054786']
[3064.0, 2940.0]
[17.0, 17.0]
[741, 251]
p03238
u771406607
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 = map(int, input().split())\n\nif N == 1:\n print('Hello World')\nelif N == 2:\n print(int(A + B))", "N = int(input())\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', 'Accepted']
['s015886808', 's562692801']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 119]
p03238
u774985302
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")\nif A == 2:\n B = int(input())\n C = int(input())\n print(B + C)', 'A = input()\nif A = 1:\n print("Hello world")\nif A = 2:\n B = int(input())\n C = int(input())\n print(A+B)\n \n \n ', 'A = int(input())\nif A == 1:\n print("Hello World")\nif A == 2:\n B = int(input())\n C = int(input())\n print(B + C)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s403743432', 's878528152', 's343270695']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[114, 114, 114]
p03238
u777028980
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())\nhoge=[]\nfor i in range(n):\n x,y,z=map(int,input().split())\n if(z!=0):\n hoge.append([x,y,z])\n \n\nif(len(hoge)==1):\n print(*hoge[0])\n exit()\n\nfor i in range(101):\n for j in range(101):\n h=[]\n for k in range(len(hoge)):\n h.append(hoge[k][2]+abs(hoge[k][0]-i)+abs(hoge[k][1]-j))\n \n if(h.count(h[0])==len(h)):\n print(i,j,h[0])\n', '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")\nelse:\n print(A+B)', '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)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s423225164', 's724741163', 's725626278', 's845183154']
[3188.0, 2940.0, 2940.0, 2940.0]
[19.0, 18.0, 18.0, 18.0]
[369, 100, 96, 105]
p03238
u777207626
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()) for i in range(3)]\n\nif n[0] ==1:\n print('Hello World')\n\nelse:\n print(n[1]+n[2])", "n = int(input())\n\nif n ==1:\n print('Hello World')\n\nelse:\n ab = [int(input()) for i in range(2)]\n print(ab[0]+ab[1])"]
['Runtime Error', 'Accepted']
['s115002447', 's606933433']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 124]
p03238
u777394984
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 = input()\nif a == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)', 'if input() == "1":\n print("Hello World")\nelse:\n print(int(input()) + int(input()))\n']
['Runtime Error', 'Accepted']
['s603337355', 's372224952']
[2940.0, 2940.0]
[17.0, 17.0]
[102, 85]