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 | u644907318 | 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("ABC"+"00"+str(N))\n elif len(str(N))==2:\n print("ABC"+"0"+str(N))\n elif len(str(N))==3:\n print("ABC"+str(N))\nelse:\n N = N-999\n if len(str(N))==1:\n print("ABD"+"00"+str(N))\n elif len(str(N))==2:\n print("ABD"+"0"+str(N))\n elif len(str(N))==3:\n print("ABD"+str(N))', 'N = int(input())\nif N<1000:\n print("ABC")\nelse:\n print("ABD")'] | ['Wrong Answer', 'Accepted'] | ['s078189459', 's546213165'] | [3064.0, 2940.0] | [17.0, 17.0] | [379, 67] |
p03327 | u652057333 | 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 = map(int, input())\n\nif n >= 1000:\n print('ABD')\nelse:\n print('ABC')", "n = int(input())\n\nif n >= 1000:\n print('ABD')\nelse:\n print('ABC')"] | ['Runtime Error', 'Accepted'] | ['s064592396', 's536935601'] | [2940.0, 2940.0] | [19.0, 18.0] | [76, 71] |
p03327 | u652498023 | 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\nblock = (N-1) // 999\n\na = chr(ord( "C") + block)\nN2 = N - block * 999\n\nif N2 < 10:\n c = "00"\nelif N2 < 100:\n c = "0"\nelse:\n c = ""\n \n\nb = "AB" + a + c + str(N2)\n\nprint("{}".format(b))', 'N = int(input())\n\nblock = (N-1) // 999\n\na = chr(ord( "C") + block)\nN2 = N - block * 999\n\nb = "AB" + a + str(N2)\n\nprint("{}".format(b))', 'N = int(input())\nprint("{}".format("AB" + chr(ord( "C") + (N-1) // 999)))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s086384218', 's851868153', 's301574316'] | [3060.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [235, 168, 73] |
p03327 | u652656291 | 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'+(n-999))\nelse:\n print('ABC'+n)", "n = int(input())\nif n >= 1000:\n print('ABD'+(1000-n))\nelse:\n print('ABC'+n)", "n = int(input())\nif n >= 1000:\n print('ABD')\nelse:\n print('ABC')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s269202741', 's828070292', 's284305047'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [76, 77, 66] |
p03327 | u652737716 | 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(intput()) < 1000 else 'ABD')\n", "print('ABC' if int(input()) < 1000 else 'ABD')\n"] | ['Runtime Error', 'Accepted'] | ['s546709320', 's662313634'] | [2940.0, 2940.0] | [17.0, 18.0] | [48, 47] |
p03327 | u654536970 | 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 =[int(a) for a in input()]\ncontest1 = contest[0]\n\nif contest1 >= 999:\n print("ABC")\nelse:\n print("ABD")', 'contest = int(input())\n\nif contest <= 999:\n print("ABC")\nelse:\n print("ABD")'] | ['Wrong Answer', 'Accepted'] | ['s102852822', 's711553301'] | [2940.0, 2940.0] | [17.0, 17.0] | [117, 82] |
p03327 | u655975843 | 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 < 1999:\n\tprint('ABD')\nelse:\n\tprint('ABC')", "n = int(input())\nif n < 1000:\n\tprint('ABD')\nelse:\n\tprint('ABC')", "n = int(input())\nif n >= 1000:\n\tprint('ABD')\nelse:\n\tprint('ABC')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s499855369', 's915715637', 's068785764'] | [2940.0, 2940.0, 3060.0] | [17.0, 18.0, 19.0] | [63, 63, 64] |
p03327 | u657208344 | 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\tprint("ABC")\nelse\n\tprint("ABD")\n', 'n=int(intput())\nif n < 1000:\n\tprint("ABC")\nelse:\n\tprint("ABD")\n', 'n=int(input())\nif (n < 1000)\n\tprint("ABC")\nelse\n\tprint("ABD")\n', 'n=intput()\nif (n < 1000)\n\tprint("ABC")\nelse\n\tprint("ABD")', "n=int(intput())\nif n < 1000:\n\tprint('ABC')\nelse:\n\tprint('ABD')\n", "n = int(input())\nif n < 1000:\n\tprint('ABC')\nelse:\n\tprint('ABD')\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s099838822', 's275266418', 's275617520', 's611496106', 's980362430', 's862674461'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [63, 63, 62, 57, 63, 64] |
p03327 | u662449766 | 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\ninput = sys.stdin.readline\n\n\ndef main():\n n = int(input())\n if n < 1000:\n print("ABC{:03}".format(n))\n else:\n print("ABD{:03}".format(n - 999))\n\n\nif __name__ == "__main__":\n main()\n', 'import sys\n\ninput = sys.stdin.readline\n\n\ndef main():\n n = int(input())\n if n < 1000:\n print("ABC")\n else:\n print("ABD")\n\n\nif __name__ == "__main__":\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s755704095', 's860121209'] | [2940.0, 2940.0] | [17.0, 18.0] | [219, 183] |
p03327 | u663014688 | 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>=1 and N<1000:\n print(ABC)\nelse:\n print(ABD)\n', "N = int(input())\nif N>=1 and N<1000:\n print('ABC')\nelse:\n print('ABD') \n"] | ['Runtime Error', 'Accepted'] | ['s881788047', 's226583386'] | [2940.0, 2940.0] | [17.0, 17.0] | [73, 80] |
p03327 | u663437630 | 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()\n\nif N < "1000":\n print("ABC")\nelse:\n print("ABD")\n\n\n\n', 'N = int(input())\n\nif N < 1000:\n print("ABC")\nelse:\n print("ABD")\n\n\n\n'] | ['Wrong Answer', 'Accepted'] | ['s820435935', 's301341124'] | [8948.0, 9096.0] | [24.0, 27.0] | [156, 163] |
p03327 | u663438907 | 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' + str(N))\nelse:\n print('ABD' + str(N-999))", "N = int(input())\n \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 if len(str(N-999)) == 1:\n print('ABD00' + str(N-999))\n elif len(str(N-999)) == 2:\n print(('ABD0') + str(N-999))\n else:\n print(('ABD') + str(N-999))", "N = int(input())\n \nif N <= 999:\n print('ABC')\nelse:\n print('ABD')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s454108088', 's548492574', 's730280244'] | [2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [88, 339, 67] |
p03327 | u667084803 | 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, C = map(int, input().split())\nD = [list(map(int, input().split())) for i in range(C)]\nline1 = [0]*C\nline2 = [0]*C\nline0 = [0]*C\nfor i in range(N):\n c = list(map(int, input().split()))\n for j in range(N):\n if (i+j)%3 == 0:\n line0[c[j]-1] +=+1\n if (i+j)%3 == 1:\n line1[c[j]-1] +=+1\n if (i+j)%3 == 2:\n line2[c[j]-1] +=+1\nans = float("inf")\n\n#print(line0,line1,line2)\nfor i in range(C):\n for j in range(C):\n if j !=i :\n for k in range(C):\n if k !=i and k!=j: \n# print(i,j,k)\n curr = 0\n for l in range(C):\n curr += line0[l]*D[l][i]\n curr += line1[l]*D[l][j]\n curr += line2[l]*D[l][k]\n# print(curr)\n ans = min(ans, curr)\nprint(ans)', 'N= int(input())\nif N>999:\n print("ABD")\nelse:\n print("ABC")'] | ['Runtime Error', 'Accepted'] | ['s571707471', 's373400080'] | [3064.0, 3060.0] | [18.0, 19.0] | [803, 61] |
p03327 | u667469290 | 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())\na = [1,]\nb = []\ni = 6\nwhile i < N:\n b.append(i)\n i *= 6\nc = []\ni = 9\nwhile i < N:\n c.append(i)\n i *= 9\nL = sorted(a + b + c)\nx = 0\ni = 1\nwhile N > 0:\n if N >= L[-i]:\n N -= L[-i]\n x += 1\n else:\n i += 1\nprint(x)\n', "N = int(input())\nif N > 999:\n print('ABD')\nelse:\n print('ABC')"] | ['Wrong Answer', 'Accepted'] | ['s680846451', 's302659391'] | [3060.0, 2940.0] | [17.0, 17.0] | [266, 68] |
p03327 | u667694979 | 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('{}{:0=3}'.format('ABC',n))\nelse:\n print('{}{:0=3}'.format('ABD',n-999))", "n=int(input())\n\nif n<1000:\n print('ABC')\nelse:\n print('ABD')"] | ['Wrong Answer', 'Accepted'] | ['s208285759', 's453040224'] | [2940.0, 2940.0] | [19.0, 17.0] | [108, 62] |
p03327 | u668352391 | 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. | ["s = int(input())\n\nif s > 999:\n print('ABD{:03d}'.format(s-999))\nelse:\n print('ABC{:03d}'.format(s))", "s = int(input())\n \nif s > 999:\n print('ABD')\nelse:\n print('ABC')"] | ['Wrong Answer', 'Accepted'] | ['s710877151', 's371323164'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 66] |
p03327 | u668705838 | 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"+str(n))\nelse:\n print("ABD"+str(n-999))', 'n = int(input())\nif n<=999:\n print("ABC")\nelse:\n print("ABD")'] | ['Wrong Answer', 'Accepted'] | ['s990267350', 's936317716'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 63] |
p03327 | u681340020 | 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_max = 100000\n\nbs = [(6 ** i, 6) for i in range (1, 10)]\nbs.extend([(9 ** i, 9) for i in range (1, 10)])\nbs = list(sorted(filter(lambda x: x[0] <= n_max, bs)))\nbms = []\ns = 5\nfor b, i in bs:\n s += b * (i - 1)\n bms.append((b, i, s))\n\n#print(bs)\n\n\n#m = 44852\nm = int(input())\n\nstack = [(m, 0, len(bms) - 1)]\n\nresult = 10000\nwhile stack:\n m, n, bms_i = stack.pop()\n b, i, s = bms[bms_i]\n #print(m, n, bms_i, b, i, s)\n\n if n > result:\n# print("skip!", m, n, bms_i)\n continue\n if bms_i < 0:\n if m < 6 and result > m + n:\n result = m + n\n# print(\'get result!\', result)\n continue\n\n for j in range(0, i):\n next_m = m - b * j\n if next_m > 0 and n + j < result:\n stack.append((next_m, n + j, bms_i - 1))\n\nprint(result)\n', "n = int(input())\nif n >= 1000:\n print('ABD')\nelse:\n print('ABC')\n"] | ['Wrong Answer', 'Accepted'] | ['s631961710', 's402168267'] | [3064.0, 2940.0] | [26.0, 18.0] | [853, 79] |
p03327 | u685662874 | 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')", "#!/usr/bin/env python3\nfrom itertools import product, permutations, combinations\n\nN=int(input())\nif N > 999:\n print('ABD')\nelse:\n print('ABC')\n"] | ['Wrong Answer', 'Accepted'] | ['s355420264', 's068250981'] | [2940.0, 3060.0] | [17.0, 17.0] | [66, 149] |
p03327 | u693933222 | 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 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'] | ['s507615118', 's946577699'] | [2940.0, 2940.0] | [17.0, 17.0] | [51, 68] |
p03327 | u695079172 | 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 answer = "ABC"+str(n).zfill(3)\nelse:\n answer = "ABD"+str(n-999).zfill(3)\nprint(answer)\n ', '\nn = int(input())\nif n <= 999:\n answer = "ABC"\nelse:\n answer = "ABD"\nprint(answer)\n \n'] | ['Wrong Answer', 'Accepted'] | ['s779549036', 's887687672'] | [2940.0, 2940.0] | [17.0, 17.0] | [122, 88] |
p03327 | u699121329 | 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 -*-\nimport sys\n\ndef main(argv):\n i = int(argv[0])\n if i >= 0 and 999 >= i:\n print('ABC')\n elif i > 999:\n print('ABD')\n \nif __name__ == '__main__':\n main(sys.argv[1:])", "# -*- coding: utf-8 -*-\nimport sys\n\ndef main(argv):\n i = int(argv[0])\n if i => 0 and 999 <= i:\n print('ABC')\n elif i > 999:\n print('ABD')\nif __name__ == '__main__':\n main(sys.argv[1:])", "# -*- coding: utf-8 -*-\nimport sys\n \nif __name__ == '__main__':\n i = int(input())\n if i >= 0 and 999 >= i:\n print('ABC')\n elif i > 999:\n print('ABD')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s569020812', 's644024931', 's226123923'] | [2940.0, 2940.0, 3064.0] | [19.0, 19.0, 18.0] | [199, 194, 161] |
p03327 | u699975853 | 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_data = input()\nif input_data <= 999:\n print(str(ABC))\nelse:\n print(str(ABD))', "input_data = input()\nif input_data <= 999:\n print('ABC')\nelse:\n print('ABD')", 'input_data = input()\nif input_data <= 999:\n print(ABC)\nelse:\n print(ABD)', "input_data = input()\nif input_data <= 999:\n print('ABC')\nprint('ABD')", "input_data = int(input())\nif input_data <= 999:\n print('ABC')\nelse:\n print('ABD')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s312864276', 's412023255', 's598982029', 's993409962', 's226654878'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [88, 82, 78, 72, 87] |
p03327 | u702582248 | 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. | ['s = int(input())\n\nif s > 999:\n print("ABD" + str(s - 999))\nelse:\n print("ABC" + str(s))', 's = int(input())\n\nif s > 999:\n print("ABD")\nelse:\n print("ABC")'] | ['Wrong Answer', 'Accepted'] | ['s360198852', 's713929926'] | [2940.0, 2940.0] | [18.0, 17.0] | [93, 69] |
p03327 | u707053380 | 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. | ['k=int(input())\nif k<999:\n print("ABC")\nelse:\n print("ABD")', 'k=int(input())\nif k<1000:\n print("ABC")\nelse:\n print("ABD")'] | ['Wrong Answer', 'Accepted'] | ['s458892367', 's919215374'] | [2940.0, 2940.0] | [18.0, 18.0] | [64, 65] |
p03327 | u709799578 | 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+1)[1:])", "N = int(input())\nif N < 1000:\n print('ABC')\nelse:\n print('ABD')"] | ['Wrong Answer', 'Accepted'] | ['s803955176', 's903853623'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 69] |
p03327 | u710907926 | 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(format(0xABC000 + int(input(), 16), 'x').upper())", "print(format(0xABC000 + int(input(), 16), 'x').upper()[:3])"] | ['Wrong Answer', 'Accepted'] | ['s105403271', 's050677483'] | [3060.0, 2940.0] | [18.0, 18.0] | [55, 59] |
p03327 | u721316601 | 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('ACB')\nelse:\n print('ADB')\n", "n = int(input())\n\nif n < 1000:\n print('ACB', end='')\nelse:\n print('ADB', end='')\n n -= 999\nprint(n)", "n = int(input())\n\nif n < 1000:\n print('ABC')\nelse:\n print('ABD')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s400997006', 's434893837', 's945109501'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [71, 108, 70] |
p03327 | u723583932 | 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. | ['#abc099 a\nn=int(input())\nans=""\nif n>=1000:\n ans="ABD"\n n-=999\nelse:\n ans="ABC"\ns=[0]*3\ns[0]=n//100\ns[1]=(n//10)%10\ns[2]=n%10\nprint(ans+str(s[0])+str(s[1])+str(s[2]))\n', '#abc099 a\nn=int(input())\nans=""\nif n>=1000:\n ans="ABD"\n n-=999\nelse:\n ans="ABC"\ns=[0]*3\ns[0]=n//100\ns[1]=(n//10)%10\ns[2]=n%10\nprint(ans+str(s[0])+str(s[1])+str(s[2]))\n', '#abc099 a\nn=int(input())\nif n>=1000:\n print("ABD")\nelse:\n print("ABC")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s088435202', 's393824460', 's279687555'] | [3060.0, 3060.0, 2940.0] | [17.0, 17.0, 18.0] | [176, 176, 77] |
p03327 | u724563664 | 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())\nsnList = []\n\ndef sixDev(N, times):\n n = 0\n if N == 0:\n global snList\n snList.append(times)\n return times\n while True:\n if 6**n <= N < 6**(n+1):\n q = N // 6**n\n sixDev(N % 6**n, times+q), nineDev(N % 6**n, times+q)\n break\n n += 1\n\ndef nineDev(N, times):\n n = 0\n if N == 0:\n global snList\n snList.append(times)\n return times\n while True:\n if 9**n <= N < 9**(n+1):\n q = N // 9**n\n sixDev(N % 9**n, times+q), nineDev(N % 9**n, times+q)\n break\n n += 1\n\n\ntimes = 0\na = sixDev(N, times)\nb = nineDev(N, times)\n\nprint(min(snList))\n', '#coding:utf-8\n\nN = int(input())\n\nif N <= 999:\n print("ABC")\n\nelse:\n print("ABD")\n'] | ['Wrong Answer', 'Accepted'] | ['s950986477', 's329789942'] | [3064.0, 2940.0] | [17.0, 17.0] | [708, 87] |
p03327 | u726896121 | 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. | ["i=input()\nif i<1000:\n print('ABC')\nelse:\n print('ABD')", "i=int(input())\nif i<1000:\n print('ABC')\nelse:\n print('ABD')"] | ['Runtime Error', 'Accepted'] | ['s922368923', 's265806353'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 61] |
p03327 | u731362892 | 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())\na='ABD'\nb=str(N+1)\nprint(a+b)", "N=int(input())\na='ABD'\nb='ABC'\nc=str(N+1)\nd=str(N)\nif N<=999:\n print(b+d)\nelse:\n print(a+c)", "N=int(input())\na='ABD'\nb=N+1\nprint(a+b)", "N=int(input())\na='ABD'\nb='ABC'\nif a<=999:\n print(b)\nelse:\n print(a)", "N=int(input())\na='ABD'\nb='ABC'\nc=str(N-999)\nd=str(N)\nif N<=999:\n print(b+d)\nelse:\n print(a+c)", "N=int(input())\na='ABD'\nb='ABC'\n\nif N<=999:\n print(b)\nelse:\n print(a)"] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s325310253', 's381571046', 's510387068', 's555030575', 's805522834', 's502834751'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [44, 93, 39, 69, 95, 70] |
p03327 | u736479342 | 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<10:\n print('ABC00' + str(n) )\nelif n<100:\n print('ABC0' + str(n))\nelif n<1000:\n print('ABC' + str(n))\nelse:\n print('ABD' + str(n+1))", "n = int(input())\n\nif n<1000:\n print('ABC')\nelse:\n print('ABD')"] | ['Wrong Answer', 'Accepted'] | ['s125432378', 's157239795'] | [9092.0, 9108.0] | [28.0, 25.0] | [159, 64] |
p03327 | u738898077 | 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 print("ABD") ', 'n = int(input())\nprint("ABD") if n>999 else print("ABC") '] | ['Wrong Answer', 'Accepted'] | ['s622897066', 's076016137'] | [2940.0, 2940.0] | [17.0, 17.0] | [57, 57] |
p03327 | u740047492 | 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()\nprint("ABC" if a<1000 else "ABD")', 'a=int(input())\nprint("ABC" if a<1000 else "ABD")'] | ['Runtime Error', 'Accepted'] | ['s073795156', 's912886454'] | [2940.0, 2940.0] | [17.0, 17.0] | [43, 48] |
p03327 | u756782069 | 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())\ndef maxize(A,co):\n if A > 0: \n num = [59049,46656,7776,6561,1296,729,216,81,36,9,6,1]\n for q in range(0,12):\n if A >= num[q]:\n num = num[q:]\n break\n \n B = A - num[0]\n \n co = co + 1\n maxize(B,co)\n else:\n print(co)\n \n return co\n \nmaxize(A,0)', 'N = int(input())\n\nif N >= 1000:\n print("ABD")\nelse:\n print("ABC")'] | ['Wrong Answer', 'Accepted'] | ['s522094447', 's453106669'] | [3064.0, 2940.0] | [17.0, 17.0] | [365, 71] |
p03327 | u759360502 | 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" + str(N))\nelse:\n print("ABD"+str(N))', 'N = int(input())\n\nif N <= 999:\n print("ABC")\nelse:\n print("ABD")'] | ['Wrong Answer', 'Accepted'] | ['s605751380', 's311134376'] | [2940.0, 2940.0] | [18.0, 18.0] | [86, 70] |
p03327 | u759412327 | 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-999))', 'a = int(input())\nif a < = 999:\n print("ABC")\nelse:\n print("ABD")', 'if int(input()) < = 999:\n print("ABC")\nelse:\n print("ABD")', 'if int(input())<=999:\n print("ABC")\nelse:\n print("ABD")'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s201670436', 's948800317', 's978091083', 's890910156'] | [2940.0, 2940.0, 2940.0, 8976.0] | [17.0, 17.0, 17.0, 25.0] | [82, 66, 60, 57] |
p03327 | u759651152 | 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\ndef main():\n \n N = int(input())\n\n if N < 1000:\n print('ABC{0:03d}'.format(N))\n else:\n print('ABD{0:03d}'.format(N-999))\n\n\nif __name__ == '__main__':\n main()", "#-*-coding:utf-8-*-\n\ndef main():\n \n N = int(input())\n\n if N < 1000:\n print('ABC')\n else:\n print('ABD')\n\n\nif __name__ == '__main__':\n main()"] | ['Wrong Answer', 'Accepted'] | ['s911446960', 's565124680'] | [2940.0, 2940.0] | [19.0, 18.0] | [213, 175] |
p03327 | u760961723 | 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).zfill(3))\nelse:\n print("ABD"+str(N-999).zfill(3))', 'N = int(input())\n\nif N <1000:\n print("ABC")\nelse:\n print("ABD")'] | ['Wrong Answer', 'Accepted'] | ['s461606298', 's252794856'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 65] |
p03327 | u762488523 | 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))\nelse :\n print("ABD" + str(A))\n\n\n', 'A=int(input())\nif A > 999:\n print("ABC" + A)\nelse :\n print("ABD" + A)\n', 'A=int(input())\nif A > 999:\n print("ABD" + str(A))\nelse :\n print("ABC" + str(A))\n\n\n', 'A=int(input())\nif A > 999:\n print("ABD" + str(A-1000+1))\nelse :\n print("ABC" + str(A))\n\n\n', 'A=int(input())\nif A > 999:\n print("ABD" )#+ str(A-1000))\nelse :\n print("ABC")# + str(A))\n\n\n'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s115042649', 's130828650', 's583974744', 's651442825', 's855085877'] | [2940.0, 2940.0, 2940.0, 2940.0, 3064.0] | [19.0, 17.0, 17.0, 17.0, 17.0] | [84, 72, 84, 91, 93] |
p03327 | u762540523 | 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("AABBDC")[int(input())<1000::2]', 'print("AABBDC"[int(input())<1000::2]', 'print("AABBDC"[int(input())<1000::2])'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s671366704', 's997718107', 's575185654'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [37, 36, 37] |
p03327 | u764956288 | 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. | ["s=input().zfill(3)\nprint('AB'+['C','D'][len(s)>3]+s[-3:])", "print('AB'+'CD'[len(input())>3])"] | ['Wrong Answer', 'Accepted'] | ['s527058619', 's751331372'] | [2940.0, 2940.0] | [18.0, 18.0] | [57, 32] |
p03327 | u765400831 | 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\nc = b - a\ny = 0\nfor i in range(c+1):\n y = y + i\n\nprint(y-b)\n', "N = int(input())\n\nif (N<=999) :\n print('ABC')\nelse :\n print('ABD')"] | ['Runtime Error', 'Accepted'] | ['s176891880', 's583096047'] | [2940.0, 2940.0] | [19.0, 17.0] | [97, 72] |
p03327 | u765590009 | 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())\n\nif (a < 1000) :\n print("ABC"+"{0:03d}".format(a))\nelse :\n print("ABD"+"{0:03d}".format(a%1000 + 1))', 'a = int(input())\n\nif (a < 1000) :\n print("ABC")\nelse :\n print("ABD")'] | ['Wrong Answer', 'Accepted'] | ['s761029163', 's236472585'] | [2940.0, 2940.0] | [17.0, 19.0] | [123, 74] |
p03327 | u767432305 | 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",end="")\n print(N)\nelse:\n print("ABD",end="")\n print(N-999)', 'N=input()\nif int(N)>=1000:\n n=int(N)-999\n N=str(n)\n name="ABD"\nelse:\n name="ABC"\nprint(name+N.zfill(3))', 'N=int(input())\nif N<=999:\n print("ABC")\nelse:\n print("ABD")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s236801771', 's933755336', 's744297332'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [109, 115, 66] |
p03327 | u768152935 | 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(int())\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'] | ['s328154060', 's344879611'] | [2940.0, 2940.0] | [17.0, 17.0] | [68, 68] |
p03327 | u772180901 | 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' + n)\nelse:\n print('ABD' + n)", "n = int(input())\nif(n <= 999):\n print('ABC' + str(n))\nelse:\n print('ABD' + str(n))", "n = int(input())\nif(n <= 999):\n print('ABC')\nelse:\n print('ABD')"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s155743393', 's360137945', 's259510992'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [78, 88, 70] |
p03327 | u773246942 | 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")', 'A = int(input())\n\nif A >= 1000:\n print("ABD")\nelse:\n print("ABC")\n'] | ['Runtime Error', 'Accepted'] | ['s859341790', 's919890846'] | [2940.0, 2940.0] | [17.0, 17.0] | [62, 68] |
p03327 | u773686010 | 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(str,input().split())\nprint(B+A)', 'moji = map(int,input().split())\nprint(("ABC","ABD")[moji >=1000])', 'moji = int(input())\nprint(("ABC","ABD")[moji >=1000])'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s901931162', 's920744276', 's587175793'] | [9028.0, 9032.0, 8820.0] | [20.0, 27.0, 29.0] | [41, 65, 53] |
p03327 | u777394984 | 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 input()<1000 else "ABD")', 'print("AB"+("C"if int(input())<1000else"D"))'] | ['Runtime Error', 'Accepted'] | ['s447384711', 's957240565'] | [2940.0, 3316.0] | [17.0, 21.0] | [39, 44] |
p03327 | u777923818 | 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 -*-\ndef inpl(): return map(int, input().split())\nN = int(input())\n\nif N >= 1000:\n print("ABD{:03}".format(N-999))\nelse:\n print("ABC{:03}".format(N))', 'N = int(input())\n\nif N >= 1000:\n print("ABD")\nelse:\n print("ABC")'] | ['Wrong Answer', 'Accepted'] | ['s007396591', 's347311025'] | [3060.0, 2940.0] | [42.0, 18.0] | [174, 71] |
p03327 | u779508975 | 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. | ["name=input()\nif name<=999:\n print('ABC')\nelif name>=1000:\n print('ABD')\nelse:\n print()\n", 'N=int(input())\nif 1<N<999:\n print("ABC")\nelse:\n print("ABD")', 'N=int(input())\nif N<1000:\n print("ABC")\nelse:\n print("ABD")'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s301720471', 's487358334', 's369667279'] | [8948.0, 9020.0, 9152.0] | [24.0, 24.0, 29.0] | [96, 66, 65] |
p03327 | u779728630 | 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 s = "ABC"\nelse:\n s = "ABD"\n N -= 999\n \nn = ""\nif N < 10:\n n = "00"\nelif N < 100:\n n = "0"\n\nprint(s + n + str(N))', 'N = int(input())\n\nif N < 1000:\n s = "ABC"\nelse:\n s = "ABD"\n\nprint(s)\n'] | ['Wrong Answer', 'Accepted'] | ['s023595197', 's271620178'] | [3060.0, 2940.0] | [19.0, 17.0] | [150, 71] |
p03327 | u780269042 | 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\nt = 0\npt =0\n\nfor I in range(1000):\n t+=1\n if (pt < a and b < t ):\n if( pt-a==t-b ):\n print(pt-a)\n break\n pt+=1\n', 'a,b = map(int, input().split())\n\nt = 0\npt = 0\nfor i in range(1000):\n t += i\n if a < pt and b < t:\n if (pt-a) == (t-b):\n print(pt-a)\n break\n pt = t\n\n \n', 's = int(input())\nif s>999:\n print("ABD")\nelse:\n print("ABC")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s630210551', 's844072492', 's911896342'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [210, 196, 65] |
p03327 | u782654209 | 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('ABD%03d' % (N-1000)) if N>=1000 else print('ABC%03d' % N)", "N = int(input())\nprint('ABD%03d' % (N-999)) if N>=1000 else print('ABC%03d' % N)", "N = int(input())\nprint('ABD{%03d}'.format(N-1000)) if N>=1000 else print('ABC{%03d}',format(N))", "print('ABD') if int(input())>=1000 else print('ABC')"] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s253643268', 's403006474', 's956227667', 's947632749'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 18.0] | [81, 80, 95, 52] |
p03327 | u787456042 | 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());print(("ABD"if n//1000else"ABC")+str(n%1000+n//1000).zfill(3))', 'print("ABD"if int(input())//1000else"ABC")'] | ['Wrong Answer', 'Accepted'] | ['s079438295', 's361595733'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 42] |
p03327 | u794173881 | 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())\nif n <=999:\n print("ABC")\nelse:\n print("ABD")'] | ['Wrong Answer', 'Accepted'] | ['s624408211', 's900104448'] | [2940.0, 2940.0] | [18.0, 18.0] | [12, 64] |
p03327 | u797550216 | 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 a = 'ABC'\n b = str(n).zfill(3)\nelse:\n a ='ABD'\n b = str(n-1000+1).zfill(3)\n \nprint(a+b)\n\n\n \n", "n = int(input())\n\nif n < 1000:\n a = 'ABC'\nelse:\n a ='ABD'\n \nprint(a)\n\n"] | ['Wrong Answer', 'Accepted'] | ['s867782256', 's154278925'] | [2940.0, 2940.0] | [17.0, 17.0] | [141, 79] |
p03327 | u802977614 | 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))', 'n=int(input())\nif n<1000:\n print("ABC")\nelse:\n print("ABD")'] | ['Wrong Answer', 'Accepted'] | ['s973476504', 's025929736'] | [2940.0, 2940.0] | [18.0, 18.0] | [75, 61] |
p03327 | u808569469 | 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 input("ABC")\nelse:\n input("ABD")\n', 'n = int(input())\n\nif 1 <= n <= 999:\n input("ABC")\nelse:\n input("ABD")', "n = int(input())\n\nif n < 1000:\n input('ABC')\nelse:\n input('ABD')", 'n = int(input())\n\nif n < 1000:\n print("ABC")\nelse:\n print("ABD")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s023664240', 's060727908', 's468688167', 's270861556'] | [9072.0, 9124.0, 9048.0, 9076.0] | [26.0, 27.0, 23.0, 27.0] | [71, 74, 70, 71] |
p03327 | u811176339 | 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\ncontest = "ABC"\nif n >= 1000:\n contest = "ABD"\n\nprint("{}{:0>3}".format(contest,n%1000))', 'n = int(input())\n\ncontest = "ABC"\nif n >= 1000:\n contest = "ABD"\n\nprint(contest)\n'] | ['Wrong Answer', 'Accepted'] | ['s624175370', 's607423788'] | [2940.0, 2940.0] | [17.0, 18.0] | [109, 84] |
p03327 | u812958204 | 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())\nb_index = b-a\na_index = b_index - 1\nget_height = lambda n: n*(n+1)/2\n\na_height = get_height(a_index)\nb_height = get_height(b_index)\nsnow_height = b_height - b\nprint(int(snow_height))', "N = int(input())\nif N >= 1000:\n print('ABD')\nelse:\n print('ABC')"] | ['Runtime Error', 'Accepted'] | ['s166810290', 's845729813'] | [3060.0, 3316.0] | [17.0, 21.0] | [215, 70] |
p03327 | u816919571 | 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))', 'print("ABC" if int(input()) < 1000 else "ABD")'] | ['Wrong Answer', 'Accepted'] | ['s646608259', 's832371574'] | [2940.0, 2940.0] | [18.0, 18.0] | [79, 46] |
p03327 | u816935184 | 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\tN=list(str(N))\n\tif len(N)<3:\n\t\twhile len(N)!=3:\n\t\t\tlist(N)\n\t\t\tN.insert(0,"0")\n\tN=\'\'.join(N)\n\tprint(\'ABC\'+N)\nelse:\n\tN=N-999\n\tN=list(str(N))\n\tif len(N)<3:\n\t\twhile len(N)!=3:\n\t\t\tlist(N)\n\t\t\tN.insert(0,"0")\n\tN=\'\'.join(N)\n\t\n\tprint(\'ABD\'+str(N))', "N=int(input())\n\nif N<1000:\n\tN=list(str(N))\n\tif len(N)<3:\n\t\twhile len(N)==3:\n\t\t\tlist(N)\n\t\t\tN.insert(0,0)\n\tN=''.join(N)\n\tprint('ABC'+str(N))\nelse:\n\tN=N-999\n\tN=list(str(N))\n\tif len(N)<3:\n\t\twhile len(N)==3:\n\t\t\tlist(N)\n\t\t\tN.insert(0,0)\n\tN=''.join(N)\n\tprint('ABD'+str(N))", "N=int(input())\nif N<1000: print('ABC')\nelse: print('ABD')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s335157489', 's557789744', 's536349801'] | [3064.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [266, 265, 57] |
p03327 | u819910751 | 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().split())\n\nif N < 1000:\n print('ABC')\nelse:\n print('ABD')\n", "N = int(input())\n\nif N < 1000:\n print('ABC')\nelse:\n print('ABD')\n"] | ['Runtime Error', 'Accepted'] | ['s495608784', 's516450461'] | [9012.0, 8992.0] | [23.0, 24.0] | [79, 71] |
p03327 | u820351940 | 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', '\nprint("ABC" if int(input()) < 1000 else "ABD")\n'] | ['Wrong Answer', 'Accepted'] | ['s095092586', 's767315604'] | [2940.0, 3060.0] | [17.0, 19.0] | [1, 48] |
p03327 | u822738981 | 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 = input()\n\nprint('ABD' + n if int(n) >= 1000 else 'ABC' + n)", "# -*- coding: utf-8 -*-\n\nn = input()\n\nprint('ABD' if int(n) >= 1000 else 'ABC')"] | ['Wrong Answer', 'Accepted'] | ['s269686729', 's002727878'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 79] |
p03327 | u823885866 | 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\nimport math\nimport itertools\nimport collections\nimport heapq\nimport re\nimport numpy as np\n\nrr = lambda: sys.stdin.readline().rstrip()\nrs = lambda: sys.stdin.readline().split()\nri = lambda: int(sys.stdin.readline())\nrm = lambda: map(int, sys.stdin.readline().split())\nrl = lambda: list(map(int, sys.stdin.readline().split()))\ninf = float('inf')\nmod = 10**9 + 7\n\nn = ri()\nif n > 999:\n print(f'ABC{n}')\nelse:\n print(f'ABD{n-999}')\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", "import sys\nimport math\nimport itertools\nimport collections\nimport heapq\nimport re\nimport numpy as np\n\nrr = lambda: sys.stdin.readline().rstrip()\nrs = lambda: sys.stdin.readline().split()\nri = lambda: int(sys.stdin.readline())\nrm = lambda: map(int, sys.stdin.readline().split())\nrl = lambda: list(map(int, sys.stdin.readline().split()))\ninf = float('inf')\nmod = 10**9 + 7\n\nprint('ABD' if ri() > 999 else 'ABC')\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"] | ['Wrong Answer', 'Accepted'] | ['s523508452', 's779554668'] | [27160.0, 27088.0] | [114.0, 114.0] | [455, 424] |
p03327 | u824077347 | 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\nnum = []\ncnt = 1\n\nwhile True:\n tmp = 6**cnt\n if tmp <= 100000:\n num.append(tmp)\n cnt = cnt + 1\n else:\n break\n\ncnt = 1\n\nwhile True:\n tmp = 9**cnt\n if tmp <= 100000:\n num.append(tmp)\n cnt = cnt + 1\n else:\n break\n\nnum.sort()\n\ndef dfs(N, num,d):\n m = float('inf')\n if N < 6:\n return N + d\n for i in range(N):\n if N < num[i]:\n break\n for k in range(i):\n for j in range(N):\n if N < num[k] * j:\n break\n tmp = dfs(N - (j-1)*num[k], num,d+j-1)\n m = min(tmp, m)\n return m\n\nans = dfs(N, num,0)\nprint(ans)", "N = int(input())\n\nprint('ABD' if N//1000 else 'ABC')"] | ['Wrong Answer', 'Accepted'] | ['s019110783', 's641730145'] | [3064.0, 2940.0] | [18.0, 18.0] | [658, 52] |
p03327 | u824132304 | 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())\nb=int(input())\nprint((b-a-1)*(b-a)/2-a)', 'a=int(input())\nb=int(input())\nprint((b-a-1)*(b-a)//2-a)', "a=input()\nif a>999:\n print('ABD')\nelse:\n print('ABC')", "a=int(input())\nif (a>999):\n print('ABD')\nelse:\n print('ABC')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s759955596', 's983857679', 's985932997', 's249725720'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [54, 55, 59, 66] |
p03327 | u826927241 | 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\nimport sys\n\nN = int(sys.stdin.readline())\n\nqueue = [(N, 0)]\ncheck = set()\nMAX_CNT = 9999999\nmin_cnt = MAX_CNT\n\ndef add_queue(X):\n if X not in check:\n check.add(X)\n queue.append(X)\n\nwhile queue:\n N, cnt = queue.pop()\n if N >= 9:\n v = int(math.pow(9, int(math.log(N, 9))))\n if N - v >= 6 and cnt < min_cnt:\n add_queue((N - v, cnt + 1))\n elif cnt + (N - v) + 1 < min_cnt:\n min_cnt = cnt + int(N - v) + 1\n if N >= 6:\n v = int(math.pow(6, int(math.log(N, 6))))\n if N - v >= 6 and cnt < min_cnt:\n add_queue((N - v, cnt + 1))\n elif cnt + (N - v) + 1 < min_cnt:\n min_cnt = cnt + int(N - v) + 1\n\nif min_cnt == MAX_CNT:\n print(N)\nelse:\n print(min_cnt)', 'import sys\n\na, b = tuple([int(x)for x in sys.stdin.readline().split()])\ndiff = max(a, b) - min(a, b)\n\nc = 0\nfor i in range(1, 1000):\n if diff == i:\n print(c - a)\n break\n c += i', "import sys\n\nN = int(sys.stdin.readline()) \nif N < 1000:\n print('ABC')\nelse:\n print('ABD')"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s721863369', 's932343049', 's366128849'] | [3188.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0] | [771, 196, 246] |
p03327 | u827241372 | 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() -> None:\n N = int(input())\n print(f(N))\n\n\ndef f(N: int) -> str:\n s = ""\n if N < 1000:\n s = "ABC{}"\n else:\n s = "ABD{}"\n\n return s\n\n\n\nif __name__ == \'__main__\':\n main()\n', 'def main() -> None:\n N = int(input())\n print(f(N))\n\n\ndef f(N: int) -> str:\n s = ""\n if N < 1000:\n s = "ABC"\n else:\n s = "ABD"\n\n return s\n\n\n\nif __name__ == \'__main__\':\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s744578076', 's150800407'] | [2940.0, 2940.0] | [17.0, 17.0] | [214, 210] |
p03327 | u829411282 | 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())\n\nif n<1000:\n print("ABC")\nelse:\n print("ABD")'] | ['Wrong Answer', 'Accepted'] | ['s092933612', 's418485222'] | [2940.0, 2940.0] | [17.0, 17.0] | [67, 68] |
p03327 | u835482198 | 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 <= 999:\n print('ABC{0:03}'.format(n))\nelse:\n print('ABD{0:03}'.format(n))\n", "n = int(input())\nif 1 <= n <= 999:\n print('ABC')\nelse:\n print('ABD')\n"] | ['Wrong Answer', 'Accepted'] | ['s543616995', 's402989876'] | [2940.0, 2940.0] | [19.0, 18.0] | [107, 75] |
p03327 | u835937527 | 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\tprint('ABC')\nelse:\n\tprint('ABD')", "a=input()\nif a<1000:\n\tprint('ABC')\nelse:\n\tprint('ABD')", "a=int(input())\nif a<1000:\n\tprint('ABC')\nelse:\n\tprint('ABD')\t\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s034566955', 's630716930', 's546794667'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0] | [54, 54, 61] |
p03327 | u847033024 | 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' + str(a))\nelse:\n a = a - 999\n print('ABD' + str(a))", "a = int(input())\nif a < 1000:\n print('ABC' + str(a))\nelse:\n a = a - 999\n if a >= 100:\n \tprint('ABD' + str(a))\n elif a >=10:\n print('ABD0' + str(a))\n else:\n print('ABD00' + str(a))", "a = int(input())\nif a < 1000:\n print('ABC')\nelse:\n print('ABD')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s160372222', 's867155740', 's483826504'] | [9152.0, 9080.0, 9156.0] | [28.0, 26.0, 27.0] | [97, 191, 65] |
p03327 | u855985627 | 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=eval('-'+input().replace(' ','+'))\ns=0\nfor i in range(n):\n s+=i\nprint(s)", 'print("ABC" if int(input())<1000 else "ABD")'] | ['Wrong Answer', 'Accepted'] | ['s348365018', 's109606254'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 44] |
p03327 | u859897687 | 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 input()>999 else'ABC')", "print('ABD'if int(input())>999else'ABC')"] | ['Runtime Error', 'Accepted'] | ['s245089934', 's579443741'] | [2940.0, 2940.0] | [17.0, 17.0] | [36, 40] |
p03327 | u863442865 | 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\ndef main():\n import sys\n input = sys.stdin.readline\n sys.setrecursionlimit(10000000)\n from collections import Counter, deque\n #from collections import defaultdict\n from itertools import combinations, permutations, accumulate\n #from itertools import product\n from bisect import bisect_left,bisect_right\n import heapq\n from math import floor, ceil\n #from operator import itemgetter\n\n #inf = 10**17\n #mod = 1000000007\n\n N = int(input())\n if N<=999:\n print('ABC{:03d}'.format(N))\n else:\n print('ABD{:03d}'.format(N-999))\n\nif __name__ == '__main__':\n main()", "\n\ndef main():\n import sys\n input = sys.stdin.readline\n sys.setrecursionlimit(10000000)\n from collections import Counter, deque\n #from collections import defaultdict\n from itertools import combinations, permutations, accumulate\n #from itertools import product\n from bisect import bisect_left,bisect_right\n import heapq\n from math import floor, ceil\n #from operator import itemgetter\n\n #inf = 10**17\n #mod = 1000000007\n\n N = int(input())\n if N<=999:\n print('ABC')\n else:\n print('ABD')\n\nif __name__ == '__main__':\n main()"] | ['Wrong Answer', 'Accepted'] | ['s116430362', 's195235088'] | [3316.0, 3444.0] | [22.0, 21.0] | [696, 660] |
p03327 | u865413330 | 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. | ['num = str(input())\n\nnewNum = (3 - len(num)) * "0" + num\n\nif 1000 <= int(num):\n print("ABD" + str(int(newNum) - 1000))\nelse:\n print("ABC" + newNum)\n', 'num = int(input())\n\nif 1000 <= num:\n print("ABD")\nelse:\n print("ABC")'] | ['Wrong Answer', 'Accepted'] | ['s998860362', 's021650801'] | [2940.0, 2940.0] | [19.0, 17.0] | [153, 75] |
p03327 | u869154953 | 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 =1<N<=999:\n\tprint("ABC")\nelif 999<N<=1998:\n \tprint("ABD")\n', 'N=int(input())\n\nif N<=999:\n\tprint("ABC")\nelse:\n\tprint("ABD")\n'] | ['Runtime Error', 'Accepted'] | ['s125959144', 's581152156'] | [8864.0, 8900.0] | [27.0, 30.0] | [77, 61] |
p03327 | u869708025 | 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 = int(b - a)\nd =int( c * (c - 1) // 2 + c -b)\nprint(d)\n', "N = int(input())\nif N < 1000:\n print('ABC')\nelse:\n print('ABD' )"] | ['Runtime Error', 'Accepted'] | ['s697496333', 's810187896'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 70] |
p03327 | u875855656 | 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 int(n)<1000:\n ans="ABC"+n\nelse:\n ans="ABD"+n[1:]\nprint(ans)', 'n=input()\nif int(n)<1000:\n ans="ABC"+n\nelse:\n ans="ABD"+str(int(n)-999).zfill(3)\nprint(ans)', 'n=input()\nif int(n)<1000:\n print("ABC")\nelse:\n print("ABD")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s196608022', 's663352403', 's667781228'] | [2940.0, 3060.0, 2940.0] | [17.0, 18.0, 18.0] | [74, 93, 62] |
p03327 | u880044919 | 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. | ['word = input()\nnumber = int(word)\nif number <= 999:\n print(ABC)\nif number > 999:\n print(ABD)', 'word = input()\nnumber = int(word)\nif number <= 999:\n print("ABC")\nif number > 999:\n print("ABD")'] | ['Runtime Error', 'Accepted'] | ['s359498679', 's309876994'] | [2940.0, 2940.0] | [17.0, 17.0] | [94, 98] |
p03327 | u885899351 | 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).zfill(3))if n<1000 else ("ABD"+str(n-999).zfill(3)))', 'print("ABC" if int(input())<1000 else "ABD")'] | ['Wrong Answer', 'Accepted'] | ['s270323787', 's194760546'] | [2940.0, 2940.0] | [18.0, 17.0] | [87, 44] |
p03327 | u894694822 | 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")\nelse:\n print("ABD)', 'a=int(input())\nif a<=999:\n print("ABC")\nelse:\n print("ABD")'] | ['Runtime Error', 'Accepted'] | ['s538707385', 's603937997'] | [2940.0, 2940.0] | [18.0, 17.0] | [60, 61] |
p03327 | u895515293 | 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(("ABD{}" if N//1000 else "ABC{}").format(((N-1)%999)+1))\n', 'print(((int(input())-1)%999)+1)', 'print("ABD" if int(input())//1000 else "ABC")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s774945198', 's793920396', 's889345182'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 20.0] | [78, 31, 46] |
p03327 | u896741788 | 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())>999 else "ABC)', 'print("ABD" if int(input())>999 else "ABC")'] | ['Runtime Error', 'Accepted'] | ['s166842299', 's440949215'] | [8956.0, 9156.0] | [21.0, 24.0] | [42, 43] |
p03327 | u905895868 | 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 contest_num <= 999:\n print('ABC' + str(contest_num).zfill(3))\nelif contest_num >= 1000:\n over_thousand_num_fix = contest_num - 999\n print('ABD' + str(over_thousand_num_fix).zfill(3))", "contest_num = int(input())\n\nif contest_num <= 999:\n print('ABC' + str(contest_num).zfill(3))\nelif contest_num >= 1000:\n over_thousand_num_fix = contest_num - 999\n print('ABD' + str(over_thousand_num_fix).zfill(3))", "contest_num = int(input())\n\nif contest_num <= 999:\n print('ABC')\nelif contest_num >= 1000:\n print('ABD')"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s067515852', 's556071705', 's708877515'] | [9036.0, 9088.0, 9140.0] | [21.0, 29.0, 29.0] | [194, 222, 110] |
p03327 | u909716307 | 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{:03}'.format(n)if n<1000else'ABD{:03}'.format(n-999))\n", "print('ABD'if int(input())>999else'ABC')"] | ['Wrong Answer', 'Accepted'] | ['s560889510', 's786356859'] | [9140.0, 9096.0] | [28.0, 23.0] | [80, 40] |
p03327 | u912862653 | 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\tprint('ABC'\nelse:\n\tprint('ABD')", "N = int(input())\nif N<=999:\n\tprint('ABC')\nelse:\n\tprint('ABD')"] | ['Runtime Error', 'Accepted'] | ['s901793088', 's506299925'] | [2940.0, 3444.0] | [17.0, 18.0] | [60, 61] |
p03327 | u918601425 | 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. | ['x=int(input())\na=x//999\nb=x%999+1000\nB=str(b)\nC=B[1:]\nif a==0:\n print("ABC"+C)\nelse:\n print("ABD"+C)\n', 'x=int(input())\na=x//999\nif a==0:\n print("ABC")\nelse:\n print("ABD")\n', 'x=int(input())\na=x//999\nb=x%999+1000\nB=text(b)\nC=B[1:]\nif a==0:\n print("ABC"+C)\nelse:\n print("ABD"+C)\n', 'x=int(input())\na=x//1000\nif a==0:\n print("ABC")\nelse:\n print("ABD")\n'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s687767439', 's877315363', 's983794052', 's422880239'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [103, 69, 104, 70] |
p03327 | u923794601 | 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()\n\nif len(N) < 4:\n N = int(N)\n print("ABC{0:03d}".format(N))\nelse:\n N = int(N[1:])\n N = N + 1\n print("ABD{0:03d}".format(N))', 'N = input()\n\nif len(N) < 4:\n N = int(N)\n print("ABC{0}".format(N))\nelse:\n N = int(N)\n N = N - 1\n print("ABD{0}".format(N))', 'N = input()\n\nif len(N) < 4:\n print("ABC")\nelse:\n print("ABD")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s656128234', 's694209612', 's024981556'] | [3060.0, 2940.0, 2940.0] | [41.0, 17.0, 17.0] | [149, 137, 67] |
p03327 | u925353288 | 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()\n\nif N >= 1000:\n print( 'ABD' )\n\nelse :\n print( 'ABC' )\n", "N = int(input())\n\nif N >= 1000:\n print( 'ABD' )\n\nelse :\n print( 'ABC' )\n"] | ['Runtime Error', 'Accepted'] | ['s256075053', 's239718135'] | [9084.0, 9056.0] | [27.0, 26.0] | [73, 78] |
p03327 | u928784113 | 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())\nL1 = [1]\nL2 = [6**i for i in range(1,10) if 6**i < 100000]\nL3 = [9**i for i in range(1,10) if 9**i < 100000]\nL = L1 + L2 + L3\nL.sort(reverse = True)\ndef paypay(N):\n if N < 6:\n return N\n else:\n ans = 0\n while N > 0:\n for i in L:\n if N >= i:\n N = N - i\n ans += 1\n break\n return ans\n\n\nprint(min(paypay(N),paypay(N-6)+1,paypay(N-9)+1) if N > 6 else N)', '# -*- coding: utf-8 -*-\nN = int(input())\nif N > 1000:\n print(ABD)\nelse:\n print(ABC)', 'N = int(input())\n\nif N >= 1000:\n print("ABD")\nelse:\n print("ABC")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s045551638', 's827077381', 's293115470'] | [3064.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0] | [577, 85, 71] |
p03327 | u930480241 | 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()\nnum=int(N[3:])\n\nif num>999:\n print("ABD")\nelse:\n print("ABC")', "N = input()\nnum = int(N)\nif num < 1000:\n print('ABC')\nelse:\n print('ABD')"] | ['Runtime Error', 'Accepted'] | ['s812409508', 's758598899'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 79] |
p03327 | u932465688 | 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 (N <= 9):\n print('ABC00'+str(N))\n elif (10 <= N <= 99):\n print('ABC0'+str(N))\n else:\n print('ABC'+str(N))\nelse:\n if (N-999 <= 9):\n print('ABD00'+str(N-999))\n elif(10 <= N-999 <= 99):\n print('ABD0'+str(N-999))\n else:\n print('ABD'+str(N-999))", "N = int(input())\nif (N <= 999):\n print('ABC')\nelse:\n print('ABD')"] | ['Wrong Answer', 'Accepted'] | ['s254699017', 's963484581'] | [3064.0, 2940.0] | [17.0, 17.0] | [300, 67] |
p03327 | u934868410 | 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().split())\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'] | ['s558966576', 's559504576'] | [2940.0, 2940.0] | [17.0, 19.0] | [73, 65] |
p03327 | u937303520 | 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()\n\nif N <= str(999):\n print('ABC')\n\nif N >= str(1000):\n print('ABD')", "N = int(input())\n\nif N < 1000:\n print('ABC')\nelse:\n print('ABD')"] | ['Wrong Answer', 'Accepted'] | ['s206391607', 's693423708'] | [9036.0, 9100.0] | [29.0, 27.0] | [84, 70] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.