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
p03327
u385309449
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['a,b = map(int,input().split())\ncnt = 0\nfor i in range(b-a):\n cnt += i\nprint(cnt-a)', "x = int(input())\nif x < 1000:\n print('ABC')\nelse:\n print('ABD')"]
['Runtime Error', 'Accepted']
['s563976821', 's799635515']
[2940.0, 2940.0]
[17.0, 17.0]
[83, 65]
p03327
u386819480
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n = str(input())\nprint('ABC'+n) if int(n) < 1000 else print('ABD'+str(int(n)+1)[1:])", "n = str(input())\nprint('ABC') if int(n) < 1000 else print('ABD')"]
['Wrong Answer', 'Accepted']
['s718653291', 's827314196']
[2940.0, 2940.0]
[17.0, 17.0]
[84, 64]
p03327
u390707580
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['A,B=map(int,input().split())\nC = (B - A )*( B - A + 1 )/ 2 - B \nprint(C)', 'N = int(input())\nif N <= 999:\n print("ABC")\nelse:\n print("ABD")\n']
['Runtime Error', 'Accepted']
['s871632763', 's926336123']
[2940.0, 2940.0]
[17.0, 17.0]
[72, 70]
p03327
u390958150
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n = int(input())\nif n < 1000:\n print('ABC'+str(n).zfill(3))\nelse:\n print('ABD'+str(n-999).zfill(3))", "n = int(input())\nif n < 1000:\n print('ABC')\nelse:\n print('ABD')"]
['Wrong Answer', 'Accepted']
['s401030563', 's596293156']
[2940.0, 2940.0]
[17.0, 18.0]
[105, 69]
p03327
u393253137
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['n=int(input())\nprint("ABC" if n<999 else "ABD")', 'n=int(input())\nprint("ABC" if n<1000 else "ABD")']
['Wrong Answer', 'Accepted']
['s922061300', 's818302450']
[2940.0, 2940.0]
[18.0, 18.0]
[47, 48]
p03327
u394482932
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['print(["ABD","ABC"][int(input())>999])', 'print("AB"+"CD"[int(input())>999])']
['Wrong Answer', 'Accepted']
['s097222901', 's650455453']
[2940.0, 2940.0]
[17.0, 17.0]
[38, 34]
p03327
u396961814
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n = int(input())\n\nif n < 1000:\n print('abc')\nelse:\n print('abd')", "n = int(input())\n\nif n < 1000:\n print('ABC')\nelse:\n print('ABD')"]
['Wrong Answer', 'Accepted']
['s465994327', 's671288976']
[2940.0, 3064.0]
[17.0, 18.0]
[70, 70]
p03327
u399287684
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['\na=input()\na=int(a)\nb=input()\nb=int(b)\n\n\nsum=0\nfor x in range(b-a+1):\n sum+=x\n \nhigh=sum-b\n\nprint(high)', 'n=input()\nn=int(n)\nif n>999:\n print("ABD")\nelse:\n print("ABC")']
['Runtime Error', 'Accepted']
['s774564432', 's546965162']
[3060.0, 2940.0]
[17.0, 17.0]
[109, 68]
p03327
u403301154
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['n=int(input())\nans=n\nfor i in range(n):\n cc=0\n t=i\n while t>0:\n cc=cc+t%6\n t=t//6\n t=n-i\n while t>0:\n cc=cc+t%9\n t=t//9\n if ans>cc:\n ans=cc\nprint(ans)', 'n=int(input())\nif n<1000:\n print("ABC")\nelse:\n print("ABD")']
['Wrong Answer', 'Accepted']
['s539813844', 's871420537']
[3060.0, 2940.0]
[20.0, 17.0]
[171, 61]
p03327
u412481017
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['print("ABD" int(input())>999 else "ABC")', 'print("ABD" if int(input())>999 else "ABC")']
['Runtime Error', 'Accepted']
['s326748744', 's044694478']
[2940.0, 2940.0]
[18.0, 17.0]
[40, 43]
p03327
u430223993
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n = int(input())\nif n < 999:\n print('ABC')\nelse:\n print('ABD')", "n = int(input())\nif n <= 999:\n print('ABC')\nelse:\n print('ABD')"]
['Wrong Answer', 'Accepted']
['s213878212', 's171366987']
[2940.0, 2940.0]
[18.0, 17.0]
[68, 69]
p03327
u432453907
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['a, b = map(int, input().split())\n\nx = b - a\ns = 0\nfor i in range(1,x,1):\n s += i\n\nans = s - a\nprint(ans)', 'N=int(input())\nif N<1000:\n ans="ABC"\nelse:\n ans="ABD"\nprint(ans)']
['Runtime Error', 'Accepted']
['s514367885', 's184995861']
[9120.0, 9032.0]
[22.0, 26.0]
[105, 70]
p03327
u434208140
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['n=int(input())\nprint("ABC"+str(n) if n<1000 else "ABD"+str(n-999))', 'print("ABD" if int(input())>999 else "ABC")']
['Wrong Answer', 'Accepted']
['s979416404', 's334797993']
[2940.0, 2940.0]
[18.0, 17.0]
[66, 43]
p03327
u434630332
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['n = int(input())\n\nif n >= 1000:\n print("ABD" + str(n - 999).zfill(3))\nelse:\n print("ABC" + str(n))', 'n = int(input())\n\nif n >= 1000:\n print("ABD" + str(n - 999).zfill(3))\nif n <= 999:\n print("ABC" + str(n))', 'n = int(input())\n\nif n >= 1000:\n print("ABD")\n # print("ABD" + str(n - 999).zfill(3))\nif n <= 999:\n print("ABC")\n # print("ABC" + str(n))']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s390728179', 's454799455', 's323053674']
[9072.0, 9048.0, 9088.0]
[27.0, 28.0, 28.0]
[104, 111, 149]
p03327
u437638594
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = int(input())\nif N <= 999:\n print(ABC)\nelse:\n print(ABD)', 'N = int(input())\n\nif N <= 999:\n print("ABC")\nelse:\n print("ABD")']
['Runtime Error', 'Accepted']
['s880279527', 's039399953']
[2940.0, 2940.0]
[17.0, 17.0]
[61, 66]
p03327
u439312138
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = int(input())\n\nif N >= 1000:\n print("ABD"+str(N-1000))\nelse:\n print("ABC"+str(N))', 'N = int(input())\n \nif N >= 1000:\n print("ABD"+str(N-1000).zfill(3))\nelse:\n print("ABC"+str(N).zfill(3))', 'N = int(input())\n\nif N >= 1000:\n print("ABD"+str((N-1000).zfill(3)))\nelse:\n print("ABC"+str((N).zfill(3)))', 'N = int(input())\n \nif N >= 1000:\n print("ABD")\nelse:\n print("ABC")']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s608167937', 's819299753', 's997731506', 's747780745']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[86, 105, 108, 68]
p03327
u439333295
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["def main():\n n = int(input())\n dp = [float('inf')]*(n+1)\n dp[0] = 0\n\n ls = [1, 6, 9]\n ks = [1]\n\n for l in ls[1:]:\n i = 1\n while True:\n if l ** i <= n:\n ks.append(l**i)\n else:\n break\n i += 1\n\n for k in ks:\n for i in range(len(dp)):\n if i+k >= len(dp):\n break\n if dp[i]+1 < dp[i+k]:\n dp[i+k] = dp[i]+1\n print(dp[n])\n\nmain()\n", "n = int(input())\n\nif n >= 1000:\n print('ABD')\nelse:\n print('ABC')"]
['Wrong Answer', 'Accepted']
['s495176387', 's099812254']
[3064.0, 2940.0]
[21.0, 17.0]
[482, 71]
p03327
u439392790
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["N=int(input())\nif N<1000:\n print('ABC'+str(N))\nelse:\n print('ABD'+str(((N%1000)+1)))\n", "N=int(input())\nif N<1000:\n print('ABC')\nelse:\n print('ABD')\n"]
['Wrong Answer', 'Accepted']
['s396332684', 's027952528']
[2940.0, 2940.0]
[17.0, 17.0]
[91, 66]
p03327
u440129511
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n=int(input())\nk=n-999\nif n<=999:print('ABC'+str(n.fill(3)))\nelse:print('ABD'+ str(k.zfill(3)))\n", "n=int(input())\nk=n-999\nif n<=999:print('ABC'+str(n).fill(3))\nelse:print('ABD'+ str(k).zfill(3))", "n=int(input())\nif n<=999:print('ABC')\nelse:print('ABD')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s052920658', 's986205124', 's742021122']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[96, 95, 55]
p03327
u441320782
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['a,b = map(int,input().split())\nt = b - a\nn = [1]\nx = 1\n\nfor i in range(2,999):\n x = i + x\n n.append(x)\n\nelse:\n for j in range(0,len(n)):\n if n[j+1] - n[j] == t:\n break\nprint(n[j] - a)\n ', 'x = int(input())\n\nif x < 1000:\n print("ABC")\nelse:\n print("ABD")']
['Runtime Error', 'Accepted']
['s857686456', 's087825922']
[3188.0, 2940.0]
[19.0, 17.0]
[199, 66]
p03327
u443170850
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = int(input())\n\nif N < 1000:\n print("ABC" + \'{0:03d}\'.format(N))\nelse:\n print("ABD" + \'{0:03d}\'.format(N - 1000 + 1))', 'N = int(input())\n\nif N < 1000:\n print("ABC")\nelse:\n print("ABD")']
['Wrong Answer', 'Accepted']
['s015254234', 's101400978']
[2940.0, 2940.0]
[17.0, 17.0]
[125, 70]
p03327
u444856278
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['n = int(input())\nif n <= 999:\n print("ABC{0:03d}".format(n))\nelse:\n print("ABD{0:03d}".format(n-999))', 'n = int(input())\nif n <= 999:\n print("ABC")\nelse:\n print("ABD")']
['Wrong Answer', 'Accepted']
['s888051131', 's872507261']
[2940.0, 2940.0]
[19.0, 17.0]
[107, 69]
p03327
u445628522
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N=int(intput())\nif N<1000:\n print("ABC")\nelse :\n print("ABD")', 'N=int(input())\nif N<1000:\n print("ABC")\nelse :\n print("ABD")']
['Runtime Error', 'Accepted']
['s093905533', 's984509005']
[2940.0, 2940.0]
[17.0, 18.0]
[67, 66]
p03327
u446711904
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['print("ABC" if int(input())<999 else "ABD")', 'print("ABC" if int(input())<1000 else "ABD")']
['Wrong Answer', 'Accepted']
['s604588172', 's983180535']
[2940.0, 2940.0]
[17.0, 17.0]
[43, 44]
p03327
u449555432
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['a=int(input())\nif a<1000:\n print(a)\nelse:\n print(a-999)', "a=int(input())\nif a<1000:\n print('ABC')\nelse:\n print('ABD')"]
['Wrong Answer', 'Accepted']
['s188325788', 's395414717']
[2940.0, 2940.0]
[17.0, 18.0]
[57, 61]
p03327
u453526259
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['n = int(input())\n\nif N <=999:\n print("ABC")\nelse:\n print("ABD")', 'n = int(input())\n\nif n <=999:\n print("ABC")\nelse:\n print("ABD")']
['Runtime Error', 'Accepted']
['s208018784', 's256966595']
[2940.0, 2940.0]
[17.0, 17.0]
[69, 69]
p03327
u453815934
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['int n = input()\nprint("ABC" if n < 1000 else "ABD")', 'n = int(input())\nprint("ABC" if n<1000 else "ABD")']
['Runtime Error', 'Accepted']
['s444453457', 's058463258']
[2940.0, 3316.0]
[17.0, 20.0]
[51, 50]
p03327
u459150945
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["N = int(input())\nif N > 999:\n number = N-999\n print('ABD'+str(number).zfill(3))\nelse:\n print('ABC'+str(N).zfill(3))\n", "N = int(input())\nif N > 999:\n print('ABD')\nelse:\n print('ABC')\n"]
['Wrong Answer', 'Accepted']
['s077250917', 's732873022']
[2940.0, 2940.0]
[17.0, 18.0]
[125, 69]
p03327
u460386402
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['n=int(input())\nif n<=999:\n if len(str(n))==1:\n print("ABC00"+str(n))\n elif len(str(n))==2:\n print("ABC0"+str(n))\n else:\n print("ABC"+str(n))\nelse:\n a=str(n%1000+1)\n if len(a)==1:\n print("ABD00"+a)\n elif len(a)==2:\n print("ABD0"+a)\n else:\n print("ABD"+a)', 'n=int(input())\nif n<=999:\n print("ABC"+str(n))\nelse:\n a=str(n%1000+1)\n if len(a)==1:\n print("ABD00"+a)\n elif len(a)==2:\n print("ABD0"+a)\n else:\n print("ABD"+a)', 'n=int(input())\nif n<=999:\n print("ABC")\nelse:\n print("ABD")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s488652807', 's874628035', 's573903311']
[9192.0, 9140.0, 9024.0]
[28.0, 24.0, 29.0]
[278, 173, 65]
p03327
u467736898
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = int(input())\nif N <= 999:\n print("ABC{0:03d}".format(N))\nelse:\n print("ABD{0:03d}".format(N-999))', 'N = int(input())\nif N <= 999:\n print("ABC")\nelse:\n print("ABD")']
['Wrong Answer', 'Accepted']
['s775420079', 's268482431']
[2940.0, 2940.0]
[17.0, 18.0]
[107, 69]
p03327
u467881696
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['a = input()\nb = input()\nX = b - a \ns = (X*(X+1))/2 - b\nprint(s)', 'a = int(input())\nb = int(input())\nX = b - a \ns = (X*(X + 1))/2 - b', 'a = int(input())\nb = int(input())\nX = b - a \ns = (X*(X+1))/2 - b\nprint(s)', 'a = input()\nb = input()\nX = b - a \ns = int((X*(X+1))/2 - b)\nprint(s)', "N = input()\nif N > 999:\n print('ABD')\nelif N <= 999:\n print('ABC')", 'a = int(input())\nb = int(input())\nX = b - a \ns = int((X*(X+1))/2 - b)\nprint(s)', "# coding: utf-8\n\nN = int(input())\nif N > 999:\n print('ABC')\nelif N <= 999:\n print('ABD')\n", 'a = int(input())\nb = int(input())\nX = b - a \ns = (X*(X + 1))/2 - b\nprint(s)', "N = int(input())\nif N > 999:\n print('ABD')\nelif N <= 999:\n print('ABC')\n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s043004892', 's072210597', 's209981039', 's518101383', 's587793700', 's687447990', 's743892897', 's803193684', 's316752794']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0]
[63, 66, 73, 68, 72, 78, 95, 75, 78]
p03327
u470286613
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["N=int(input())\nprint('ABC' if N<1000 else 'A", "N=int(input())\nprint('ABC' if N<1000 else 'ABD')"]
['Runtime Error', 'Accepted']
['s248580448', 's777106144']
[2940.0, 3060.0]
[17.0, 21.0]
[44, 48]
p03327
u470678640
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["N = int(input())\n\nif N >= 1:\n print('ABC')\nelif N <= 999:\n print('ABC')\nif N >= 1000:\n print('ABD')\nelif N <= 1998:\n print('ABD')", "N = int(input())\n\nif N <= 999:\n print('ABC')\n\nelif N <= 1998:\n print('ABD')"]
['Wrong Answer', 'Accepted']
['s486584958', 's399599914']
[8968.0, 9092.0]
[25.0, 28.0]
[141, 81]
p03327
u474423089
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["N=int(input())\nif N < 1000:\n print('ABC'+N)\nelse:\n print('ABD'+format(N-999,'03d'))", "N=int(input())\nif N < 1000:\n print('ABC')\nelse:\n print('ABD')"]
['Runtime Error', 'Accepted']
['s827992579', 's152758422']
[2940.0, 2940.0]
[17.0, 17.0]
[89, 67]
p03327
u475675023
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['print("AB"+["D","C"][n<1000])', 'n=int(input())\nprint("AB"+("C" if n<1000 else "D")+str(n%1000))', 'n=int(input())\nprint("AB"+("C" if n<1000 else "D")+str(n%1000).zfill(3))', 'print("AB"+["D","C"][int(input())<1000])']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s095068049', 's628926687', 's911104331', 's108915377']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 18.0]
[29, 63, 72, 40]
p03327
u481026841
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n = int(input())\nif n <= 9:\n print('ABC00' + str(n))\nelif n <= 99:\n print('ABC0' + str(n))\nelif n <= 999:\n print('ABC' + str(n))\nelif n <= 1008:\n print('ABD00' + str(n - 999))\nelif n <= 1098:\n print('ABD0' + str(n - 999))\nelse:\n print('ABD' + str(n - 999))", "n = int(input())\nif n <= 999:\n print('ABC')\nelse:\n print('ABD')"]
['Wrong Answer', 'Accepted']
['s498759010', 's083065383']
[3060.0, 2940.0]
[18.0, 17.0]
[274, 69]
p03327
u482157295
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['a = int(input())\nif a >= 1000:\n print(a-999)\nelse:\n print(a)', 'n = int(input())\nif n >= 1000:\n print("ABD")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s645022054', 's616021410']
[2940.0, 2940.0]
[17.0, 18.0]
[62, 66]
p03327
u482969053
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["N = int(input())\nif N < 1000:\n print('ABC' + '{0:03d}'.format(N))\nelse:\n print('ABD' + '{0:03d}'.format(N%999))", "N = int(input())\nif N < 1000:\n print('ABC')\nelse:\n print('ABD')"]
['Wrong Answer', 'Accepted']
['s901532636', 's654586008']
[2940.0, 2940.0]
[18.0, 18.0]
[117, 69]
p03327
u484856305
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['a=input()\nif a < 1000:\n print("ABC")\nelse:\n print("ABD")\n', 'a=int(input())\nif a < 1000:\n print("ABC")\nelse:\n print("ABD")\n']
['Runtime Error', 'Accepted']
['s965596994', 's291307627']
[2940.0, 2940.0]
[17.0, 17.0]
[59, 64]
p03327
u485566817
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['n = int(input())\nif 1000 <= n <=1998:\n n = n-999\n print("ABD" + str(n))\nelse:\n print("ABC" + str(n))', 'n = int(input())\nif 1000 <= n <=1998:\n n = n-999\n print("ABD")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s233312043', 's523068236']
[2940.0, 2940.0]
[17.0, 17.0]
[109, 91]
p03327
u489717595
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["N=int(input())\n1<=N<=1988\n\nif N<=999:\n print('ABC')\nelse N>=1000:\n print('ABD')", "N=int(input())\nif N>=1000:\n print('ABD')\nelse:\n print('ABD')", "N=int(input())\nif N>=1000:\n print('ABD')\nelse:\n print('ABC')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s438585297', 's868845300', 's540594457']
[8900.0, 9052.0, 9156.0]
[25.0, 25.0, 30.0]
[85, 66, 66]
p03327
u491656579
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['print("ABD")', 'N=int(input())\n\nif N < 1000:\n print("ABD0")\nelse:\n print("ABD1")', 'A, B = input().split()\na = int(A)\nans = 0\n\nfor i in range(a - 1):\n ans += i\n\nprint(ans)\n', 'N=int(input())\n\nif N < 1000:\n print("ABC")\nelse:\n print("ABD")\n']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s243417185', 's267915320', 's659131962', 's031897692']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0, 17.0]
[12, 70, 91, 69]
p03327
u496280557
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["contest_num = int(input())\n\nif contest_num >= 1999: \n print('None')\n\nelif contest_num < 1000:\n print('abc')\n\nelif contest_num >= 1000:\n print('abd')", "contest_num = int(input())\n\nif contest_num >= 1999: \n result_str = 'The contest has not been held'\n\nelif contest_num < 1000:\n result_str = 'abc'\n\nelif contest_num >= 1000:\n result_str = 'abd'\n\nprint(result_str)", "contest_num = int(input())\n\nif contest_num <= 999: \n print('abc')\n\nelif contest_num >= 1000:\n print('abd')", "N = int(input())\n\nif N >= 1999: \n print('The contest has not been held')\n\nelif N < 1000:\n print('ABC')\n\nelif N >= 1000:\n print('ABD')\n"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s018201140', 's641193641', 's718079409', 's282092378']
[9132.0, 9160.0, 9152.0, 9136.0]
[28.0, 28.0, 28.0, 28.0]
[184, 246, 139, 170]
p03327
u497625442
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = input()\nif N < 1000:\n print("ABC")\nelse:\n print("ABD")\n', 'N = int(input())\nif N < 1000:\n print("ABC")\nelse:\n print("ABD")\n']
['Runtime Error', 'Accepted']
['s497455145', 's468555509']
[2940.0, 2940.0]
[17.0, 17.0]
[65, 70]
p03327
u497952650
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = int(input())\ntmp = str(N)\nif N < 1000:\n print("ABC"+tmp.zfill(3))\nelse:\n print("ABD"+tmp.zfill(4))', 'N = int(input())\nif N < 1000:\n tmp = str(N)\n print("ABC"+tmp.zfill(3))\nelse:\n tmp = str(N%1000+1)\n print("ABD"+tmp.zfill(3))', 'N = int(input())\n\nif N <= 999:\n print("ABC")\nelse:\n print("ABD")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s222117280', 's506563630', 's478032917']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[108, 136, 70]
p03327
u500279510
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["N = int(input())\n\nif (N >= 1) & (N <= 999)\n print('ABC')\nelse:\n print('ABD')", "N = int(input())\n\nif (N >= 1) and (N <= 999):\n print('ABC')\nelse:\n print('ABD')"]
['Runtime Error', 'Accepted']
['s046660756', 's260257475']
[2940.0, 2940.0]
[17.0, 17.0]
[82, 85]
p03327
u502028059
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n = int(input())\nans = None\nif n < 1000:\n ans = 'ABC' + str(n).zfill(3)\nelse:\n ans = 'ABD' + str(n + 1)[1:].zfill(3)\nprint(ans)", "n = int(input())\nans = None\nif n < 1000:\n ans = 'ABC' + str(n).zfill(3)\nelse:\n ans = 'ABD' + str(n + 1)[1:].zfill(3)\nprint(ans)", "n = int(input())\nans = None\nif n < 1000:\n ans = 'ABC{:>3}'.format(str(n))\nelse:\n ans = 'ABD{:>3}'.format(str(n + 1)[1:])\nprint(ans)", "n = int(input())\nans = None\nif n < 1000:\n ans = 'ABC'\nelse:\n ans = 'ABD'\nprint(ans)"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s230720053', 's258108003', 's931426502', 's362355500']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 24.0, 17.0, 17.0]
[133, 133, 137, 89]
p03327
u507611905
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n = int(input())\n\nif n < 1000:\n print('ABC{:0>3}'.format(n))\nelse:\n print('ABD{:0>3}'.format(n-999))\n\n", "n = int(input())\n\nif n < 1000:\n print('ABC')\nelse:\n print('ABD')\n\n"]
['Wrong Answer', 'Accepted']
['s933977196', 's518829400']
[2940.0, 2940.0]
[17.0, 18.0]
[104, 68]
p03327
u513793759
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = int(input())\u3000\nif N <1000:\n\tprint("ABC") \nelse:\n\tprint("ABD") \n\t', "N = int(input())\u3000\nif N <1000:\n\tprint('ABC') \nelse:\n\tprint('ABD') \n\t", 'N = int(input())\u3000\nif N <1000:\n\tprint("ABC") \nelse:\n\tprint("ABD") \n\t', 'N = int(input())\nif N <1000:\n\tprint("ABC")\nelse:\n\tprint("ABD")\n\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s022152992', 's221469532', 's598231705', 's336995119']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[106, 69, 69, 64]
p03327
u515952036
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n = int(input())\n\nif n < 999:\n\tprint('ABC')\nelse:\n\tprint('ABD')", "n = int(input())\n\nif n <= 999:\n\tprint('ABC')\nelse:\n\tprint('ABD')\n"]
['Wrong Answer', 'Accepted']
['s447089459', 's432338488']
[2940.0, 2940.0]
[17.0, 17.0]
[63, 65]
p03327
u517447467
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = int(input())\nif N >= 1000:\n print("ABD{:03}".format(N-999))\nelse:\n print("ABC{:03}".format(N))', 'N = int(input())\nif N >= 1000:\n print("ABD")\nelse:\n print("ABC)', 'N = int(input())\nif N >= 1000:\n print("ABD"+str(N%1000))\nelse:\n print("ABC"+str(N))', 'N = int(input())\nif N >= 1000:\n print("ABD")\nelse:\n print("ABC")']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s101999925', 's257558972', 's567179360', 's534365072']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[100, 65, 85, 66]
p03327
u518042385
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['l=list(input())\nif len(l)==4:\n print("ABD"+l[1]+l[2]+l[3])\nelif len(l)==3:\n print("ABC"+l[0]+l[1]+l[2])\nelif len(l)==2:\n print("ABC"+"0"+l[0]+l[1])\nelse:\n print("ABC"+"00"+l[0])', 'i=int(input())\nif i>999:\n print("ABD")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s239928361', 's279976531']
[3060.0, 3316.0]
[18.0, 19.0]
[181, 60]
p03327
u526818929
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = int(input())\n\nif 999 >= N >= 100:\n print("ABC" + str(N))\nif 99 >= N >= 10:\n print("ABC0" + str(N))\nif 9 >= N >= 1:\n print("ABC00" + str(N))\nif 1008 >= N >= 1000:\n M = N - 999\n print("ABD00" + str(M))\nif 1098 >= N >= 1009:\n M = N - 999\n print("ABD0" + str(M))\nif 1998 >= N >= 1099:\n M = N - 999\n print("ABD" + str(M))', 'N = int(input())\n\nif 999 >= N >= 100:\n print("ABC" + str(N))\nif 99 >= N >= 10:\n print("ABC0" + str(N))\nif 9 >= N >= 1:\n print("ABC00" + str(N))\nif 1008 >= N >= 1000:\n M = N - 999\n print("ABD00" + str(M))\nif 1098 >= N >= 1009:\n M = N - 999\n print("ABD0" + str(M))\nif 1998 >= N >= 1099:\n M = N - 999\n print("ABD" + str(M))', 'N = int(input())\n\nif 999 >= N >= 100:\n print("ABC" + str(N))\nif 99 >= N >= 10:\n print("ABC0" + str(N))\nif 9 >= N >= 1:\n print("ABC00" + str(N))\nif 1008 >= N >= 1000:\n M = N - 999\n print("ABD00" + str(M))\nif 1098 >= N >= 1009:\n M = N - 999\n print("ABD00" + str(M))\nif 1998 >= N >= 1099:\n M = N - 999\n print("ABD00" + str(M))', 'N = int(input())\n\nif 999 >= N >= 1:\n print("ABC")\nif 1998 >= N >= 1000:\n print("ABD")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s240609825', 's473389034', 's519589153', 's687688538']
[9196.0, 9144.0, 9208.0, 9052.0]
[25.0, 28.0, 25.0, 28.0]
[347, 348, 351, 91]
p03327
u528388170
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['a, b = [int(i) for i in input().split()]\nc = b-a\nd = 0\nfor j in range(c):\n d+=j\nd-=a\nprint(d)', 'N = input()\nif N<1000:\n print("ABC")\nelse:\n print("ABD") \n', 'N = int(input())\nif N<1000:\n print("ABC")\nelse:\n print("ABD")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s112445945', 's452579643', 's303939999']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[96, 65, 67]
p03327
u530844517
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["print('abd') if int(input()) >= 1000 else print('abc')", "print('ABD') if int(input()) >= 1000 else print('ABC')"]
['Wrong Answer', 'Accepted']
['s898209755', 's111568651']
[2940.0, 2940.0]
[17.0, 18.0]
[54, 54]
p03327
u534308356
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['n = int(input())\nif n > 999:\n print("ABD)\nelse:\n print("ABC")\n', 'n = int(input())\nif n > 999:\n print("ABD")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s459846595', 's133654529']
[8856.0, 9080.0]
[27.0, 28.0]
[68, 69]
p03327
u534953209
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = input()\nif N < 1000:\n print("ABC")\nelse:\n print("ABD")', 'N = int(input())\nif N < 1000:\n print("ABC")\nelse:\n print("ABD")']
['Runtime Error', 'Accepted']
['s244788034', 's340164442']
[2940.0, 2940.0]
[17.0, 17.0]
[64, 69]
p03327
u535423069
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['import sys\n \nstdin = sys.stdin\ninf = 1 << 60\nmod = 1000000007\n \nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nnan = lambda x: [na() for _ in range(x)]\nns = lambda: stdin.readline().rstrip()\nnsn = lambda x: [ns() for _ in range(x)]\nnas = lambda: stdin.readline().split()\n\nn = ni()\n\nif n < 1000:\n print("ABC{:0>3}".format(n))\nelse:\n print("ABD{:0>3}".format(n - 999))', 'import sys\n \nstdin = sys.stdin\ninf = 1 << 60\nmod = 1000000007\n \nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nnan = lambda x: [na() for _ in range(x)]\nns = lambda: stdin.readline().rstrip()\nnsn = lambda x: [ns() for _ in range(x)]\nnas = lambda: stdin.readline().split()\n\nn = ni()\n\nif n < 1000:\n print("ABC")\nelse:\n print("ABD")']
['Wrong Answer', 'Accepted']
['s998122899', 's529970952']
[3064.0, 3064.0]
[17.0, 19.0]
[402, 364]
p03327
u535827181
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = int(input())\nif N < 1000:\n print(ABC)\nelse:\n print(ABD)', "N = int(input())\nif N < 1000:\n print('ABC')\nelse:\n print('ABD')"]
['Runtime Error', 'Accepted']
['s996567278', 's522243660']
[2940.0, 2940.0]
[17.0, 17.0]
[61, 65]
p03327
u536377809
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['n=int(input())\nif n>1000:\n s=str(n-999)\n s="0"*(3-len(s))+s\n print("ABD"+s)\nelse:\n s=str(n)\n s="0"*(3-len(s))+s\n print("ABC"+s)', 'n=int(input())\nif n>=1000:\n print("ABD")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s075769347', 's164516307']
[2940.0, 2940.0]
[17.0, 17.0]
[133, 62]
p03327
u539874256
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = list(map(int, input().split()))\n\nprint("ABC") if N < 1000 else print("ABD")', 'N = list(map(int, input().split()))\n\nprint("ABC") if N[0] < 1000 else print("ABD")']
['Runtime Error', 'Accepted']
['s592037245', 's599512158']
[2940.0, 2940.0]
[17.0, 17.0]
[79, 82]
p03327
u541610817
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n = int(input())\nif 1 <= n < 1000:\n print('ABC' + str(n).zfill(3))\nelse:\n n -= 999\n print('ABD' + str(n).zfill(3))", "n = int(input())\nprint('ABC' if 1 <= n < 1000 else 'ABD')\n"]
['Wrong Answer', 'Accepted']
['s785833430', 's352157625']
[3060.0, 2940.0]
[20.0, 17.0]
[117, 58]
p03327
u545368057
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = int(input())\nif N < 1000:\n print("ABC{:03d}".format(N))\nelse:\n print("ABD{:03d}".format(N-999))\n', 'N = int(input())\nif N < 1000:\n print("ABC")\nelse:\n print("ABD")']
['Wrong Answer', 'Accepted']
['s530724747', 's078694011']
[2940.0, 2940.0]
[17.0, 18.0]
[106, 69]
p03327
u546842199
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["N = int(input())\n\nif N < 1000:\n print('ABC'+str(N)\nelse:\n print('ABD'+str(N-1000))", "N = int(input())\nif N >= 1000:\n print('ABC'+str(N-1000))\nelse:\n print('ABC'+str(N))", "N = int(input())\nif N >= 1000:\n print('ABD')\nelse:\n print('ABC')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s407675178', 's635882983', 's755519000']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[88, 89, 66]
p03327
u546853743
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["\nn=input()\nif n < 1000:\n prnt('ABC')\nelse:\n print('ABD')", "\nn=int(input())\nif n < 1000:\n print('ABC')\nelse:\n print('ABD')"]
['Runtime Error', 'Accepted']
['s754564240', 's393800841']
[9020.0, 9148.0]
[26.0, 25.0]
[62, 68]
p03327
u554801165
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = input()\nif N >1000:\n print("ABC")\nelse:\n print("ABD")', 'N = input\nif N >1000:\n print("ABC")\nelse:\n print("ABD")', 'N = input\nif n >1000:\n print("ABC")\nelse:\n print("ABD")\n\n', 'N = int(input())\nif N <= 999:\n print("ABC")\nelse:\n print("ABD")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s350313398', 's834537658', 's985778682', 's519952270']
[2940.0, 3188.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0]
[63, 61, 63, 70]
p03327
u556225812
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = int(input())\ndp = list(range(N+1))\n\ni = 6\nwhile i <= N:\n for j in range(i, N+1):\n dp[j] = min(dp[j], 1+dp[j-i])\n i = i*6\ni = 9\nwhile i <= N:\n for j in range(N+1):\n dp[j] = min(dp[j], 1+dp[j-i])\n i = i*9\nprint(dp[N])', "N = int(input())\nif N > 999:\n print('ABD')\nelse:\n print('ABC')"]
['Wrong Answer', 'Accepted']
['s345281528', 's931351106']
[3064.0, 2940.0]
[22.0, 17.0]
[245, 64]
p03327
u557168336
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['import sys\ninput = sys.stdin.buffer.readline\n\ndef gcd(a: int, b: int):\n """ https://cocodrips.hateblo.jp/entry/2014/03/05/143623\n """\n while b:\n a, b = b, a%b\n return a\n\ndef lcm(a: int, b: int):\n return a * b // gcd(a, b)\n\n\ndef main():\n N = int(input())\n\t#N, M = map(int, input().split())\n #print(lcm(N, M))\n\tprint("ABC" if N<1000 else "ABD")\n\nif __name__ == "__main__":\n main()\n', 'import sys\ninput = sys.stdin.buffer.readline\n\ndef gcd(a: int, b: int):\n """ https://cocodrips.hateblo.jp/entry/2014/03/05/143623\n """\n while b:\n a, b = b, a%b\n return a\n\ndef lcm(a: int, b: int):\n return a * b // gcd(a, b)\n\n\ndef main():\n N = int(input())\n #N, M = map(int, input().split())\n #print(lcm(N, M))\n print("ABC" if N<1000 else "ABD")\n\n\nif __name__ == "__main__":\n main()\n']
['Runtime Error', 'Accepted']
['s858001752', 's125408448']
[2940.0, 3060.0]
[17.0, 17.0]
[410, 417]
p03327
u557235596
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['a, b = map(int, input().split())\n\ns = set()\nacc = 0\nfor i in range(1, 1000):\n acc += i\n s.add(acc)\n\nfor i in range(1, 4995001):\n if (a + i) in s and (b + i) in s:\n print(i)', 'N = int(input())\n\nif N <= 999:\n print("ABC")\nelse:\n print("ABD")\n']
['Runtime Error', 'Accepted']
['s315699840', 's975695514']
[3060.0, 2940.0]
[17.0, 17.0]
[188, 71]
p03327
u563145186
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = int(input())\n\nif N >= 1000:\n print("ABC")\nelse:\n print("ABD")', 'N = int(input())\n\nif N < 1000:\n print("ABC")\nelse:\n print("ABD")']
['Wrong Answer', 'Accepted']
['s436800812', 's018201688']
[2940.0, 3316.0]
[17.0, 19.0]
[71, 70]
p03327
u564412408
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['input_line = list(map(int, input().split()))\na = input_line[0]\nb = input_line[1]\n\nx = b - a\n\nfor i in range(1, x):\n x += i;\nprint(abs(x-b))\n ', 'input_line = list(map(int, input().split()))\na = input_line[0]\nb = input_line[1]\n\nx = b - a\n\nfor i in range(0, x):\n x += i;\nprint(x-b)\n ', 'input_line = list(map(int, input().split()))\na = input_line[0]\nb = input_line[1]\n\nx = b - a\n\nfor i in range(1, x):\n x += i;\nprint(x-b)\n ', '# coding: utf-8\n# Your code here!\n\ninput_line = int(input())\n\nif input_line < 1000:\n print("ABC")\nelse:\n print("ABD")\n\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s261459106', 's481489591', 's973943448', 's093227680']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[147, 142, 142, 125]
p03327
u570121126
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n=int(input())\nif n<1000:\n if len(str(n))==1:\n print('ABC00'+str(n))\n elif len(str(n))==2:\n print('ABC0'+str(n))\n else:\n print('ABC'+str(n))\nelse:\n if len(str((n%1000)+1))==1:\n print('ABD00'+str((n%1000)+1))\n elif len(str((n%1000)+1))==2:\n print('ABD0'+str((n%1000)+1))\n else:\n print('ABD'+str((n%1000)+1))", "n=int(input())\nif n<1000:\n print('ABC')\nelse:\n print('ABD')"]
['Wrong Answer', 'Accepted']
['s307472971', 's801901049']
[3064.0, 2940.0]
[17.0, 28.0]
[366, 65]
p03327
u573754721
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['n=int(input())\nif n>999:\n print("ABC")\nelse:\n print("ABD")\n ', 'print("ABC" if int(input())<1000 else "ABD")\n ']
['Wrong Answer', 'Accepted']
['s673724314', 's505003274']
[2940.0, 2940.0]
[17.0, 17.0]
[63, 47]
p03327
u573800593
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['\nn = int(input())\n\nif n < 1000:\n print("ABC%03d" % n)\nelse:\n print("ABD%03d" % (n-1000))\n', '\nprint("ABC" if int(input()) < 1000 else "ABD")\n']
['Wrong Answer', 'Accepted']
['s379306549', 's960625260']
[2940.0, 2940.0]
[17.0, 17.0]
[91, 48]
p03327
u576844664
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['if(int(input()) 1000):\n print("ABC")\nelse:\n print("ABD")\n ', 'if(int(input()) < 1000):\n print("ABC")\nelse:\n print("ABD")\n \n']
['Runtime Error', 'Accepted']
['s158032885', 's278990778']
[2940.0, 2940.0]
[17.0, 17.0]
[61, 64]
p03327
u577927591
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['a= input()\n\nif (a >= 1000):\n print ("ABD")\nelse:\n print("ABC")\n', 'a= int(input())\n\nif (a >= 1000):\n print ("ABD")\nelse:\n print("ABC")\n']
['Runtime Error', 'Accepted']
['s487500534', 's397409535']
[2940.0, 2940.0]
[18.0, 17.0]
[69, 74]
p03327
u580362735
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['a,b = map(int,input().split()) print(sum(range(b-a))-a)', 'a,b = map(int,input().split());print(sum(range(b-a))-a)\n', "N = int(input())\n\nif N<=999:print('ABC')\nelse:print('ABD')"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s453861733', 's713536010', 's393475294']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0]
[55, 56, 58]
p03327
u585336982
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['n = int(input())\nif n <= 999:\n print(ABC)\nelse:\n print(ABD)', 'n = int(input())\nif n <= 999:\n print("ABC")\nelse:\n print("ABD")']
['Runtime Error', 'Accepted']
['s211691012', 's619811800']
[2940.0, 2940.0]
[17.0, 17.0]
[65, 69]
p03327
u589381719
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N=int(input())\nprint("ABC"+str(N) if N<1000 else "ABD"+str(N-999).zfill(3))', 'N=int(input())\nprint("ABC" if N<1000 else "ABD")']
['Wrong Answer', 'Accepted']
['s422671914', 's879253826']
[2940.0, 2940.0]
[17.0, 17.0]
[75, 48]
p03327
u589726284
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N = int(input())\nif N < 999:\n print("ABC")\nelif N <= 1998:\n print("ABD")\n', 'N = int(input())\nif N < 1000:\n print("ABC")\nelse:\n print("ABD")\n']
['Wrong Answer', 'Accepted']
['s754156428', 's566401877']
[2940.0, 3060.0]
[18.0, 19.0]
[79, 70]
p03327
u589969467
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n = int(input())\nif n<1000:\n print('ABD')\nelse:\n print('ABC')", "n = int(input())\nif n<1000:\n print('ABC')\nelse:\n print('ABD')"]
['Wrong Answer', 'Accepted']
['s818463944', 's349919090']
[9068.0, 9148.0]
[24.0, 25.0]
[67, 67]
p03327
u594956556
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n=int(input())\nif n<=999:\n print('ABC'+'{0:03d}'.format(n))\nelse:\n n=n-999\n print('ABD'+{0:03d}'.format(n))", "n=int(input())\nif n<=999:\n print('ABC'+'{0:03d}'.format(n))\nelse:\n n=n-999\n print('ABD'+'{0:03d}'.format(n))\n", "n=int(input())\nif n<=999:\n print('ABC'+str(n))\nelse:\n n=n-999\n print('ABD'+str(n))", "n=int(input())\nif n<=999:\n print('ABC')\nelse:\n print('ABD')"]
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s175956938', 's573355946', 's655681347', 's939208753']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[110, 112, 85, 61]
p03327
u595643170
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["a = int(input())\nif a < 1000:\n print('abc')\nelse:\n print('abd')", 'def L(N):\n def cal(n: int, h: int):\n f = 0\n while True:\n f += 1\n m = n - pow(h, f)\n if m <= 0:\n break\n n = m\n return n, f - 1\n\n rem, count_1 = cal(N, 9)\n if rem == 0:\n return count_1\n rem, count_2 = cal(rem, 6)\n if rem == 0:\n return count_1 + count_2\n return count_1 + count_2 + rem\n\nprint(L(int(input())))', "a = int(input())\nif a < 1000:\n print('ABC')\nelse:\n print('ABD')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s366494316', 's709096070', 's666036949']
[2940.0, 3064.0, 2940.0]
[17.0, 17.0, 18.0]
[69, 418, 69]
p03327
u597017430
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["N = int(input())\nif N<1000:\n print('ABC' + N.zfill(3))\n exit()\nprint('ABD' + (N-999).zfill(3))\n\n ", "N = int(input())\nif N<1000:\n print('ABC' + str(N).zfill(3))\n exit()\nprint('ABD' + str(N-999).zfill(3))\n", "N = int(input())\nif N<1000:\n print('ABC' + str(N).zfill(3))\n exit()\nprint('ABD' + str(N-999).zfill(3))", "N = int(input())\nif N<1000:\n print('ABC')\n exit()\nprint('ABD')\n"]
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s321833283', 's617173005', 's974852243', 's018374596']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[100, 105, 104, 65]
p03327
u598009172
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['N=int(input())\nif N =<999:\n print("ABC")\nelse:\n print("ABD")', 'N=int(input())\nif N <= 999:\n print("ABC")\nelse:\n print("ABD")']
['Runtime Error', 'Accepted']
['s872379240', 's610809024']
[2940.0, 2940.0]
[17.0, 17.0]
[66, 67]
p03327
u601082779
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['print("AB"+["c","D"][len(input())>3])', 'print("AB"+["C","D"][len(input())>3])']
['Wrong Answer', 'Accepted']
['s273458009', 's365244910']
[2940.0, 2940.0]
[17.0, 17.0]
[37, 37]
p03327
u603087692
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['n = int(input())\n\nif n / 1000 == 0:\n\tprint("ABC")\nelse: \n\tprint("ABD")', 'n = int(input())\n\nif n / 1000 < 1:\n\tprint("ABC")\nelse: \n\tprint("ABD")']
['Wrong Answer', 'Accepted']
['s157392786', 's438265795']
[2940.0, 2940.0]
[17.0, 17.0]
[70, 69]
p03327
u604412462
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n = int(input())\nif n < 999:\n print('ABC')\nelse:\n print('ABD')", "n = int(input())\nif n <= 999:\n print('ABC')\nelse:\n print('ABD')"]
['Wrong Answer', 'Accepted']
['s095628769', 's226490857']
[2940.0, 2940.0]
[18.0, 18.0]
[68, 69]
p03327
u607865971
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['import math\n\nN = int(input())\n# A = [int(x) for x in input().split()]\n\n\nC = [1]\nfor i in range(math.ceil(math.log(N,9)) + 3):\n if i !=0 :\n C.append(9 ** i)\nfor i in range(math.ceil(math.log(N,6)) + 3):\n if i != 0:\n C.append(6 ** i)\n\n\nINF = 10**10\ndp = [INF] * (N+1)\ndp[0] = 0\n\nfor i in range(1,N+1):\n for c in C:\n if i - c >= 0:\n dp[i] = min(dp[i], dp[i - c] + 1)\n\nprint(dp[N])\n\n', 'N = int(input())\nif N>999:\n print("ABD")\nelse:\n print("ABC")']
['Wrong Answer', 'Accepted']
['s131575909', 's818132603']
[3064.0, 2940.0]
[25.0, 17.0]
[420, 66]
p03327
u611509859
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['a=input()\nif a<=999:\n print("ABC")\nelse:\n print("ABD")', 'a=int(input())\nif a<=999:\n print("ABC")\nelse:\n print("ABD")\n']
['Runtime Error', 'Accepted']
['s374163079', 's911477358']
[2940.0, 2940.0]
[18.0, 17.0]
[60, 66]
p03327
u612721349
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n = int(input())\ns = 'D' if n > 1000 else 'C'\nprint('AB' + s + str(n % 1000)) \n\n", "n = int(input())\ns = 'D' if n > 999 else 'C'\nprint('AB' + s + '{0:03d}'.format(n % 1000))", "n = int(input())\ns = n > 1000 if 'D' else 'C'\nprint('AB' + s + str(n % 1000)) ", "s = print('AB' + ('D' if int(input()) > 999 else 'C'))"]
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s284350108', 's319457833', 's542273289', 's931177871']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 19.0, 17.0, 17.0]
[80, 89, 78, 54]
p03327
u618369407
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["# -*- coding: utf-8 -*-\n\nn = int(input())\n\nif (n / 1000) == 0:\n print('ABC' + n % 1000)\nelse:\n print('ABD' + (n % 1000) + 1)", "# -*- coding: utf-8 -*-\n\nn = int(input())\n\nif (n // 1000) == 0:\n print('ABC')\nelse:\n print('ABD')"]
['Runtime Error', 'Accepted']
['s106044513', 's761940622']
[9020.0, 9124.0]
[26.0, 24.0]
[130, 103]
p03327
u622570247
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["n = int(input())\nif n < 1000:\n print('ABC{:03d}'.format(n))\nelse:\n print('ABD{:03d}'.format(n - 1000 + 1))\n", "n = int(input())\nif n < 1000:\n print('ABC')\nelse:\n print('ABD')"]
['Wrong Answer', 'Accepted']
['s020146294', 's564721604']
[9056.0, 9152.0]
[24.0, 26.0]
[113, 69]
p03327
u623601489
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['print("AB"+["C","D"][len(input()<4)])\n', 'print("AB"+["C","D"][len(input())<4])', 'print("AB"+["D","C"][len(input())<4])']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s021070422', 's526440193', 's038189285']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[38, 37, 37]
p03327
u623687794
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['a=int(input())\nif a<=999:\n print("ABC"+str(a))\nelif 1000<=a<=1008:\n print("ABD00"+str(a-999))\nelif 1009<=a<=1098:\n print("ABD0"+str(a-999))\nelse:\n print("ABD"+str(a-999))\n \n', 'a=int(input())\n\nif a<=9:\n print("ABC00"+str(a))\nelif 10<=a<=99:\n print("ABC0"+str(a))\nelif 100<=a<=999:\n print("ABC"+str(a))\nelif 1000<=a<=1008:\n print("ABD00"+str(a-999))\nelif 1009<=a<=1098:\n print("ABD0"+str(a-999))\nelse:\n print("ABD"+str(a-999))\n \n', 'a=int(input())\nif a<=999:\n print("ABC"+str(a))\nelif 1000<=a<=1008:\n print("ABC00"+str(a-999))\nelif 1009<=a<=1098:\n print("ABC0"+str(a-999))\nelse:\n print("ABC"+str(a-999))\n ', 'a=int(input())\nif a<=999:\n print("ABC")\nelse:\n print("ABD")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s161962486', 's433299994', 's875355340', 's034073933']
[2940.0, 3316.0, 2940.0, 2940.0]
[19.0, 20.0, 18.0, 17.0]
[178, 258, 177, 61]
p03327
u625729943
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["import sys, math\nfrom itertools import permutations, combinations\nfrom collections import defaultdict, Counter, deque\nfrom math import factorial\nfrom bisect import bisect_left \n#from fractions import gcd\nsys.setrecursionlimit(10**7)\nenu = enumerate\nMOD = 10**9+7\ndef input(): return sys.stdin.readline()[:-1]\ndef pri(x): print('\\n'.join(map(str, x)))\n\nN = int(input())\n\nif N>999:\n print('ABC')\nelse:\n print('ABD')\n\n\n", "import sys, math\nfrom itertools import permutations, combinations\nfrom collections import defaultdict, Counter, deque\nfrom math import factorial\nfrom bisect import bisect_left \n#from fractions import gcd\nsys.setrecursionlimit(10**7)\nenu = enumerate\nMOD = 10**9+7\ndef input(): return sys.stdin.readline()[:-1]\ndef pri(x): print('\\n'.join(map(str, x)))\n\nN = int(input())\n\nif N>999:\n print('ABD')\nelse:\n print('ABC')\n\n\n"]
['Wrong Answer', 'Accepted']
['s633455568', 's012530708']
[3572.0, 3316.0]
[27.0, 21.0]
[447, 447]
p03327
u626468554
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['#n = int(input())\n#n,k = map(int,input().split())\n#x = list(map(int,input().split()))\n\nn1 = input()\nn = int(n1)+1\n\nif n<=1000:\n print("ABC"+n1)\nelse:\n print("ABD"+str(n))', '#n = int(input())\n#n,k = map(int,input().split())\n#x = list(map(int,input().split()))\n\nn1 = input()\nn = int(n1)+1\n\nif n<=1000:\n print("ABC")\nelse:\n print("ABD")\n']
['Wrong Answer', 'Accepted']
['s887202470', 's362123129']
[2940.0, 2940.0]
[17.0, 22.0]
[176, 167]
p03327
u629607744
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['n = int(input())\nif n < 1000:\n\tprint("ABC",n)\nelse:\n\tprint("ABD",n-999)', 'n = int(input())\nif n < 1000:\n\tprint("ABC"+str(n))\nelse:\n\tprint("ABD"+str(n-999))\n', 'n = int(input())\nif n < 1000:\n\tprint("ABC")\nelse:\n\tprint("ABD")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s402243020', 's607674468', 's288532199']
[8996.0, 9156.0, 9088.0]
[27.0, 25.0, 27.0]
[71, 82, 64]
p03327
u631277801
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
['def summation(n):\n if n == 0:\n return 0\n elif n == 1:\n return 1\n else:\n return n + summation(n-1)\n\n\ndef main():\n a,b = map(int, input().split())\n \n n_plus1 = b-a\n \n ans = summation(n_plus1) - b\n \n print(ans)\n\n \nif __name__ == "__main__":\n main()', 'N = int(input())\nif N < 1000:\n print("ABC")\nelse:\n print("ABD")']
['Runtime Error', 'Accepted']
['s729935335', 's402837345']
[3060.0, 2940.0]
[17.0, 17.0]
[302, 69]
p03327
u644516473
2,000
262,144
Decades have passed since the beginning of AtCoder Beginner Contest. The contests are labeled as `ABC001`, `ABC002`, ... from the first round, but after the 999-th round `ABC999`, a problem occurred: how the future rounds should be labeled? In the end, the labels for the rounds from the 1000-th to the 1998-th are decided: `ABD001`, `ABD002`, ..., `ABD999`. You are given an integer N between 1 and 1998 (inclusive). Print the first three characters of the label of the N-th round of AtCoder Beginner Contest.
["N = int(input())\nif N < 1000:\n print('ABC{:03}'.format(N))\nelse:\n print('ABD{:03}'.format(str(N)[1:]))\n", "N = int(input())\nif N < 1000:\n print('ABC'+str(N))\nelse:\n print('ABD'+str(N))", "N = int(input())\nprint('ABC' if N < 1000 else 'ABD')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s284337316', 's658027779', 's840552965']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[105, 79, 52]