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
|
u396824275
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['def cal(X,Y,H):\n\n for i in range(0,101): #C_x\n for j in range(0,101): #C_y\n temp=H[0]+abs(X[0]-i)+abs(Y[0]-j)\n for l in range(1,N):\n if(H[l]!=0):\n s=H[l]+abs(X[l]-i)+abs(Y[l]-j)\n if(temp==s):\n temp=s\n else:\n break\n else:\n if(temp-abs(X[l]-i)-abs(Y[l]-j)>0):\n break\n else: \n return print("{} {} {}".format(i,j,temp))\n\nN=int(input())\nX=[]\nY=[]\nH=[]\nfor i in range(N):\n x,y,h=list(map(int,input().split()))\n X.append(x)\n Y.append(y)\n H.append(h)\ncal(X,Y,H)', 'i=int(input())\n\nif(i==1):\n print("Hello World")\nelse:\n A=int(input())\n B=int(input())\n print(A+B)']
|
['Runtime Error', 'Accepted']
|
['s657279933', 's091233826']
|
[3064.0, 2940.0]
|
[18.0, 17.0]
|
[701, 109]
|
p03238
|
u398846051
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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']
|
['s889472970', 's132653112']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[107, 115]
|
p03238
|
u398983698
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['a=int(input())\nb=int(input())\nc=int(input())\nif a==1:\n print("Hello World")\nif a==2:\n print(int(b+c))', 'a=int(input())\nb=int(input())\nc=int(input())\nif a==1:\n print("Hello World")\nelse:\n print(int(b+c))\n ', 'a=int(input())\nif a==1:\n print("Hello World")\nelse:\n b=int(input())\n c=int(input())\n print(int(b+c))']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s380743236', 's419777922', 's398769665']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[103, 103, 104]
|
p03238
|
u403355272
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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', 'n = int(input())\nA = int(input())\nB = int(input())\nif n == 1:\n print("Hello World")\nelif n == 2:\n print(A + B)\n', 'n = int(input())\nA = int(input())\nB = int(input())\nif n == 1:\n print("Hello World")\nelse:\n print(A + B)\n', 'n = int(input())\n\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']
|
['s095666082', 's442851940', 's481951554', 's427005178']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 18.0, 17.0, 17.0]
|
[116, 117, 110, 124]
|
p03238
|
u403984573
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['N=input()\nA=int(input())\nB=int(input())\nif N=="1":\n print("Hello World")\nelse:\n print(A+B)', 'N=input()\nif N=="1":\n print("Hello World")\nelse:\n A=int(input())\n B=int(input())\n print(A+B)']
|
['Runtime Error', 'Accepted']
|
['s507598262', 's248903982']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[92, 96]
|
p03238
|
u404676457
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['n = int(input())\na = int(input())\nb = int(input())\nif n == 1:\n print("Hello World")\nelse:\n print(a + b)\n', 'n = int(input())\nif n == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a + b)\n']
|
['Runtime Error', 'Accepted']
|
['s158910161', 's414692335']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[110, 118]
|
p03238
|
u404678206
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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)\n\n']
|
['Runtime Error', 'Accepted']
|
['s378959597', 's697645020']
|
[2940.0, 3060.0]
|
[17.0, 17.0]
|
[98, 101]
|
p03238
|
u404794295
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['N=int(input())\nx=[]\ny=[]\nh=[]\nfor i in range(N):\n x_n,y_n,h_n=map(int,input().split())\n if h_n !=0:\n x.append(x_n)\n y.append(y_n)\n h.append(h_n)\n\ndef all_same(a):\n if all(a[i]==a[i+1] for i in range(0,len(a)-1)):\n return True\n else:\n return False\n\nfor C_x in range(101):\n for C_y in range(101):\n H=[]\n for i in range(len(x)):\n H.append(h[i]+abs(x[i]-C_x)+abs(y[i]-C_y))\n H.sort()\n H.remove(0)\n if all_same(H):\n print(C_x,C_y,H[0])\n', 'N=int(input())\nx=[]\ny=[]\nh=[]\nfor i in range(N):\n x_n,y_n,h_n=map(int,input().split())\n x.append(x_n)\n y.append(y_n)\n h.append(h_n)\nfor C_x in range(101):\n for C_y in range(101):\n H=h[0]+abs(x[0]-C_x)+abs(y[0]-C_y)\n if all(H==h[i]+abs(x[i]-C_x)+abs(y[i]-C_y) for i in range(N)):\n print(C_x,C_y,H)\n', 'N=int(input())\nx=[]\ny=[]\nh=[]\nfor i in range(N):\n x_n,y_n,h_n=map(int,input().split())\n if h_n >= 1:\n x.append(x_n)\n y.append(y_n)\n h.append(h_n)\n\ndef all_same(a):\n if all(a[i]==a[i+1] for i in range(0,len(a)-1)):\n return True\n else:\n return False\n\nfor C_x in range(101):\n for C_y in range(101):\n H=[]\n for i in range(len(x)):\n H.append(h[i]+abs(x[i]-C_x)+abs(y[i]-C_y))\n H.sort()\n if all_same(H):\n print(C_x,C_y,H[0])\n', 'N=int(input())\nx=[]\ny=[]\nh=[]\nfor i in range(N):\n x_n,y_n,h_n=map(int,input().split())\n x.append(x_n)\n y.append(y_n)\n h.append(h_n)\nfor C_x in range(101):\n for C_y in range(101):\n if all(h[i]+abs(x[i]-C_x)+abs(y[i]-C_y)==h[i+1]+abs(x[i+1]-C_x)+abs(y[i+1]-C_y) for i in range(N-1)):\n if h[1]+abs(x[1]-C_x)+abs(y[1]-C_y) >1 or h[1]+abs(x[1]-C_x)+abs(y[1]-C_y)==1:\n H=h[1]+abs(x[1]-C_x)+abs(y[1]-C_y)\n print(C_x,C_y,H)\n', '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', 'Runtime Error', 'Accepted']
|
['s152599998', 's335502921', 's896956660', 's947825046', 's153560467']
|
[3064.0, 3064.0, 3064.0, 3064.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0]
|
[538, 337, 519, 479, 111]
|
p03238
|
u405256066
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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']
|
['s966347707', 's561393471']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[95, 101]
|
p03238
|
u406721804
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['N = int(input(""))\n\nif n == 1:\n print(\'Hello World\')\nelif n == 2:\n A= int(input("A"))\n B = int(input("B"))\n print(A + B)', "N, T = map(int, input().split())\nif N < 1 or N > 100:\n exit()\nif T < 1 or T > 1000:\n exit()\n\njugde = False\njugde_N = 100\nmaplist = {}\nfor i in range(N):\n ci,ti = map(int, input().split())\n if ci < 1 or ci > 1000:\n exit()\n if ti < 1 or ti > 1000:\n exit()\n if maplist.get(ci) == None:\n maplist[ci] = ti\nfor jN,jT in maplist.items():\n if jT <= T:\n if jN <= jugde_N:\n jugde = True\n jugde_N = jN\nif jugde == False:\n print('TLE')\nelse:\n print(jugde_N)\n", 'n = int(input("input number"))\n\nif n == 1:\n print(\'Hello World\')\nelif n == 2:\n a = int(input("input number A"))\n b = int(input("input number B"))\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', 'Wrong Answer', 'Accepted']
|
['s281129453', 's669268577', 's903165227', 's550668173']
|
[2940.0, 3188.0, 2940.0, 2940.0]
|
[17.0, 18.0, 17.0, 17.0]
|
[132, 523, 169, 131]
|
p03238
|
u411544692
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 = input()\nif age == 1:\n print("Hello World")\nelse:\n print(input()+input())', 'age = int(input())\nif age == 1:\n print("Hello World")\nelse:\n print(int(input())+int(input()))']
|
['Runtime Error', 'Accepted']
|
['s088703267', 's419741949']
|
[2940.0, 2940.0]
|
[20.0, 17.0]
|
[80, 95]
|
p03238
|
u411858517
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['N = input()\nif N == 1:\n print("Hello World")\nelse:\n A, B = map(int, input().split())\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']
|
['s829612523', 's458178994']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[99, 106]
|
p03238
|
u412481017
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 str(a+b))\n', 'n=int(input())\nprint("Hello World" if n==1)\nprint(int(input())+int(input()))\n', 'n=int(input())\na=int(input())\nb=int(input())\nprint("Hello World" if n==1 else a+b)', 'n=int(input())\nif n==1:print("Hello World")\nelse:print(int(input())+int(input()))\n']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s082535240', 's881347501', 's939402140', 's277064159']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[88, 77, 82, 82]
|
p03238
|
u413165887
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 a = int(input())\n b = int(input())\n print(a+b)", "n = int(input())\nif n == 1:\n print('Hello World')\n\nelse:\n a = int(input())\n b = int(input())\n print(a+b)"]
|
['Wrong Answer', 'Accepted']
|
['s217899271', 's860116795']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[116, 116]
|
p03238
|
u416223629
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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()) for i in range(3)]\nN=a[0]\nA=a[1]\nB=a[2]\n\nif N==1:\n print('Hello World')\nelse:\n print(A+B)\n", "a = [int(input()) for i in range(3)]\nN=a[0]\nA=a[1]\nB=a[2]\n\nif N==1:\n print('Hello World')\nelse:\n print(A+B)\n", 'N = int(input())\nif N == 1:\n\tprint("Hello World")\nelse:\n\tA = int(input())\n\tB = int(input())\n\tprint(A + B)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s416583793', 's923768869', 's288230078']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[114, 114, 105]
|
p03238
|
u418527037
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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")\nelse:\n print(A + B)', 'N = int(input())\n\nif N == 1:\n print("Hello World")\nif N == 2:\n A = int(input())\n B = int(input())\n print(A + B)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s570455749', 's974732883', 's438788396']
|
[2940.0, 3316.0, 2940.0]
|
[17.0, 20.0, 18.0]
|
[115, 110, 123]
|
p03238
|
u422886513
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 = []\n\nfor i in range(N):\n xyh.append([int(i) for i in input().split()])\n\nfor x in range(101):\n for y in range(101):\n\n ##Reference Height##\n\n for i in range(len(xyh)):\n if(xyh[i][2] != 0):\n reference_index = i\n height = abs(x - xyh[reference_index][0]) + \\\n abs(y - xyh[reference_index][1]) + xyh[reference_index][2]\n ####################\n\n counter = 0\n\n for n in range(N):\n if(xyh[n][2]==0):\n if not (height <= abs(x - xyh[n][0]) +\n abs(y - xyh[n][1]) + xyh[n][2]):\n counter += 1\n\n else:\n if not (height == abs(x - xyh[n][0]) +\n abs(y - xyh[n][1]) + xyh[n][2]):\n counter += 1\n\n if(counter == 0):\n print("{} {} {}".format(x, y, height))\n', 'year = int(input())\n\nif(year==1):\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n\n print(int(a+b))']
|
['Runtime Error', 'Accepted']
|
['s406470819', 's921763273']
|
[3064.0, 2940.0]
|
[18.0, 18.0]
|
[896, 127]
|
p03238
|
u427984570
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['n = int(input)\nif n == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)\n ', 'n = int(input())\nif n == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)\n \n']
|
['Runtime Error', 'Accepted']
|
['s211551612', 's596894385']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[108, 111]
|
p03238
|
u430414424
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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\tprint("Hello World")\nelse:\n \ta = int(input())\n B = int(input())\n print(a+b)', 'if int(input())==1:\n print("Hello World")\nelse:\n \ta = int(input())\n b = int(input())\n print(a+b)', 'if int(input())==1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s353517916', 's458292500', 's546506520']
|
[3064.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[103, 106, 107]
|
p03238
|
u432805419
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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()) for i in range(3)]\nif a[0] == 2:\n print("Hello World")\nelse:\n print(a[1]+a[2])', 'a = [int(input()) for i in range(3)]\nif a[0] == 2:\n print("Hello World")\nelif print(a[1]+a[2])', 'a = [int(input()) for i in range(3)]\nif a[0] == 1:\n\tprint("Hello World")\nelse:\n\tprint(a[1] + a[2])', 'a = [int(input()) for i in range(3)]\nif a[0] == 2:\n\tprint("Hello World")\n\telse:\n\t\tprint(a[1]+a[2])', 'a = [int(input()) for i in range(3)]\nif a[0] == 2:\n\tprint("Hello World")\nelse:\n\tprint(a[1]+a[2])', 'a = [int(input()) for i in range(3)]\nif a[0] == 2:\n print("Hello World")\nelif:\n print(a[1]+a[2])', 'a = int(input())\nif a == 1:\n print("Hello Wor\\ld")\nelif:\n b = int(input())\n c = int(input())\n print(b + c)', 'a = [int(input()) for i in range(3)]\nif a[0] == 1:\n\tprint("Hello World")\nelse:\n\tprint(a[1]+a[2])', 'a = int(input())\nif a == 1:\n print("Hello World")\nelse:\n b,c = [int(input()) for i in range(2)]\n print(b + c)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s016456945', 's028953938', 's200482513', 's329323658', 's359927525', 's677804443', 's808788443', 's922594756', 's357428515']
|
[2940.0, 2940.0, 2940.0, 2940.0, 3056.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
|
[98, 95, 98, 98, 96, 98, 110, 96, 112]
|
p03238
|
u440129511
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
["n=int(input())\nif n==1:print('Hello World')\na=int(input())\nb=int(input())\nelse:print(a+b)", "n=int(input())\na=int(input())\nb=int(input())\nif n==1:print('Hello World')\nelse:print(a+b)", "n=int(input())\na=int(input())\nb=int(input())\nif n==1:print('Hello World')\nelif n==2:print(a+b)", "n=int(input())\nif n==1:print('Hello World')\nelse:\n a=int(input())\n b=int(input())\n print(a+b)"]
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s468505890', 's834810993', 's864741271', 's643818502']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[89, 89, 94, 96]
|
p03238
|
u440478998
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['i = [int(input()) for i in range(3)]\n\nif i[0]==1:\n print("Hello World")\nelse:\n print(i[1]+i[2])', 'n = int(input())\nif n==1:\n print("Hello World")\nelse:\n i = [int(input()) for i in range(2)]\n print(i[0]+i[1])']
|
['Runtime Error', 'Accepted']
|
['s033264099', 's500008042']
|
[9108.0, 9100.0]
|
[26.0, 28.0]
|
[97, 112]
|
p03238
|
u446711904
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
["a=list(map(int,open(0).read().split()));print(sum(a)-2 if a[0]==2 else 'Hello Workd')", "a=list(map(int,open(0).read().split()));print(sum(a)-2 if a[0]==2 else 'Hello World')"]
|
['Wrong Answer', 'Accepted']
|
['s905246538', 's125992611']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[85, 85]
|
p03238
|
u448655578
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['N = int(input())\nif N == 1:\n\tprint("Hello World")\nelse:\n\tA = int(input())\n B = int(input())\n print(A+B)', 'N = 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']
|
['s954262347', 's574537386']
|
[3060.0, 2940.0]
|
[18.0, 18.0]
|
[109, 108]
|
p03238
|
u448720391
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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())\na = input()\nb = input()\n\nif x == 1:\n print("Hello World")\nelse:\n print(int(a)+int(b))', 'n = int(input())\n\nif n == 1:\n print("Hello World")\nelse:\n print(int(input())+int(input()))']
|
['Runtime Error', 'Accepted']
|
['s823004004', 's537731910']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[108, 96]
|
p03238
|
u449555432
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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())\na,b=map(int,input().split())\nif x == 1:\n print('Hello World')\nelse:\n print(int(a+b))\n", "x=int(input())\nif x == 1:\n print('Hello World')\nelse:\n a=int(input())\n b=int(input())\n print(a+b)\n"]
|
['Runtime Error', 'Accepted']
|
['s548544704', 's151418680']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[102, 102]
|
p03238
|
u455317716
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['if input() == 1:\n print("Hello World")\nelse:\n print(int(input())+int(input()))', 'if input() == "1":\n print("Hello World")\nelse:\n print(int(input())+int(input()))']
|
['Runtime Error', 'Accepted']
|
['s827728442', 's831995541']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[80, 82]
|
p03238
|
u455642216
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
["N=int(input())\nA=int(input())\nB=int(input())\nif N==1:\n print('Hello World')\nif N==2:\n print(A+B)", "N=int(input())\nif N==1:\n print('Hello World')\nif N==2:\n A=int(input())\n B=int(input())\n print(A+B)"]
|
['Runtime Error', 'Accepted']
|
['s408015584', 's328558270']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[102, 110]
|
p03238
|
u456033454
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
["import sys\nn = int(input())\nif n == 1:\n\tprint('Hello World)\n\tsys.exit()\nprint(sum([int(input()) for _ in range(2)]))", "n = int(input())\nnum = [int(input()) for _ in range(2)]\nprint('Hello World' if n == 1 else sum(num))", "import sys\nn = int(input())\nif n == 1:\n\tprint('Hello World')\n\tsys.exit()\nprint(sum([int(input()) for _ in range(2)]))"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s406748423', 's699682466', 's978847385']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 18.0]
|
[116, 100, 117]
|
p03238
|
u457985479
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['# -*- coding: utf-8 -*-\n\nn = int(input())\na = int(input())\nb = int(input())\nif n == 1:\n print("Hello World")\nelse:\n print(a+b)', '# -*- coding: utf-8 -*-\n\nn = int(input())\nif n == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)']
|
['Runtime Error', 'Accepted']
|
['s911219827', 's525877809']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[132, 140]
|
p03238
|
u459150945
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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')\n exit()\nelse:\n A, B = map(int, input().split())\n print(A+B)\n", "import sys\nN = input()\nif N == 1:\n print('Hello World')\n sys.exit()\nelse:\n A, B = map(int, input().split())\n print(A+B)\n", "N = 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()))\n"]
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s035513011', 's385002925', 's438226312', 's919139355']
|
[3444.0, 2940.0, 2940.0, 2940.0]
|
[23.0, 18.0, 17.0, 17.0]
|
[117, 132, 93, 98]
|
p03238
|
u460245024
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 = int(input())\n b = int(input())\n print(a + b)', 'n = 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']
|
['s211522184', 's937410842']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[115, 116]
|
p03238
|
u460386402
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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']
|
['s910749862', 's562641850']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[97, 99]
|
p03238
|
u464409038
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
["N=int(input())\nif (N==1):\n print('Hello world')\n \nif (N==2):\n A=int(input())\n B=int(input())\n if((A>=1)&(A<=9)):\n if((B>=1)&(B<=9)):\n print(A+B)", "N=int(input())\nif (N==1):\n print('Hello word')\n \nif (N==2):\n A=int(input())\n B=int(input())\n print(A+B)\n", "\nN=int(input())\nif (N==1):\n print('Hello word')\n \nif (N==2):\n A=int(input())\n B=int(input())\n if((A>=1)&(A<=9)):\n if((B>=1)&(B<=9)):\n print(A+B)", "N=input()\nif (N=='1'):\n print('Hello word')\n \nif (N=='2'):\n A=input()\n B=input()\n print(A+B)", "N=int(input())\nif (N==1):\n print('Hello World')\n \nif (N==2):\n A=int(input())\n B=int(input())\n if((A>=1)&(A<=9)):\n if((B>=1)&(B<=9)):\n print(A+B)"]
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s147280125', 's229877071', 's579852923', 's713414933', 's583869390']
|
[3060.0, 2940.0, 3064.0, 2940.0, 3060.0]
|
[17.0, 17.0, 17.0, 17.0, 18.0]
|
[197, 139, 197, 135, 197]
|
p03238
|
u464912173
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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())\nprint('Hellow World' if a == 1 else b + c)", "a = int(input())\nb = int(input())\nc = int(input())\nprint('Hellow World' if a == 1 else b + c)", 'N = int(input())\nif N == 1:\n\tprint("Hello World")\nelse:\n\tA = int(input())\n\tB = int(input())\n\tprint(A+B)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s696380528', 's776174695', 's959900394']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[93, 93, 103]
|
p03238
|
u466371843
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 Workd")\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")\nelse:\n a = int(input())\n b = int(input())\n print(a + b)\n']
|
['Runtime Error', 'Accepted']
|
['s770594409', 's675789903']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[114, 119]
|
p03238
|
u466478199
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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())\nlist1=[]\nfor i in range(N):\n x1=list(map(int,input().split()))\n list1.append(x1)\nflag=0\nfor i in range(101):\n for j in range(101):\n list2=[]\n for k in range(N):\n Hx=list1[k][2]+abs(list1[k][0]-i)+abs(list1[k][1]-j)\n list2.append(Hx)\n if len(set(list2))==1:\n list3=[0]\n for l in range(N):\n d=Hx-abs(list1[l][0]-i)-abs(list1[l][1]-j)\n list3.append(d)\n if min(list3)>=0:\n print(i,j,Hx)\n flag=1\n else:\n pass\n else:\n pass\n if flag==1:\n break\n if flag==1:\n break', "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']
|
['s704040654', 's134015641']
|
[3064.0, 2940.0]
|
[19.0, 17.0]
|
[572, 99]
|
p03238
|
u467041847
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['N = int(input())\nA = int(input())\nB = int(input())\n\nif N==1:\n print("Hello World")\nelse:\n print(A+B)', 'N = int(input())\nA = int(input())\nB = int(input())\n\nif(N == 1):\n\tprint("Hello World")\nelse:\n\tprint(A+B)', 'N = int(input())\n\n\nif(N == 1):\n\tprint("Hello World")\nelse:\n\tA = int(input())\n\tB = int(input())\n\tprint(A+B)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s059843943', 's425178767', 's294491480']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[106, 103, 106]
|
p03238
|
u469953228
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
["n=input()\nif n==1:\n print('Hello World')\nelse:\n a=int(input())\n b=int(input())\n print(a+b)\n", "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']
|
['s810138614', 's404277810']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[95, 100]
|
p03238
|
u474423089
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 AB = [int(input()) for i in range(2)]\n print(sum(AB))", "N = int(input())\nif N==1:\n print('Hello World')\nelse:\n AB = [int(input()) for i in range(2)]\n print(sum(AB))"]
|
['Wrong Answer', 'Accepted']
|
['s945181555', 's059117629']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[117, 117]
|
p03238
|
u474925961
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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\nif sys.platform ==\'ios\':\n sys.stdin=open(\'input_file.txt\')\n \nn=int(input())\n\nif n=1:\n\tprint("Hello World")\nif n=2:\n\ta=int(input())\n\tb=int(input())\n\tprint(a+b)', 'import sys\n\nif sys.platform ==\'ios\':\n sys.stdin=open(\'input_file.txt\')\n \nn=int(input())\n\nif n==1:\n\tprint("Hello World")\nif n==2:\n\ta=int(input())\n\tb=int(input())\n\tprint(a+b)']
|
['Runtime Error', 'Accepted']
|
['s621726682', 's094845922']
|
[2940.0, 3064.0]
|
[18.0, 17.0]
|
[176, 178]
|
p03238
|
u475675023
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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()))', 'print("Hello World!" if input()==1 else int(input())+int(input()))', 'print("Hello World" if input()==\'1\' else int(input())+int(input()))']
|
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s098131248', 's393268364', 's620363374', 's980315259']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[68, 68, 66, 67]
|
p03238
|
u479737563
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 = input()\n B = input()\n print(A+B)', "age = int(input())\n\nif age == 1 :\n print('Hello World')\nelif age ==2:\n A=int(input())\n B=int(input())\n print(A+B)"]
|
['Runtime Error', 'Accepted']
|
['s869951942', 's679908992']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[110, 125]
|
p03238
|
u480200603
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 1 == int(input()):\n print("Hello world")\nelse:\n print(int(input()) + int(input()))\n', 'if 1 == int(input()):\n print("Hello World")\nelse:\n print(int(input()) + int(input()))\n']
|
['Wrong Answer', 'Accepted']
|
['s702380469', 's135190321']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[92, 92]
|
p03238
|
u481026841
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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']
|
['s195554002', 's447734926']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[109, 117]
|
p03238
|
u483737025
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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']
|
['s860642078', 's085353537']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[101, 109]
|
p03238
|
u484856305
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['n=int(input())\na=int(input())\nb=int(input())\nif n==1:\n print("Hello World")\nelse:\n print(a+b)\n', 'n=int(input())\nif n == 1:\n print("Hello World")\n \nelse:\n\ta=int(input())\n\tb=int(input())\n print(a+b)', 'n=int(input())\nif n==1:\n print("Hello World")\na=int(input())\nb=int(input())\nelse:\n print(a+b)', 'n=int(input())\na=int(input())\nb=int(input())\nif n==1:\n print("Hello World")\nelse:\n print(a+b)', "n=int(input())\nif n==1:\n print('Hello World')\nelse:\n print(int(input())+int(input()))"]
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s077042356', 's405469904', 's538505037', 's555455977', 's933467643']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0]
|
[96, 104, 95, 95, 89]
|
p03238
|
u485716382
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
["def main():\n N = map(int, input())\n if N == 1:\n print('Hello World')\n elif N == 2:\n A = map(int, input())\n B = map(int, input())\n print(A + B)\n\n\nmain()", "def main():\n N = int(input())\n if N == 1:\n print('Hello World')\n elif N == 2:\n A = int(input())\n B = int(input())\n print(A + B)\n\n\nmain()"]
|
['Wrong Answer', 'Accepted']
|
['s701291518', 's954668593']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[166, 151]
|
p03238
|
u487463461
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 {\n A = int(input())\n B = int(input())\n print(A+B)\n }\nelse:\n pass\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)\nelse:\n pass\n"]
|
['Runtime Error', 'Accepted']
|
['s204014416', 's870533765']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[137, 134]
|
p03238
|
u488127128
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['Hello World', "n = input()\nif n == '1':\n print('Hello World')\nelse:\n a = int(input())\n b = int(input())\n print(a+b)"]
|
['Runtime Error', 'Accepted']
|
['s047016918', 's746949189']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[11, 112]
|
p03238
|
u488497128
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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\na = int(sys.stdin.readline().strip())\nb = int(sys.stdin.readline().strip())\nc = int(sys.stdin.readline().strip())\n\nif a == 1:\n print("Hello World")\nelse:\n print(b + c)', 'import sys\na = int(sys.stdin.readline().strip())\nb = int(sys.stdin.readline().strip())\nc = int(sys.stdin.readline().strip())\n\nif a == 1:\n print("Hello World")\nelse:\n print(b + c)', 'import sys\n\na = int(sys.stdin.readline().strip())\nif a == 1:\n print("Hello World")\nelse:\n b = int(sys.stdin.readline().strip())\n c = int(sys.stdin.readline().strip())\n print(b + c)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s144444269', 's317388329', 's164317049']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[185, 180, 192]
|
p03238
|
u489124637
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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']
|
['s790723094', 's393249218']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[98, 100]
|
p03238
|
u489136758
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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("Enter 1 or 2: "))\nif N == 1:\n print("Hello World")\nelif N == 2:\n A=int(input("Enter an integer(1-9): "))\n B=int(input("Enter an integer(1-9): "))\n print(A+B)\n', 'N = int(input())\nif N == 1:\n print("Hello World")\nelif N == 2:\n A=int(input())\n B=int(input())\n print(A+B)\n']
|
['Wrong Answer', 'Accepted']
|
['s087272638', 's596448467']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[185, 119]
|
p03238
|
u494058663
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['n=int(input())\nif n==1:\n print("\'Hello World\'")\nelif n==2:\n A = int(input())\n B = int(input())\n print(A+B)\n ', 'n=int(input())\nif n==1:\n print("Hello World")\nelif n==2:\n A = int(input())\n B = int(input())\n print(A+B)']
|
['Wrong Answer', 'Accepted']
|
['s192307489', 's442869192']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[123, 116]
|
p03238
|
u497883442
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 = list(map(int, input().split()))\nmax = 10000\nfor i in range(N):\n c,t = list(map(int, input().split()))\n if t <= T and c < max:\n max = c\nif max == 10000:\n print("TLE")\nelse:\n print(max)', 'n = input()\nif n == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)', 'n = input()\nif n == "1":\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s124564792', 's152247192', 's907399579']
|
[3060.0, 3316.0, 3064.0]
|
[17.0, 20.0, 17.0]
|
[208, 110, 112]
|
p03238
|
u499966353
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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\nhints = []\nfor i in range(n):\n x, y, h = map(int, input().split())\n hints.append([x, y, h])\n\ndef height(center , point):\n if point[2] == 0:\n return 0\n else:\n return point[2] + abs(point[0] - center[0]) + abs(point[1] - center[1])\n\nfor i in range(101):\n for j in range(101):\n cent = [i, j]\n hmax = height(cent, hints[0])\n k = 1\n while ((k < n) and (hmax == height(cent, hints[k]) or height(cent, hints[k]) == 0 or hmax == 0)):\n if (hmax == 0 and height(cent, hints[k]) != 0):\n hmax = height(cent, hints[k])\n k += 1\n #print(cent)\n #print(k)\n #print (hmax)\n if k == n:\n break\n else:\n continue\n if k == n:\n break\n\nprint("{} {} {}".format(cent[0], cent[1], hmax))', '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)\n']
|
['Runtime Error', 'Accepted']
|
['s993345800', 's068181880']
|
[3064.0, 2940.0]
|
[18.0, 17.0]
|
[837, 119]
|
p03238
|
u500297289
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['""" AtCoder """\n\nimport sys\ninput = sys.stdin.readline\n\nN = input()\n\nif N == 1:\n print("Hello World")\nelif N == 2:\n a, b = map(int, input().split())\n print(a+b)\n', '""" AtCoder """\n\nimport sys\ninput = sys.stdin.readline\n\nN = int(input())\n\nif N == 1:\n print("Hello World")\nelif N == 2:\n A = int(input())\n B = int(input())\n print(A+B)\n']
|
['Wrong Answer', 'Accepted']
|
['s362498041', 's716932780']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[170, 180]
|
p03238
|
u503111914
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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())\nb = int(input())\nc = int(input())\nif N == 1:\n print("Hello World")\nelse:\n print(b+c)', 'N = int(input())\nb = int(input())\nc = int(input())\nif N == 1:\n print("Hello World")\nelif N == ":\n print(b+c)', 'N = int(input())\nif N % 2 == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s104841639', 's543861202', 's503049483']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[103, 110, 111]
|
p03238
|
u506587641
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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\nprint('Hello World' if n == 1)\n\nif n == 2:\n for _ in range():\n a, b = int(input())\n\n print(a+b)", "n = int(input)\n\nprint('Hello World' if n == 1)\n\nif n == 2:\n for _ in range(2):\n a = [int(input())]\n\n print(a[0]+a[1])", "n = int(input())\n\nprint('Hello World' if n == 1)\n\nif n == 2:\n for _ in range(2):\n a = [int(input())]\n\n print(sum(a))", "n = int(input())\n\nprint('Hello World' if n == 1)\n\nif n == 2:\n a = [int(input()) for _ in range(2)]\n\n print(sum(a))", "n = int(input())\n\nif n == 1:\n print('Hello World')\n\nif n == 2:\n a = [int(input()) for _ in range(2)]\n\n print(sum(a))"]
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s135825714', 's352453585', 's616886166', 's865892699', 's738946184']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0]
|
[124, 130, 129, 120, 125]
|
p03238
|
u512138205
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['n = int(input())\n\nif n == 1:\n print("Hello, World")\nelse:\n print(sum([int(input()), int(input())]))\n', 'n = int(input())\n\nif n == 1:\n print("Hello World")\nelse:\n print(sum([int(input()), int(input())]))\n']
|
['Wrong Answer', 'Accepted']
|
['s941272941', 's481074319']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[106, 105]
|
p03238
|
u512546018
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
["N = int(input())\n\nif N==1:\n print('Hello World!')\nelif N==2:\n A = int(input())\n B = int(input())\n print(A + B)", "N = int(input())\n\nif N==1:\n print('Hello World')\nelif N==2:\n A = int(input())\n B = int(input())\n print(A + B)"]
|
['Wrong Answer', 'Accepted']
|
['s534709911', 's816124011']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[122, 121]
|
p03238
|
u515364861
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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('Hallo World')\nelse:\n A = int(input())\n B = int(input())\n print(A + B)", "N=int(input())\nif N==1:\n print('Hallo World')\nelse:\n A=int(input())\n B=int(input())\n print(A+B)\n \n\n", "N= int(input())\nif N ==1:\n print('Hallo World')\nelse:\n A = int(input())\n B = int(input())\n print(A+B)\n \n\n", "N=int(input())\n\nif N==1:\n print('Hallo World')\nelse:\n A=int(input())\n B=int(input())\n print(A+B)\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)']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s355579191', 's772015421', 's870967266', 's932744217', 's243798613']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 17.0, 18.0, 20.0, 18.0]
|
[117, 114, 120, 115, 117]
|
p03238
|
u515802486
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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\np = []\n\nfor i in range(N):\n X1, Y1, H1 = map(int, input().split())\n if H1 != 0:\n p.append([X1, Y1, H1])\n\nif len(p) == 1:\n print(p[0][0], p[0][1], p[0][2])\n exit()\n\n\nfor i in range(101):\n for j in range(101):\n h = -1\n fg = True\n for t in p:\n if h == -1:\n h = t[2] + abs(i - t[0]) + abs(j - t[1])\n\n else:\n ht = t[2] + abs(i - t[0]) + abs(j - t[1])\n if h == ht:\n h = ht\n else:\n fg = False\n break\n\n if fg:\n print(i, j, h)\n exit()\n\n\n\n\n\n\n\n\n', "N = int(input())\nif N == 1:\n print('Hello World')\nelse:\n A = int(input())\n B = int(input())\n print(A+B)"]
|
['Runtime Error', 'Accepted']
|
['s636544025', 's610610382']
|
[3064.0, 2940.0]
|
[17.0, 17.0]
|
[663, 115]
|
p03238
|
u515952036
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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")\n\texit()\nelse:\n\tl = []\n\tfor i in range(n):\n\t\tl.append(int(input()))\n\n\tprint(l[0]+l[1])', 'n = int(input())\n\nif n == 1:\n\tprint("Hello world")\n\texit()\n\nl = []\nfor i in range(n):\n\tl.append(int(input()))\n\nprint(l[0]+l[1])', 'n = int(input())\n\nif n == 1:\n\tprint("Hello World")\n\texit()\nelse:\n\tl = []\n\tfor i in range(2):\n\t\tl.append(int(input()))\n\n\tprint(l[0]+l[1])']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s040959545', 's629507175', 's753478837']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[136, 127, 136]
|
p03238
|
u516242950
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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())\nkazu = [int(input()) for _ in range(1)]\nif a == 1:\n print("Hello World")\nelse:\n print(sum(kazu))\n', 'a = int(input())\nkazu = [int(input()) for _ in range(2)]\nif a == 1:\n print("Hello World")\nelse:\n print(sum(kazu))', 'a = int(input())\nif a == 1:\n print("Hello World")\nelse:\n b = int(input())\n c = int(input())\n print(b + c)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s172998786', 's429700761', 's060951055']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 19.0, 17.0]
|
[116, 115, 109]
|
p03238
|
u516554284
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
["n=int(input())\na=int(input())\nb=int(input())\nif n==1:\n print('Hello World')\nelse:\n print(a+b)", "n=int(input())\n\nif n==1:\n print('Hello World')\nelse:\n a=int(input())\n b=int(input())\n print(a+b)\n\n"]
|
['Runtime Error', 'Accepted']
|
['s104884367', 's614293924']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[95, 102]
|
p03238
|
u516579758
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
["o=int(input())\na=int(input())\nb=int(input())\nif o==1:\n print('Hello World')\nelse:\n print(a+b)", "o=int(input())\nif o==1:\n print('Hello World')\nelse:\n a=int(input())\n b=int(input())\n print(a+b)"]
|
['Runtime Error', 'Accepted']
|
['s200893404', 's290734609']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[99, 107]
|
p03238
|
u519078363
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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\n[N, M] = list(map(int, input().split()))\nnum = math.ceil(M / N)\nif N > 1:\n num = min(num, int(math.sqrt(M+1)))\nfor i in range(num+1)[::-1]:\n if M % i == 0:\n print(i)\n break', 'import math\n\n[N, M] = list(map(int, input().split()))\nnum = math.ceil(M / N)\nif N ==1:\n print(M)\nfor i in range(num+1)[::-1]:\n if M % i == 0:\n print(i)\n break', "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', 'Runtime Error', 'Accepted']
|
['s015843179', 's894992159', 's942527794']
|
[3060.0, 3060.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[205, 178, 122]
|
p03238
|
u519939795
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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']
|
['s818649685', 's612489716']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[99, 107]
|
p03238
|
u523781418
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 Wrold ")\nelif n==2:\n a=int(input())\n b=int(input())\n print(a+b)', 'n=int(input())\nif n==1:\n print("Hello Wrold")\nelif n==2:\n a=int(input())\n b=int(input())\n print(a+b)', 'n=int(input())\nif n==1:\n print("Hello Wrold ")\nelif n==2\n a=int(input())\n b=int(input())\n print(a+b)', 'n=int(input())\nif n==1:\n print("Hello Wrold ")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)', 'n=int(input())\nif n==1:\n print("Hello World")\nelif n==2:\n a=int(input())\n b=int(input())\n print(a+b)']
|
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
|
['s509904204', 's570874192', 's824813011', 's860713106', 's444125384']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0]
|
[113, 112, 112, 108, 112]
|
p03238
|
u524765246
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['L = []\nN = L.append(int(input))\nif len(N) == 1:\n print("Hello world")\n \nelse:\n print(N[2]+N[3])', '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']
|
['s443916571', 's753817082']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[98, 107]
|
p03238
|
u538956308
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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']
|
['s893113886', 's814096233']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[102, 106]
|
p03238
|
u541017633
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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\n\n', 'N = int(input())\nif N == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)\n \n\n\n']
|
['Runtime Error', 'Accepted']
|
['s594752511', 's262806198']
|
[2940.0, 2940.0]
|
[16.0, 17.0]
|
[129, 130]
|
p03238
|
u545368057
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['import numpy as np\nN = int(input())\ndata = np.zeros((N,3))\nfor i in range(N):\n data[i] = np.array(input().split())\n\nfor n in range(10201):\n C_x = n // 101\n C_y = n % 101\n correctflg = True\n unsetflg = True\n for i,(x,y,h) in enumerate(data):\n if unsetflg:\n if h >= 1:\n H = abs(x-C_x)+abs(y-C_y)+h\n unsetflg = False\n else:\n if h >= 1 and H != abs(x-C_x)+abs(y-C_y)+h:\n correctflg = False\n break \n if correctflg:\n print(C_x,C_y,int(H))\n break\n \n \n \n', 'N = int(input())\nif N == 1:\n print("Hello World")\nelse:\n A = int(input())\n B = int(input())\n print(A+B)']
|
['Runtime Error', 'Accepted']
|
['s333995310', 's407387156']
|
[15256.0, 2940.0]
|
[257.0, 17.0]
|
[602, 115]
|
p03238
|
u548939859
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['N = int(input())\nA = int(input())\nB = int(input())\nC = A + B\nif N == 1:\n print("Hello World")\nelse:\n print(C)', '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']
|
['s316419862', 's685614233']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[115, 115]
|
p03238
|
u553070631
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
["y=int(input())\na=int(input())\nb=int(input())\n\nif y==1:\n print('Hello World')\nelse:\n print(a+b)\n", "y=int(input())\n\nif y==1:\n print('Hello World')\nelse:\n a=int(input())\n b=int(input())\n print(int(a+b))"]
|
['Runtime Error', 'Accepted']
|
['s527118975', 's342292294']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[97, 105]
|
p03238
|
u554954744
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 input()=='2':\n A=int(input())\n B=int(input())\n print(A+B)", "if input()='1':\n print(Hello World)\nelse:\n A=int(input())\n B=int(input())\n print(A+B)", "if input()=='1':\n print(Hello World)\nelse input()=='2':\n A=int(input())\n B=int(input())\n print(A+B)", "if input()=='1':\n print('Hello World')\nelse input()=='2':\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', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s066364123', 's379594906', 's450050725', 's921926863', 's750063515']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 18.0, 17.0, 18.0]
|
[110, 97, 111, 113, 111]
|
p03238
|
u555589373
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 = in(input())\nif n ==1:\n print("Hello World")\nelse:\n a, b = map(int, input().split())\n print(a+b)', '\nn = int(input())\nif n ==1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)']
|
['Runtime Error', 'Accepted']
|
['s020035159', 's281300500']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[108, 115]
|
p03238
|
u556225812
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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())\nans = []\nfor i in range(N):\n c, t = map(int, input().split())\n if t <= T:\n ans.append(c)\nif not ans:\n print('TLE')\nelse:\n ans.sort()\n print(ans[0])", 'N, M = map(int, input().split())\nx = M//N\nmax = 1\nfor i in range(x+1, 1, -1):\n mod = M - (N-1)*i\n if mod%i == 0:\n max = i\n break\nprint(max)', "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']
|
['s473245191', 's794688171', 's515888039']
|
[3060.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[188, 159, 109]
|
p03238
|
u556371693
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['n=int(input())\na=int(input())\nb=int(input())\nif n==1:\n print("Hello World")\nelif n==2:\n ans=a+b\n print(ans)', "a=int(input())\nif a==1:\n print('Hello World')\n exit()\nb=int(input())\nc=int(input())\nprint(b+c)"]
|
['Runtime Error', 'Accepted']
|
['s968490754', 's479082089']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[116, 100]
|
p03238
|
u561828236
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 ("Hello World")\nelse:\n a = int(input())+int(input())\n print(a)', 'n = int(input())\nb = int(input())\nc = int(input())\nif n == 1:\n ("Hello World")\nelse:\n a = b + c\n print(a)', ' n= int(input())\n if n == 1:\n print("Hello World")\n else:\n a = int(input())+int(input())\n print(a)', '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', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s005019923', 's120468287', 's776655344', 's143928951']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 17.0, 17.0, 17.0]
|
[100, 114, 119, 116]
|
p03238
|
u566529875
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 = \nif n==1:\n print("Hello World")\nelse:\n a=int(input())\n b=int(input())\n print(a+b)\n', 'n = input()\nif n==1:\n print("Hello World")\nelse:\n a=input()\n b=input()\n print(a+b)\n', 'n = \nif n==1:\n print("Hello World")\nelse:\n int(input())\n 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', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s547832657', 's874716614', 's895363144', 's038560054']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[16.0, 17.0, 16.0, 17.0]
|
[98, 95, 94, 109]
|
p03238
|
u569322757
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 Worlds\')\nelse:\n print(int(input()) + int(input()))', "I=lambda:int(input());print(I()+I()if~-I()else'Hello World')"]
|
['Wrong Answer', 'Accepted']
|
['s720823002', 's171724537']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[96, 60]
|
p03238
|
u569898420
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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\narray = list(map(int, input().strip().split(\' \')))\n\n\nN = array[0]\n\nT = array[1]\n\n\n#print(N)\n#print(T)\n\nif N < 1:\n sys.exit()\n\nif N > 100:\n sys.exit()\n\n\nif T < 1:\n sys.exit()\n\nif T > 1000:\n sys.exit()\n\n\n\nc_min = 9999\n\n\nfor i in range(N):\n array1 = list(map(int, input().strip().split(\' \')))\n cN = array1[0]\n\n tN = array1[1]\n\n if cN < 1:\n sys.exit()\n\n if cN > 1000:\n sys.exit()\n\n if tN < 1:\n sys.exit()\n\n if tN > 1000:\n sys.exit()\n \n if tN <= T:\n if c_min > cN:\n\n c_min = cN\n\nif c_min == 0:\n print("TLE")\n\nelse:\n print(c_min)\n\n \n', '#\n\narray = list(map(int, input().strip().split(\' \')))\n\n\nN = array[0]\n\nT = array[1]\n\n\n#print(N)\n#print(T)\n\nif N < 1:\n quit()\n\nif N > 100:\n quit()\n\n\nif T < 1:\n quit()\n\nif T > 1000:\n quit()\n\n\n\n\nc_min = 9999\n\n\nfor i in range(N):\n array1 = list(map(int, input().strip().split(\' \')))\n cN = array1[0]\n\n tN = array1[1]\n\n if cN < 1:\n quit()\n\n if cN > 1000:\n quit()\n\n if tN < 1:\n quit()\n\n if tN > 1000:\n quit()\n\n if tN <= T:\n if c_min > cN:\n\n c_min = cN\n\nif c_min == 0:\n print("TLE")\n\nelse:\n print(c_min)\n\n ', 'n = int(input())\n\n\nif n == 1:\n print("Hello World")\n\nelif n == 2:\n\n a = int(input())\n b = int(input())\n\n c = a + b\n print(c)\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s001880391', 's031111338', 's325460553']
|
[3064.0, 3064.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[628, 592, 144]
|
p03238
|
u570018655
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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())\nresult ='Hello World' if n == 1 else a+b\nprint(result)\n", 'import sys\n\nN = int(input())\n\nif N == 1:\n print("Hello World")\n sys.exit()\nAB = [int(input()) for _ in range(2)]\nprint(sum(AB))']
|
['Runtime Error', 'Accepted']
|
['s454526011', 's687713798']
|
[2940.0, 2940.0]
|
[18.0, 18.0]
|
[106, 133]
|
p03238
|
u571291090
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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().rstrip())\na = int(input().rstrip())\nb = int(input().rstrip())\n\nif n == 1:\n print("Hello World")\nelse:\n print(a+b)\n', 'N = int(input())\npoints = [list(map(int, input().split())) for i in range(N)]\n\n\ndef main(N, points):\n points.sort(key=lambda x: x[2], reverse=True)\n for x in range(101):\n for y in range(101):\n \n H = -1\n for point in points:\n h = abs(point[0] - x) + abs(point[1] - y) + point[2]\n if point[2] > 0:\n if H == -1:\n H = h\n elif H != h:\n H = -1\n break\n else:\n if H > h:\n H = -1\n break\n if H > 0:\n print(x, y, h)\n return\n\n\nmain(N, points)\n\n', 'n = int(input().rstrip())\nif n == 1:\n print("Hello World")\nelse:\n a = int(input().rstrip())\n b = int(input().rstrip())\n print(a+b)\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s466546345', 's514393725', 's246186155']
|
[2940.0, 3064.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[136, 747, 143]
|
p03238
|
u571867512
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['#python D-Partition.py\n\nimport math\nline = list(map(int, input().split(" ")))\nN = int(line[0])\nM = int(line[1])\n\n\n\n\n\nfor i in range(sqrt(M)):\n\ttmp = M-(math.floor(M/N)-i)*(N-1)\n\tif tmp%(math.floor(M/N)-i)==0:\n\t\tprint((math.floor(M/N)-i))\n\t\tbreak\n', '#python Programming_Education.py\n\nn = int(input())\n\nif n==1:\n\tprint("Hello World")\nelse:\n\ta = int(input())\n\tb = int(input())\n\n\tprint(a+b)\n']
|
['Runtime Error', 'Accepted']
|
['s713204701', 's946627004']
|
[3064.0, 2940.0]
|
[18.0, 17.0]
|
[606, 138]
|
p03238
|
u571969099
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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 orint("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']
|
['s419396796', 's442628583']
|
[9136.0, 9144.0]
|
[29.0, 30.0]
|
[107, 108]
|
p03238
|
u573970531
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['import sys\ninput = sys.stdin.readline\n\nina = input()\nif ina == "1":\n print("Hello World")\nelse:\n inb = int(input())\n inc = int(input())\n print(inb + inc)', 'import sys\ninput = sys.stdin.readline\n\nina = input()\nif ina == "1":\n print("Hello World")\nelse:\n inb = int(input())\n inc = int(input())\n print(inb + inc)\n ', 'ina = input()\nif ina == "1":\n print("Hello World")\nelse:\n inb = int(input())\n inc = int(input())\n print(inb + inc)\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s048464710', 's840852964', 's002005157']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[157, 160, 119]
|
p03238
|
u576844664
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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(input() + input())\n', 'if(input() == "1"):\n print("Hello World")\nelse:\n print(int(input()) + int(input()))\n']
|
['Runtime Error', 'Accepted']
|
['s675503691', 's130429547']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[80, 86]
|
p03238
|
u577177664
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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" int(input()) + int(input()))\n', 'print("Hello World" if input() == "1" else int(input()) + int(input()))\n']
|
['Runtime Error', 'Accepted']
|
['s348811573', 's718196097']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[67, 72]
|
p03238
|
u578501242
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
["x=int(input())\ny=int(input())\nz=int(input())\nif x==1:\n\tprint('Hello World')\nelse:\n\tprint(y+z)", "x=int(input())\nif x==1:\n\tprint('Hello World')\nelse:\n\ty=int(input())\n\tz=int(input())\n\tprint(y+z)"]
|
['Runtime Error', 'Accepted']
|
['s914471560', 's035126846']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[93, 95]
|
p03238
|
u578953945
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['N=int(input)\nif N == 1:\n print("Hello World")\nelse:\n print(str(int(input()) + int(input()))', 'N=int(input())\nif N == 1:\n print("Hello World")\nelse:\n print(str(int(input()) + int(input())))']
|
['Runtime Error', 'Accepted']
|
['s743678900', 's843434879']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[93, 96]
|
p03238
|
u579754454
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
['N=int(input())\nif N==1:\n print("Hello world")\n \nelse:\n A=int(input())\n B=int(input())\n print(A+B)\n', 'N=int(input())\nif N==1:\n print("Hello World")\n \nelse:\n A=int(input())\n B=int(input())\n print(A+B)']
|
['Wrong Answer', 'Accepted']
|
['s125089689', 's860838955']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[113, 112]
|
p03238
|
u580236524
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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())\ns = [int(input()) for i in range(2)]\n \nif N==1:\n print('Hello World')\n\nelif N==2:\n print(s[0]+s[1])", "N = int(input())\nA,B = [int(input()) for i in range(2)]\n \nif N==1:\n print('Hello World')\n\nelif N==2:\n print(A+B)", "N = int(input())\n \nif N==1:\n print('Hello World')\n \nelif N==2:\n A,B = [int(input()) for i in range(2)]\n print(A+B)"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s441607668', 's902533393', 's289283404']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[119, 115, 118]
|
p03238
|
u580362735
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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())\ntmp_a = 1001\nresult = 1001\ncount = 1\nwhile count < N+1:\n a,b = map(int,input().split())\n if b < T and a < tmp_a:\n result = count\n tmp_a = a\n count = count + 1\nif result == 1001:\n print('TLE')\nelse:\n print(result)", "N , T = map(int,input().split())\ntmp_a = 1000\nresult = 1001\nwhile N > 0:\n a,b = map(int,input().split())\n if b < T & a < tmp_a:\n result = N\n tmp_a = a\n N = N -1\nif result == 1001:\n print('TLE')\nelse:\n print(result)", "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']
|
['s316159984', 's681200504', 's481559163']
|
[3060.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[248, 217, 104]
|
p03238
|
u580697892
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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)', '#coding: utf-8\nN = int(input())\nif N == 1:\n print("Hello World")\nelse:\n a = int(input())\n b = int(input())\n print(a+b)']
|
['Runtime Error', 'Accepted']
|
['s477439002', 's432370096']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[103, 130]
|
p03238
|
u581403769
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then prints `Hello World` if N=1, and additionally receives integers A, B and prints A+B if N=2. Write this program for him.
|
["n = int(input())\na, b = map(int, input().split())\nif n == 1:\n print('Hello World')\nelse:\n print(a + b)", "n = int(input())\na = int(input())\nb = int(input())\nif n == 1:\n print('Hello World')\nelse:\n print(a + b)\n", "n = int(input())\nif n == 1:\n print('Hello World')\nelse:\n a = int(input())\n b = int(input())\n print(a + b)\n"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s468112632', 's620620370', 's979579307']
|
[9156.0, 8988.0, 9028.0]
|
[19.0, 24.0, 27.0]
|
[108, 110, 118]
|
p03238
|
u581603131
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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!=0:\n\tprint('Hello Wordl')\nelif:\n\tprint(int(input())+int(input()))", "if int(input())==1:\n\tprint('Hello Wordl')\nelif int(input())==2:\n\tprint(int(input())+int(input()))", "if int(input())==1:\n\tprint('Hello Wordl')\nelif int(input())==2:\n A = int(input())\n B = int(input())\n print(A+B)", "if int(input())==1:\n\tprint('Hello Wordl')\nelif int(input())==2:\n\tprint(int(input())+int(input()))", "n = int(input())\nif n%2!=0:\n\tprint('Hello Wordl')\nelse:\n\tprint(int(input())+int(input()))", "n = int(input())\nif n%2!=0:\n\tprint('Hello Wordl')\nelif n==2:\n\tprint(int(input())+int(input()))", "if int(input())==1:\n\tprint('Hello Wordl')\nelif int(input())==2:\n print(int(input())+int(input()))", "n = int(input())\nif n==1:\n\tprint('Hello Wordl')\nelif n==2:\n\tprint(int(input())+int(input()))", "number = int(input())\nA = int(input())\nB = int(input())\nif number ==1:\n print('Hello Wordl')\nif number ==2:\n print(A+B)", "if int(input())==1:\n\tprint('Hello World')\nelse:\n\tprint(int(input())+int(input()))"]
|
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s004132876', 's008509652', 's162536054', 's164002396', 's449759221', 's657086688', 's796606243', 's886315882', 's960493668', 's649942763']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0]
|
[89, 97, 120, 97, 89, 94, 100, 92, 125, 81]
|
p03238
|
u582333355
| 2,000
| 1,048,576
|
In 2020, AtCoder Inc. with an annual sales of more than one billion yen (the currency of Japan) has started a business in programming education. One day, there was an exam where a one-year-old child must write a program that prints `Hello World`, and a two-year-old child must write a program that receives integers A, B and prints A+B. Takahashi, who is taking this exam, suddenly forgets his age. He decides to write a program that first receives his age N (1 or 2) as input, then 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()))\n \nd = int(M/N)\n \nif M%N == 0:\n\tprint(d)\nelse: \n ans = 1\n for i in range(m//n+1, 0, -1):\n if m % i == 0:\n if (m // i) >= n:\n print(i)\n break\n\t\n\t# while True:\n\t# \tif M%(N+i+1) == 0:\n\t# \t\tprint(int(M/(N+i+1)))\n\t# \t\tbreak\n\t# \ti += 1', "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']
|
['s479147340', 's170004488']
|
[3060.0, 2940.0]
|
[18.0, 17.0]
|
[327, 106]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.