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 |
|---|---|---|---|---|---|---|---|---|---|---|
p03326 | u207707177 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['n,m = [int(i) for i in input().split()]\n\ncakes = []\nranking = [[] for i in range(8)]\nranking2 = []\n\nfor i in range(n):\n cakes.append(list(map(int,input().split())))\n\na = 0\nfor i in range(2):\n for j in range(2):\n for k in range(2):\n for x in range(n):\n kirei = cakes... | ['Runtime Error', 'Accepted'] | ['s183723023', 's473590769'] | [3064.0, 3316.0] | [18.0, 27.0] | [1774, 552] |
p03326 | u218843509 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['from itertools import accumulate\n\nn, m = map(int, input().split())\na = [list(map(int, input().split())) for _ in range(n)]\nx = list(accumulate([a[i][0] for i in range(n)]))\ny = list(accumulate([a[i][1] for i in range(n)]))\nz = list(accumulate([a[i][2] for i in range(n)]))\n\n\n#\treturn abs(x[0]) + abs(x[1]) + ... | ['Wrong Answer', 'Accepted'] | ['s667980680', 's136444571'] | [236880.0, 3444.0] | [1785.0, 25.0] | [991, 1081] |
p03326 | u242196904 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['N,M = map(int,input().split())\n\nx = []\ny = []\nz = []\nfor k in range(N):\n xx,yy,zz = map(int,input().split())\n x.append(xx)\n y.append(yy)\n z.append(zz)\n\nite = [-1,1]\n\ns_ori = np.stack([x,y,z])\ncc = []\nfor i in ite:\n for j in ite:\n for k in ite:\n s = s_ori.copy()\n ... | ['Runtime Error', 'Accepted'] | ['s054472585', 's906242281'] | [3064.0, 21644.0] | [21.0, 1411.0] | [504, 524] |
p03326 | u299869545 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['N,M = list(map(int, input().split()))\ncakes = []\nfor i in range(N):\n cakes.append(list(map(int, input().split())))\n\nans = 0\n\nvalues = []\nfor x,y,z in cakes:\n values.append(x+y+z)\nvalues.sort()\nvalues = values[::-1]\nans = max(ans, sum(values[:M]))\n\nvalues = []\nfor x,y,z in cakes:\n values.appen... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s346248807', 's459026374', 's629665944', 's965646875', 's335284441'] | [3316.0, 3316.0, 3484.0, 3316.0, 3316.0] | [25.0, 21.0, 35.0, 21.0, 25.0] | [1161, 1471, 1489, 1483, 1159] |
p03326 | u306142032 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['n, m = map(int, input().split())\n\nx = []\nma = [0, 0, 0]\nwa = 0\nsakujo_cnt = 0\nfor i in range(n):\n x.append(list(map(int, input().split())))\n\nfor i in range(n):\n for j in range(3):\n ma[j] += x[i][j]\n wa = abs(ma[0]) + abs(ma[1]) + abs(ma[2])\n\nfor i in range(n):\n for j in range(3):... | ['Wrong Answer', 'Accepted'] | ['s867689268', 's773084216'] | [3188.0, 3444.0] | [26.0, 59.0] | [550, 423] |
p03326 | u334712262 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ["# -*- coding: utf-8 -*-\nimport bisect\nimport heapq\nimport math\nimport random\nimport sys\nfrom collections import Counter, defaultdict\nfrom decimal import ROUND_CEILING, ROUND_HALF_UP, Decimal\nfrom functools import lru_cache, reduce\nfrom itertools import combinations, combinations_with_replacement, product, pe... | ['Wrong Answer', 'Accepted'] | ['s057845259', 's110199099'] | [7908.0, 8004.0] | [2104.0, 244.0] | [2049, 1389] |
p03326 | u335295553 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['N, M = map(int, input().split())\nxyz = [list(map(int, input().split())) for i in range(N)]\ntmp = [[0]*N for i in range(8)]\n\nfor n, _ in enumerate(xyz):\n x,y,z = _\n tmp[0][n] = x+y+z\n tmp[1][n] = x+y-z\n tmp[2][n] = x-y+z\n tmp[3][n] = x-y-z\n tmp[4][n] = -x+y+z\n tmp[5][n] = -x+y-z\n tm... | ['Wrong Answer', 'Accepted'] | ['s683431180', 's986131287'] | [3700.0, 3700.0] | [27.0, 25.0] | [467, 467] |
p03326 | u357529599 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['N, M = map(int, input().split())\nx, y, z = [], [], []\n\nfor i in range(N):\n xi, yi, zi = map(int, input().split())\n x.append(xi)\n y.append(yi)\n z.append(zi)\n\nbits = [[1,1,1], [1,1,-1], [1,-1,1], [1,-1,-1], [-1,1,1], [-1,1,-1], [-1,-1,1], [-1,-1,-1]]\n\n\nprint(x)\nresults = []\nfor i in range(len(... | ['Wrong Answer', 'Accepted'] | ['s580994459', 's976378103'] | [3568.0, 3316.0] | [28.0, 29.0] | [542, 531] |
p03326 | u380524497 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['import numpy as np\n\nn, m = map(int, input().split())\nDP = [[np.array([0, 0, 0]) for j in range(m+1)] for i in range(8)]\n\nfor _ in range(n):\n xyz = list(map(int, input().split()))\n for sign in range(8):\n check = np.zeros(3, dtype=np.int)\n for i in range(3):\n if (sign >> i) & 1:... | ['Time Limit Exceeded', 'Wrong Answer', 'Accepted'] | ['s359849035', 's626794521', 's716443227'] | [21448.0, 14820.0, 3188.0] | [2108.0, 2109.0, 31.0] | [752, 527, 659] |
p03326 | u388697579 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['b = input().split()\nl = np.zeros((int(b[0]), 3))\nfor i in range(int(b[0])):\n\tbuf = input().split()\n\tfor j in range(3):\n\t\tl[i][j] = int(buf[j])\nr = 0\n\nfor p in range(8):\n\trbuf = 0\n\tbox = ((-1)**p)*l.T[0]+((-1)**(p//2))*l.T[1]+((-1)**(p//4))*l.T[2]\n\t#print((-1)**p, (-1)**(p//2), (-1)**(p//4))\n\tfor i... | ['Runtime Error', 'Accepted'] | ['s764235618', 's586838284'] | [3064.0, 21124.0] | [17.0, 1655.0] | [431, 380] |
p03326 | u461454424 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['#input\nN, M = map(int, input().split())\nx = []\ny = []\nz = []\nfor i in range(N):\n x_temp, y_temp, z_temp = map(int, input().split())\n x.append(x_temp)\n y.append(y_temp)\n z.append(z_temp)\n\n#output\n#+++\na1 = [p+q+r for p, q, r in zip(x, y, z)]\na1.sort(reverse = True)\nb1 = np.sum(a1[:M])\n\n#++... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s169693779', 's927417468', 's905331741'] | [3192.0, 3192.0, 3564.0] | [21.0, 22.0, 24.0] | [981, 1045, 958] |
p03326 | u472821430 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ["import itertools\nimport numpy as np\ndef main():\n n, m = map(int, input().split())\n x = np.zeros((n, 3))\n for i in range(n):\n x[i, 0], x[i, 1], x[i, 2] = map(int, input().split())\n output = 0\n for i in list(itertools.combinations(range(n), m)):\n r = abs(np.sum(x[i, 0])) + abs(np.sum(x[i, 1])) + abs... | ['Wrong Answer', 'Accepted'] | ['s653427114', 's479487979'] | [1483464.0, 3444.0] | [2197.0, 23.0] | [419, 901] |
p03326 | u473952728 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['from itertools import combinations\n\ndef score (cids):\n x = abs(sum(data[cid][0] for cid in cids))\n y = abs(sum(data[cid][1] for cid in cids))\n z = abs(sum(data[cid][2] for cid in cids))\n return x + y + z\n\nn, m = map(int, input().split())\ndata = list([int(x) for x in input().split()] for _ in rang... | ['Runtime Error', 'Accepted'] | ['s999353807', 's109681527'] | [3064.0, 3292.0] | [17.0, 36.0] | [372, 369] |
p03326 | u476604182 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ["import numpy as np\nN, M, *L = map(int, open('0').read().split())\nL = [np.array(m) for m in zip(*[iter(L)]*3)]\nans = 0\nfor i in range(8):\n X = []\n c = []\n for j in range(3):\n if i%2==1:\n c.append(-1)\n else:\n c.append(1)\n i >>= 1\n c = np.array(c)\n X = list(map(lambda x:sum(x*c), L)... | ['Runtime Error', 'Accepted'] | ['s327441467', 's715190433'] | [12504.0, 12564.0] | [151.0, 189.0] | [368, 366] |
p03326 | u496344397 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | [", M = list(map(int, input().split()))\n\ncakes = [] \nfor _ in range(N):\n cakes.append(list(map(int, input().split())))\n\nmemo = dict()\n\ndef pick_cake(picked):\n key = ','.join([str(p) for p in sorted(picked)])\n if key in memo: \n return memo[key]\n\n if len(picked) == M:\n memo[key] =... | ['Runtime Error', 'Accepted'] | ['s103015459', 's419167911'] | [3064.0, 3400.0] | [17.0, 421.0] | [573, 461] |
p03326 | u497625442 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['import functools # Python3 \nN,M = map(int,input().split())\nx, y, z = [0] * N, [0] * N, [0] * N\nfor i in range(N):\n\tx[i], y[i], z[i] = map(int,input().split())\n\n# N, M = 5, 3\n# x = [1, -4, 7, -10, 13]\n\n\nppp = [ x[i]+y[i]+z[i] for i in range(N)]\npmp = [ x[i]-y[i]+z[i] for i in range(N)]\nppm = [ x[i]+y[i]-... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s050919154', 's441458970', 's859209295', 's967655239', 's964129016'] | [4064.0, 4064.0, 3064.0, 4188.0, 3700.0] | [30.0, 30.0, 18.0, 106.0, 30.0] | [768, 764, 726, 754, 995] |
p03326 | u509368316 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['n,m=map(int, input().split())\nimport numpy as np\nxyz=np.array([list(map(int,input().split())) for i in range(n)])\nans=0\nif m>0:\n for i in range(8):\n a=np.dot(xyz,np.array(((-1)**i,(-1)**(i//2),(-1)**(i//4))))\n print(np.sort(a)[-m:])\n ans=max(ans,np.sum(np.sort(a)[-m:]))\nprint(ans)', '... | ['Wrong Answer', 'Accepted'] | ['s732399038', 's356115294'] | [13224.0, 12524.0] | [186.0, 153.0] | [305, 274] |
p03326 | u536377809 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ["[N,M]=list(map(int,input().split()\n )\n )\nXYZ=[[int(i) for i in input().split()] for i in range(N)] \nmaxabs=0\n\nfor i in range(8):\n pm=list(map(int,format(i, 'b')))\n pm=[0,]*(3-len(pm))+pm\n\n newXYZ=sorted([[item[0]*(-1)**pm[0],item[1]*(-1)**pm[1],item[2]*(-1)**pm[2]] for item in XYZ],... | ['Wrong Answer', 'Accepted'] | ['s911472974', 's768483742'] | [3700.0, 3700.0] | [34.0, 32.0] | [563, 619] |
p03326 | u556225812 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['N, M = map(int, input().split())\nlst = []\nfor i in range(N):\n a, b, c = map(int, input().split())\n lst.append([a, b, c])\nans = []\n\nfor i in [-1, 1]:\n for j in [-1, 1]:\n for k in [-1, 1]:\n total = []\n for l in range(N):\n total.append(lst[i][0]*i + lst[i... | ['Wrong Answer', 'Accepted'] | ['s141963691', 's012413867'] | [3280.0, 3316.0] | [25.0, 27.0] | [425, 384] |
p03326 | u556487440 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['n,m = map(int,input().split())\nx = []\ny = []\nz = []\nfor i in range(n):\n a,b,c = map(int,input().split())\n x.append([a,b,c])\n y.append([-1*a,-1*b,-1*c])\n\n\nmax = 0\nfor i in range(2):\n for j in range(2):\n for k in range(2):\n list = []\n sum = 0\n for l in... | ['Wrong Answer', 'Accepted'] | ['s576778857', 's939996541'] | [3828.0, 3444.0] | [35.0, 30.0] | [924, 859] |
p03326 | u562016607 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['import itertools\nN,M=map(int,input().split())\nx=[0 for i in range(N)]\ny=[0 for i in range(N)]\nz=[0 for i in range(N)]\nfor i in range(N):\n x[i],y[i],z[i]=map(int,input().split())\nw=[[0 for i in range(N)] for i in range(8)]\nS=list(itertools.product([-1,1],repeat=3))\ndef num(inp):\n res=0\n for i in ra... | ['Runtime Error', 'Accepted'] | ['s104385011', 's127822833'] | [3064.0, 3188.0] | [17.0, 27.0] | [596, 531] |
p03326 | u570944601 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['n,m = map(int, input().split())\nx = [tuple(map(int, input().split())) for _ in range(n)]\nfrom itertools import *\nres = 0\nfor a in product([-1, 1], [-1, 1], [-1, 1]):\n res = max(res, sum(sorted(((sum(i*j for i,j in zip(a,t)) for t in x),reverse=True)[:m]))\nprint(res)', 'n,m = map(int, input().split())\nx = [tup... | ['Runtime Error', 'Accepted'] | ['s568553583', 's638723244'] | [2940.0, 3276.0] | [18.0, 30.0] | [267, 236] |
p03326 | u606045429 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['N, M, *XYZ = map(int, open(0).read().split())\n\nP = tuple(product((1, -1), repeat=3))\n\nA = [[] for _ in range(8)]\nfor x, y, z in zip(*[iter(XYZ)] * 3):\n A[0].append(sum((x, y, z)))\n A[1].append(sum((x, y, -z)))\n A[2].append(sum((x, -y, z)))\n A[3].append(sum((x, -y, -z)))\n A[4].append(sum((-x, ... | ['Runtime Error', 'Accepted'] | ['s945798457', 's748305455'] | [3444.0, 3572.0] | [19.0, 27.0] | [526, 333] |
p03326 | u607075479 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['import sys\nimport math\nfrom collections import deque\n\nsys.setrecursionlimit(1000000)\nMOD = 10 ** 9 + 7\ninput = lambda: sys.stdin.readline().strip()\nNI = lambda: int(input())\nNMI = lambda: map(int, input().split())\nNLI = lambda: list(NMI())\nSI = lambda: input()\n\n\ndef make_grid(h, w, num): return [[int(num... | ['Wrong Answer', 'Accepted'] | ['s383618785', 's225961588'] | [9772.0, 9716.0] | [39.0, 37.0] | [1105, 1086] |
p03326 | u612721349 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['n,m = map(int,input().split())\nl = [[int(i)for i in input().split()]for _ in [0]*n]\n\ndef g(k):\n a = [x[0]if k&1 else -x[0])+(x[1]if k&2 else -x[1])+(x[2]if k&4 else -x[2]) for x in l]\n a.sort(reverse=True)\n return sum(a[:m])\nprint(max([g(i) for i range(8)]))', 'n, m = map(int, input().split())\nal = [[int... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s030421217', 's108124541', 's602399678'] | [2940.0, 3356.0, 3444.0] | [17.0, 24.0, 39.0] | [263, 362, 176] |
p03326 | u623819879 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['import sys\nsys.setrecursionlimit(1000000)\n#def input():\n# return sys.stdin.readline()[:-1]\n\n\n\ntest_data1 = \'\'\'\\\n2 3 -10\n1 2 3\n3 2 1\n1 2 2\n\'\'\'\n\ntest_data2 = \'\'\'\\\n5 3\n1 -2 3\n-4 5 -6\n7 -8 -9\n-10 11 -12\n13 -14 15\n\'\'\'\n\ntest_data3 = \'\'\'\\\n10 5\n10 -80 21\n23 8 38\n-94 28 11\n-26 ... | ['Runtime Error', 'Accepted'] | ['s649037994', 's244295954'] | [3188.0, 3400.0] | [18.0, 31.0] | [2621, 2625] |
p03326 | u633105820 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ["def run(n, m, x, y, z):\n s1 = [x[i] + y[i] + z[i] for i in range(n)]\n s1.sort(reverse=True)\n s2 = [-x[i] + y[i] + z[i] for i in range(n)]\n s2.sort(reverse=True)\n s3 = [x[i] - y[i] + z[i] for i in range(n)]\n s3.sort(reverse=True)\n s4 = [-x[i] - y[i] + z[i] for i in range(n)]\n s4.sort(re... | ['Runtime Error', 'Accepted'] | ['s265715924', 's910892107'] | [3192.0, 3572.0] | [18.0, 24.0] | [1527, 1583] |
p03326 | u636311816 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['n=5\nm=3\nscores=[[1, -2, 3],\n[-4, 5, -6],\n[7, -8, -9],\n[-10, 11, -12],\n[13, -14, 15]]\n\nsmax=None\nfor x in range(2):\n scores_=copy.deepcopy(scores)\n \n for i in range(n):\n scores_[i][0] = pow(-1,x)*scores[i][0]\n for y in range(2):\n for i in range(n):\n scores_[i][1] = ... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s253868705', 's355431425', 's720635617', 's828229771', 's889649029', 's178577088'] | [3064.0, 3064.0, 3188.0, 3316.0, 3700.0, 4212.0] | [17.0, 30.0, 28.0, 20.0, 26.0, 72.0] | [782, 298, 223, 638, 691, 703] |
p03326 | u667024514 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['n, m = map(int, input().split())\nl = []\nli = []\nlis = []\n\nfor i in range(n):\n a, b, c = map(int, input().split())\n l.append(a)\n li.append(b)\n lis.append(c)\nans = []\n #for a in range(2): for b in range(2):for c in range(2):if a == 0:\nl1 = sorted(l)\nli1 = li\nlis1 = lis\ncou1 = 0\ncou1 += abs... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s199128363', 's849785205', 's409810248'] | [3572.0, 3448.0, 3360.0] | [118.0, 51.0, 27.0] | [1789, 3516, 784] |
p03326 | u708615801 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['from operator import mul\nimport sys\nstdin = sys.stdin\n \nsys.setrecursionlimit(10**5) \n \ndef li(): return map(int, stdin.readline().split())\n\nN, M = tuple(li())\nCs = []\nfor i in range(N):\n n = tuple(li())\n Cs.append([-sum(map(abs, n)), n])\n\nstate = [0, 0, 0, 0]\nmaximum = 0\ntrans = []\nfor per in ... | ['Runtime Error', 'Accepted'] | ['s653120284', 's633358239'] | [3556.0, 3572.0] | [25.0, 34.0] | [573, 607] |
p03326 | u729133443 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['I=lambda:list(map(int,input().split()));n,m=I();s=[I()for _ in[0]*n];a=0\nfor i in range(1<<3):\n t=[[v for v in t]for t in s]\n for j in range(3):\n for k in range(n):t[k][j]*=-(i>>j&1)\n a=max(a,sum(sorted(sum(j)for j in t)[-m:]))\nprint(a)', "n,m=map(int,input().split());l=eval('input().split(),'*n);print(max(sum... | ['Wrong Answer', 'Accepted'] | ['s719689213', 's563529698'] | [3572.0, 4596.0] | [35.0, 44.0] | [237, 162] |
p03326 | u747602774 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['n,m = map(int,input().split())\nxyz = [list(map(int,input().split())) for i in range(n)]\nans = 0\nfor i in range(8):\n s = [0 for i in range(n)]\n for j in range(n):\n a = 0\n for k in range(3):\n if i>>k&1:\n a += xyz[j][k]\n else:\n a -= xyz[j... | ['Runtime Error', 'Accepted'] | ['s562013707', 's577111501'] | [3316.0, 3316.0] | [32.0, 33.0] | [384, 384] |
p03326 | u756782069 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['\nimport numpy as np\nN, M = map(int, input().split())\na = []\nfor i in range(N):\n a.append(list(map(int,input().split())))\n\nar = np.array(a)\nprint (ar) \n\nb = np.zeros((N,8))\nfor i in range(0,N):\n b[i,0] = ar[i,0] + ar[i,1] + ar[i,2]\n b[i,1] = ar[i,0] + ar[i,1] - ar[i,2]\n b[i,2] = ar[i,0] - ar[... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s796781216', 's995866265', 's911404724'] | [12640.0, 21628.0, 20996.0] | [173.0, 1385.0, 1545.0] | [1063, 1167, 1036] |
p03326 | u785578220 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['n,m=map(int,input().split())\nx = [list(map(int, input().split())) for _ in range(n)]\nfrom itertools import *\nres = 0\nfor a in product([-1, 1], [-1, 1], [-1, 1]):\n ts =[]\n for t in x:\n ta = 0\n for i,j in zip(a,t):\n ta+=i*j\n ts.append(t)\n s = sum(sorted(ts,reverse=Tru... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s595209699', 's719491127', 's313016554'] | [3316.0, 3316.0, 3404.0] | [33.0, 21.0, 31.0] | [347, 345, 348] |
p03326 | u842170774 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['\n\nN,M=map(int,input().split())\ncheck=M+10 if M+10<=N else N\nxyz_list,x_list,y_list,z_list=[],[],[],[]\nfor i in range(N):\n xyz_list.append(input().split())\n \nvar_list=[x for x in itl.product([-1,1],repeat=3)]\nsum_list=[]\nfor i in var_list:\n print(i,xyz_list)\n sort_list=[0,]*N\n for j in rang... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s003715305', 's927094814', 's385408182'] | [3440.0, 4092.0, 3444.0] | [19.0, 38.0, 32.0] | [631, 655, 612] |
p03326 | u847867174 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['N, M = map(int, input().split())\nfeatures = list()\nfor _ in range(N):\n f = map(int, input().split())\n features.append(list(f))\n\nmaximum = 0\nindex = list(itertools.combinations(range(0, N), M))\nfor i in index:\n s1, s2, s3 = 0, 0, 0\n for j in i:\n s1 += features[j][0]\n s2 += feature... | ['Runtime Error', 'Accepted'] | ['s465130458', 's685033964'] | [3188.0, 3316.0] | [21.0, 24.0] | [433, 739] |
p03326 | u860546679 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ["N,M=input().split(' ')\nN=int(N)\nM=int(M)\n\nx_arr=[]\ny_arr=[]\nz_arr=[]\nfor i in range(N):\n\tx,y,z=input().split(' ')\n\tx=int(x)\n\ty=int(y)\n\tz=int(z)\n\tx_arr.append(x)\n\ty_arr.append(y)\n\tz_arr.append(z)\n\nans_x=0\nans_y=0\nans_z=0\nfor i in range(M):\n\tkari_arr=[]\n\tfor j in range(N-i):\n\t\tans_x1=an... | ['Runtime Error', 'Accepted'] | ['s752473439', 's026267260'] | [10740.0, 12436.0] | [472.0, 150.0] | [636, 985] |
p03326 | u891635666 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['import bisect\nimport collections\n\ns = input().rstrip()\nt = input().rstrip()\n\ncounter_s = collections.Counter(s)\ncounter_t = collections.Counter(t)\nfor c in counter_t.keys():\n if c not in counter_s.keys():\n print(-1)\n exit()\n\ns_indices = collections.defaultdict(list)\nfor i, c in enumerat... | ['Wrong Answer', 'Accepted'] | ['s148276156', 's743531558'] | [3436.0, 3408.0] | [22.0, 26.0] | [656, 621] |
p03326 | u905582793 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['n,m=map(int,input().split())\na=[list(map(int,input().split())) for i in range(n)]\nans=[]\nfor i in range(8):\n binstr=bin(i)[2:]\n binstr.zfill(3)\n b=[]\n for j in range(n):\n c=0\n for k in range(3):\n if binstr[k]=="1":\n c+=a[j][k]\n else:\n c+=-a[j][k]\n b.append(c)\n b.so... | ['Runtime Error', 'Accepted'] | ['s891950692', 's705702942'] | [3316.0, 3316.0] | [21.0, 33.0] | [348, 354] |
p03326 | u930705402 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['N,M=map(int,input().split())\nc=[list(map(int,input().split())) for i in range(N)]\n\nbit=[[] for i in range(2**3)]\nfor k in range(N):\n for i in range(2**3):\n t=c[k].copy()\n for j in range(3):\n if(i>>j&1):\n t[j]*=-1\n bit[i].append(t)\nfor i in range(2**3):\n ... | ['Wrong Answer', 'Accepted'] | ['s469584546', 's094099016'] | [4596.0, 4596.0] | [45.0, 44.0] | [643, 643] |
p03326 | u941753895 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ["import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time\n\nsys.setrecursionlimit(10**7)\ninf=10**20\nmod=10**9+7\n\ndef LI(): return list(map(int,input().split()))\ndef II(): return int(input())\ndef LS(): return input().split()\ndef S(): return input()\n\ndef main():\n N,M=LI()\n l... | ['Wrong Answer', 'Accepted'] | ['s757600920', 's023483902'] | [6604.0, 6992.0] | [65.0, 71.0] | [1362, 1285] |
p03326 | u947750088 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['10 5\n10 -80 21\n23 8 38\n-94 28 11\n-26 -2 18\n-69 72 79\n-26 -86 -54\n-72 -50 59\n21 65 -32\n40 -94 87\n-62 18 82', 'a, b = map(int, input().split())\nsum0 = []\nsum1 = []\nsum2 = []\nsum3 = []\nsum4 = []\nsum5 = []\nsum6 = []\nsum7 = []\n\nfor i in range(a):\n x, y, z = map(int, input().split())\n sum0.append((x... | ['Runtime Error', 'Accepted'] | ['s632495800', 's936283136'] | [2940.0, 3440.0] | [17.0, 27.0] | [105, 795] |
p03326 | u961595602 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['import numpy as np\n\nN, M = map(int, input().split())\n\nif M == 0:\n print(0)\n exit()\n\ncakes = np.zeros((N, 3))\nfor i in range(N):\n cakes[i, :] = list(map(int, input().split()))\n\nCalc = []\ntemp = np.zeros((N, 3))\ntot = np.zeros(N)\nfor i in range(2):\n temp[:, 0] = cakes[:, 0] * (-1) ** i\n ... | ['Wrong Answer', 'Accepted'] | ['s990140882', 's810769801'] | [14408.0, 22172.0] | [333.0, 333.0] | [577, 554] |
p03326 | u978313283 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['def total(x):\n x=[abs(i) for i in x]\n return sum(x)\n\nN,M=map(int,input().split())\nx=[0 for i in range(N)]\ny=[0 for i in range(N)]\nz=[0 for i in range(N)]\nfor i in range(N):\n x[i],y[i],z[i]=map(int,input().split())\ndp=[[[0,0,0] for i in range(M+1)] for j in range(N+1)]\nfor i in range(N):\n for j... | ['Runtime Error', 'Accepted'] | ['s135266632', 's701305823'] | [106996.0, 14288.0] | [696.0, 189.0] | [664, 474] |
p03326 | u988402778 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['n,m = [int(i) for i in input().split()]\na = [[int(i) for i in input().split()] for j in range(n)]\n\nc = [0,1]\nans = 0\nfor l,j,k in itertools.product(c,repeat=3):\n ans = max(ans,sum(sorted([a[i][0]*(-1)**l+a[i][1]*(-1)**j+a[i][2]*(-1)**k for i in range(n)])[n-m:]))\n\nprint(ans)', 'n,m = [int(i) for i in input... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s112530641', 's937105707', 's777237813'] | [3188.0, 3188.0, 3328.0] | [21.0, 22.0, 26.0] | [278, 268, 279] |
p03326 | u989345508 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['n,m=map(int,input().split())\nprint(max([sum(sorted([i*l[0]+j*l[1]+k*l[2] for l in [list(map(int,input().split())) for i in range(n)]],reverse=True)[:m]) for i in [-1,1] for j in [-1,1] for k in [-1,1]]))', 'from itertools import product\nn,m=map(int,input().split())\nxyz=[list(map(int,input().split())) for i in rang... | ['Runtime Error', 'Accepted'] | ['s500662352', 's454814290'] | [3316.0, 3396.0] | [21.0, 26.0] | [203, 241] |
p03326 | u997641430 | 2,000 | 1,024,000 | Takahashi became a pastry chef and opened a shop _La Confiserie d'ABC_ to celebrate AtCoder Beginner Contest 100. The shop sells N kinds of cakes. Each kind of cake has three parameters "beauty", "tastiness" and "popularity". The i-th kind of cake has the beauty of x_i, the tastiness of y_i and the popularity of z_i... | ['N,M=map(int,input().split())\nxyz=[list(map(int,input().split())) for i in range(N)]\nMAX=0\nfor index in [[1,1,1],[1,1,-1],[1,-1,1],[1,-1,-1],[-1,1,1],[-1,1,-1],[-1,-1,1],[-1,-1,-1]]:\n LIST=sorted([sum([p[a]*index[a] for a in range(3)]) for p in xyz])[::-1]\n print(LIST)\n if sum(LIST[0:M])>MAX:\n M... | ['Wrong Answer', 'Accepted'] | ['s169512068', 's765696821'] | [3444.0, 3316.0] | [33.0, 32.0] | [339, 323] |
p03327 | u003501233 | 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 dec... | ['N=int(input())\n\nif N < 1000:\n print("ABC"+str(N))\nelse:\n print("ABD"+str(N))', 'N=int(input())\n\nif N <= 999:\n print("ABC"+str(N))\nelse:\n print("ABD"+str(N))', 'N=int(input())\n\nif N < 1000:\n print("ABC"+N)\nelse:\n print("ABD"+N)', 'N=int(input())\n\nif N < 1000:\n print("ABC")\nelse:\n print("ABD... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s284363261', 's554837961', 's702038051', 's135109442'] | [2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 19.0, 17.0] | [78, 78, 68, 64] |
p03327 | u003873207 | 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 dec... | ["N = int(input())\nif N >= 1000:\n hya = str(N - 999).rjust(3, '0')\n print('ABD' + hya)\nelse:\n hya = str(N).rjust(3, '0')\n print('ABC' + hya)\n", "N = int(input())\nif N >= 1000:\n hya = str(N - 999)\n print('ABD' + hya)\nelse:\n hya = str(N)\n print('ABC' + hya)\n", "N = int(input())\nif N... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s281588327', 's463407127', 's904283302'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [151, 123, 71] |
p03327 | u007550226 | 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 dec... | ["N = int(input())\nif N >=1000:\n print('ABD'+str(N%1000+1).zfill(3))\nelse:\n print('ABC'+str(N).zfill(3))", "N = int(input())\nif N >=1000:\n print('ABD'\nelse:\n print('ABC')", "N = int(input())\nif N >=1000:\n print('ABD')\nelse:\n print('ABC')"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s494883614', 's635296943', 's001099264'] | [3188.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [104, 64, 65] |
p03327 | u012694084 | 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 dec... | ['N = int(input())\n\nc_or_d = ["C", "D"][N // 1000]\nif N >= 1000:\n N += 1\n\nprint("AB{}{:03}".format(c_or_d, N % 1000))\n', 'N = int(input())\n\nprint("AB{}".format(["C", "D"][N // 1000]))\n'] | ['Wrong Answer', 'Accepted'] | ['s346602495', 's490720785'] | [2940.0, 3064.0] | [18.0, 43.0] | [119, 62] |
p03327 | u013582384 | 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 dec... | ['# -*- coding: utf-8 -*\na_b = input().split()\na = int(a_b[0])\nb = int(a_b[1])\nn = b - a\n\nh = (n - 1) * n / 2 - a\n\nprint(int(h))\n', '# -*- coding: utf-8 -*-\nn = int(input())\n\nif n < 1000:\n print(ABC)\nelse:\n print(ABD)', "# -*- coding: utf-8 -*-\nn = int(input())\n\nif n < 1000:\n print('ABC')\ne... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s242597794', 's455336034', 's601860899'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [127, 90, 95] |
p03327 | u016182925 | 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 dec... | ['N=int(input())\nif N < 1000 :\n print(f"ABC{N}")\nelse :\n n = N - 999\n print(f"ABD{n})', 'N=int(input())\nif N <= 999 :\n print("ABC")\nelse :\n print("ABD")'] | ['Runtime Error', 'Accepted'] | ['s105108672', 's653578845'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 65] |
p03327 | u023077142 | 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 dec... | ["N = int(input())\n\nif N < 1000:\n print('ABC{:03}'.format(N))\nelse:\n print('ABD{:03}'.format(N - 999))", "N = int(input())\n\nif N < 1000:\n print(f'ABC{N:03}')\nelse:\n print(f'ABD{N-999:03}')", "N = int(input())\n\nif N < 1000:\n print('ABC')\nelse:\n print('ABD')"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s251451177', 's429605423', 's035855884'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [106, 88, 70] |
p03327 | u023229441 | 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 dec... | ['n=int(input())\nif n<=999:\n print("ABC{}".format(n))\nelse:\n print("ABD{}".format(n-999))', 'print("ABC{}".format(int(input())%999))', 'n=int(input())\nif n<=999:\n print("ABC")\nelse:\n print("ABD")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s703130747', 's888834202', 's595703033'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [89, 39, 62] |
p03327 | u025363805 | 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 dec... | ['n = input()\nif n >= 1000:\n print("ABD")\nelse:\n print("ABC")', 'n = int(input())\nif n >= 1000:\n print("ABD")\nelse:\n print("ABC")\n'] | ['Runtime Error', 'Accepted'] | ['s756741824', 's524186501'] | [2940.0, 2940.0] | [17.0, 18.0] | [65, 71] |
p03327 | u026686258 | 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 dec... | ['#def poll_height(n):\n# if n:\n# return n + poll_height(n - 1)\n# else:\n# return 1 \n\ndef poll_height(n):\n rtn = 0 \n for i in range(n + 1): \n rtn += i\n return rtn \n\na, b = map(int, input().split())\n\ndifference_a_b = b - a \nprint(poll_height(difference_a_b) - b)', 'import... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s328429530', 's422463739', 's724272947', 's729096785', 's839257884', 's073509078'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [293, 232, 103, 126, 191, 385] |
p03327 | u029234056 | 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 dec... | ['N=int(input())\nif N<1000:\n print("ABC"+str(N).zfill(3))\nelse:\n print("ABD"+str(N+1).zfill(3))', 'N=int(input())\nif N<1000:\n print("ABC"+str(N-1).zfill(3))\nelse:\n print("ABD"+str(N-1).zfill(3))\n ', 'N=int(input())\nif N<1000:\n print("ABC"+str(N).zfill(3))\nelse:\n print("ABD"+str(N-1000+1).zfill(3))',... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s301183051', 's419257085', 's838145810', 's773528039'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0, 18.0] | [95, 100, 100, 61] |
p03327 | u031157253 | 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 dec... | ["n=int(input())\nif n - 999 > 0:\n print('ABD')\nelif:\n print('ABC')", "n=int(input())\nif n - 999 > 0:\n print('ABD')\nelse:\n print('ABC')"] | ['Runtime Error', 'Accepted'] | ['s949155360', 's665540500'] | [2940.0, 2940.0] | [17.0, 17.0] | [66, 66] |
p03327 | u035218301 | 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 dec... | ['a,b = [int(i) for i in input().split()]\n\nstep = 2\ntowers = [1]\ni = 1\nwhile True:\n towers.append(towers[i-1] + step)\n \n if towers[i] >= 499500:\n break\n i += 1\n step += 1\n\n\ndepth = towers[(b-a)-1] - b\nprint(depth)\n\n', 'N = int(input())\n\nif N < 1000:\n print("ABC")\nelse:\n ... | ['Runtime Error', 'Accepted'] | ['s861111616', 's419123971'] | [3060.0, 2940.0] | [18.0, 17.0] | [235, 73] |
p03327 | u039623862 | 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 dec... | ["n = int(input())\nif n >= 1000:\n print('ABD' + ('00' + str(n-999))[-3:])\nelse:\n print('ABC' + ('00' + str(n))[-3:])\n", "n = int(input())\nif n >= 1000:\n print('ABD')\nelse:\n print('ABC')"] | ['Wrong Answer', 'Accepted'] | ['s491425034', 's377127812'] | [2940.0, 2940.0] | [17.0, 17.0] | [121, 70] |
p03327 | u046187684 | 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 dec... | ['#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\nn = int(input())\nif n < 1000:\n print("ABC" + str(n))\nelse:\n print("ABD" + str(n - 999))', '#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\nn = int(input())\nif n < 1000:\n print("ABC")\nelse:\n print("ABD")\n'] | ['Wrong Answer', 'Accepted'] | ['s967310952', 's425443428'] | [2940.0, 2940.0] | [17.0, 17.0] | [141, 118] |
p03327 | u047023156 | 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 dec... | ["import math, sys\nfrom bisect import bisect_left, bisect_right\nfrom collections import Counter, defaultdict, deque\nfrom copy import deepcopy\nfrom functools import lru_cache\nfrom heapq import heapify, heappop, heappush\nfrom itertools import accumulate, combinations, permutations\ninput = sys.stdin.readline\nmod =... | ['Wrong Answer', 'Accepted'] | ['s912885349', 's385841988'] | [3696.0, 3696.0] | [25.0, 24.0] | [530, 531] |
p03327 | u047668580 | 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 dec... | ['N,C = list(map(int,input().split()))\nD = [ list(map(int,input().split())) for i in range(C)]\nc = [ list(map(int,input().split())) for i in range(N)]\n\nsep = {0:[0 for i in range(C)],1:[0 for i in range(C)],2:[0 for i in range(C)]}\nfor i,cx in enumerate(c):\n for j,cy in enumerate(cx):\n if len(c) == 2... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s698528056', 's841769103', 's883578488'] | [3064.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [792, 145, 133] |
p03327 | u048867491 | 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 dec... | ['N=int(input())\nN=1000\nif N>=1000:\n print("ABD")\nelse:\n print("ABC")', 'N=int(input())\nif N>=1000:\n print("ABD")\nelse:\n print("ABC")'] | ['Wrong Answer', 'Accepted'] | ['s330232640', 's014498279'] | [2940.0, 2940.0] | [18.0, 18.0] | [69, 62] |
p03327 | u050121913 | 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 dec... | ['x = list(map(int,input().split( )))\nz = x[1]-x[0]\nt = 0\nfor s in range(z+2):\n t += s\n \nprint(t-x[1])', "x = int(input())\n\nif x > 999:\n print('ABD')\n \nelse:\n print('ABC')"] | ['Runtime Error', 'Accepted'] | ['s474673664', 's857057426'] | [2940.0, 2940.0] | [17.0, 17.0] | [106, 74] |
p03327 | u050698451 | 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 dec... | ["N = int(input())\nif N < 1000:\n\tprint('ABC%03d' % N)\nelse:\n\tprint('ABD%03d' %(N-999))", "N = int(input())\nif N < 1000:\n\tprint('ABC')\nelse:\n\tprint('ABD')"] | ['Wrong Answer', 'Accepted'] | ['s300568042', 's420013094'] | [2940.0, 3068.0] | [17.0, 18.0] | [84, 63] |
p03327 | u055687574 | 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 dec... | ['a, b = map(int, input().split())\n\nprint(((b-a)+1)*(b-a)//2-b)\n', 'n = int(input())\n\nif n <= 999:\n print("ABC")\nelse:\n print("ABD")\n'] | ['Runtime Error', 'Accepted'] | ['s002016254', 's364378154'] | [2940.0, 2940.0] | [18.0, 20.0] | [62, 71] |
p03327 | u059210959 | 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 dec... | ['#encoding utf-8\n\n\nn = int(input())\n\nif n >= 999:\n print("ABD")\n\nelse:\n print("ABC")\n', '#encoding utf-8\n\n\nn = input()\n\nif n > 999:\n print("ABD")\n\nelse:\n print("ABC")', '#encoding utf-8\n\n\nn = int(input())\n\nif n > 999:\n print("ABD")\n\nelse:\n print("ABC")\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s148932150', 's761019044', 's929912055'] | [2940.0, 3060.0, 2940.0] | [17.0, 18.0, 17.0] | [90, 83, 89] |
p03327 | u067901008 | 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 dec... | ["def con_n(N):\n if N <= 1000:\n return 'ABC'\n elif N > 1000:\n return 'ABD'", "n = int(input())\ndef con_n(n):\n if n <= 1000:\n return 'ABC'\n elif n > 1000:\n return 'ABD'\n \ncon_n(n)", "n = int(input())\ndef con_n(n):\n if n < 1000:\n return 'ABC'\n elif n ... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s176862601', 's386027801', 's387995262', 's554532551', 's685084455', 's830644145', 's968133461', 's736054565'] | [2940.0, 2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [92, 123, 130, 276, 109, 109, 130, 130] |
p03327 | u068862866 | 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 dec... | ['N = int(input())\n\nprint("ABD{:04}".format(N)) if N//1000!=1 else print("ABD{:04}".format(N%1000 + N//1000))', 'N = int(input())\n\nnum = N%1000 + N//1000\n\nprint("ABD"+str(num))', 'N = input()\n\nprint("ABD"+N)', 'N = int(input())\n\nprint("ABC{:03}".format(N)) if N//1000!=1 else print("ABD{:03}".format(N%1000 + N... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s242122898', 's410950018', 's447463601', 's491530714', 's210846564'] | [9132.0, 9124.0, 9012.0, 9152.0, 9020.0] | [23.0, 26.0, 24.0, 28.0, 25.0] | [107, 63, 27, 107, 62] |
p03327 | u069838609 | 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 dec... | ["from itertools import permutations\n\nN, C = [int(elem) for elem in input().split(' ')]\nD_matrix = [[int(elem) for elem in input().split(' ')] for _ in range(C)]\nassert len(D_matrix) == C\nassert len(D_matrix[0]) == C\nc_matrix = [[int(elem) for elem in input().split(' ')] for _ in range(N)]\nassert len(c_matrix) =... | ['Runtime Error', 'Accepted'] | ['s316958542', 's126762495'] | [3064.0, 2940.0] | [18.0, 17.0] | [954, 71] |
p03327 | u080364835 | 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 dec... | ["n = int(input())\nif n <= 999:\n ans = 'ABC' + str(n).zfill(3)\nelse:\n ans = 'ABD' + str(n-1000+1).zfill(3)\n\nprint(ans)", "n = int(input())\nprint('ABC' if n <= 999 else 'ABD')"] | ['Wrong Answer', 'Accepted'] | ['s681130991', 's367131103'] | [9164.0, 9156.0] | [26.0, 28.0] | [122, 52] |
p03327 | u086503932 | 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 dec... | ['return "ABC" if int(input()) < 1000 else "ABD"', "print('ABC') if int(input()) < 1000 else print('ABD')"] | ['Runtime Error', 'Accepted'] | ['s509521288', 's558097342'] | [2940.0, 2940.0] | [17.0, 17.0] | [46, 53] |
p03327 | u087373960 | 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 dec... | ["X = int(input())\n\nif X < 1000:\n print('ABC' + f'{X:03}')\nelse:\n X = X % 999\n print('ABD' + f'{X:03}')", "X = int(input())\n\nif X < 1000:\n print('ABC' + str(X).zfill(3))\nelse:\n X = X % 999\n print('ABD' + str(X).zfill(3))", "X = int(input())\n\nif X < 1000:\n print('ABC')\nelse:\n print('ABD')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s398318837', 's549479458', 's632934694'] | [9168.0, 9080.0, 9144.0] | [28.0, 28.0, 27.0] | [104, 116, 66] |
p03327 | u095969144 | 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 dec... | ['a = input()\n\nif a < 1000 :\n print("ABC")\nelse :\n print("ABD")', 'a = int(input())\n\nif a < 1000 :\n print("ABC")\nelse :\n print("ABD")'] | ['Runtime Error', 'Accepted'] | ['s331449481', 's888087592'] | [2940.0, 2940.0] | [17.0, 17.0] | [67, 72] |
p03327 | u102461423 | 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 dec... | ["N = int(input())\noffset = 'ABC' if N < 1000 else 'ABC'\nprint(offset + str(N%1000))", "N = int(input())\noffset = 'ABC' if N < 999 else 'ABD'\nprint(offset)# + str(N%999))", "N = int(input())\noffset = 'ABC' if N < 999 else 'ABC'\nprint(offset + str(N%999))", "N = int(input())\noffset = 'ABC' if N <= 999 else 'ABD'\... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s345388029', 's350737229', 's951392938', 's168127072'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [82, 82, 80, 84] |
p03327 | u102960641 | 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 dec... | ['n = int(input()) % 999\n\nif n <=9:\n print("ABC00"+str(n))\nelif n <= 99:\n print("ABC0"+str(n))\nelse:\n print("ABC"+str(n))\n', 'n = int(input())\n\nif n <=999:\n print("ABC")\nelse:\n print("ABD"))', 'n = int(input())\nprint("ABC"+str(n%1000))', 'n = int(input())\n\nif n <=9:\n print("ABC00"+str(n))\nelif n... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s154453709', 's444957907', 's540333616', 's928731287', 's447283141'] | [2940.0, 2940.0, 2940.0, 3060.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 18.0] | [123, 66, 41, 244, 64] |
p03327 | u103539599 | 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 dec... | ['N = int(input())\n\nif N < 100: print("ABC")\nelse: print("ABD")', 'N = int(input())\n\nif N < 1000: print("ABC")\nelse: print("ABD")'] | ['Wrong Answer', 'Accepted'] | ['s498269705', 's038347175'] | [2940.0, 2940.0] | [17.0, 17.0] | [61, 62] |
p03327 | u103902792 | 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 dec... | ["n = int(input())\nans = 'AB'\nif n <= 999:\n ans += 'C'\nelse:\n ans += 'D'\n n -= 999\nprint(ans+'{:03}'.format(n))\n\n", "n = int(input())\nans = 'AB'\nif n <= 999:\n ans += 'C'\nelse:\n ans += 'D'\n n -= 999\nprint(ans+'{03}'.format(n))", "n = int(input())\nans = 'AB'\nif n <= 999:\n ans += 'C'\nelse:\n an... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s102434560', 's489191078', 's658426383'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [114, 111, 84] |
p03327 | u110943895 | 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 dec... | ['n = int(input())\nprint("ABC{0:03d}".format(n) if n<1000 else "ABD{0:03d}".format(n-999))', 'n = int(input())\nprint("ABC" if n<1000 else "ABD")'] | ['Wrong Answer', 'Accepted'] | ['s323072202', 's286374404'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 50] |
p03327 | u114954806 | 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 dec... | ['N = input()\nif 1 <= N <= 999:\n print("ABC")\nelse:\n print("ABD")', 'print("ABC" if 1<=int(input())<=999 else "ABD")'] | ['Runtime Error', 'Accepted'] | ['s715289168', 's684294188'] | [2940.0, 3064.0] | [17.0, 17.0] | [69, 47] |
p03327 | u116233709 | 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 dec... | ['n=int(input())\nimport math\nansa=[0]\nansb=[0]\nans=[]\ncnt=0\nx=0\ny=0\nfor i in range(1,n+1):\n while 9**(x+1)<=i:\n x+=1\n for j in range(x,-1,-1):\n z=(math.floor(i/(9**j))%9)\n i-=(9**j)*z\n cnt+=z\n ansa.append(cnt)\n cnt=0 \n \nfor i in range(1,n+1):\n while 6*... | ['Wrong Answer', 'Accepted'] | ['s804987907', 's843375331'] | [3064.0, 2940.0] | [34.0, 17.0] | [538, 74] |
p03327 | u118211443 | 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 dec... | ['N=int(input())\nprint("ABC" if N-999<0 else "ABD")', 'N=int(input())\nprint("ABC" if N-1000<0 else "ABD")'] | ['Wrong Answer', 'Accepted'] | ['s002778361', 's000352474'] | [2940.0, 2940.0] | [19.0, 17.0] | [49, 50] |
p03327 | u123745130 | 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 dec... | ['print(["ABD","ABC][len(input())==3])', 'print(["ABC","ABD"][len(input())==4])'] | ['Runtime Error', 'Accepted'] | ['s586423574', 's712501770'] | [3064.0, 2940.0] | [18.0, 17.0] | [36, 37] |
p03327 | u125205981 | 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 dec... | ["def main():\n N = int(input())\n\n if N > 999:\n print('ABC')\n else:\n print('ABD')\n\nmain()\n", "def main():\n N = int(input())\n\n if N < 1000:\n print('ABC')\n else:\n print('ABD')\n\nmain()\n"] | ['Wrong Answer', 'Accepted'] | ['s051962376', 's965286487'] | [2940.0, 2940.0] | [18.0, 18.0] | [110, 111] |
p03327 | u127856129 | 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 dec... | ['a=int(input())\nif a>999:\n print("ABC"+a)\nelse:\n print("ABD"+a%999)', 'a=int(input())\nif 1<=a<=999:\n print("ABC")\nelse:\n print("ABD")'] | ['Runtime Error', 'Accepted'] | ['s202764772', 's540816548'] | [2940.0, 2940.0] | [18.0, 18.0] | [68, 64] |
p03327 | u131264627 | 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 dec... | ["n = int(input())\nprint('ABC' + n if n < 1000 else 'ABD' + n)", "n = int(input())\nprint('ABC' if n < 1000 else 'ABD')"] | ['Runtime Error', 'Accepted'] | ['s532577190', 's438854049'] | [3316.0, 2940.0] | [21.0, 17.0] | [60, 52] |
p03327 | u133583235 | 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 dec... | ['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'] | ['s481832454', 's287369602'] | [2940.0, 2940.0] | [26.0, 17.0] | [82, 65] |
p03327 | u136090046 | 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 dec... | ['n = int(input())\nif n <= 999:\n print("ABC{0:03d}".format(n))\nelse:\n print("ABD{0:03d}".format(abs(n-1000+1)))', 'n = int(input())\nif n <= 999:\n print("ABC")\nelse:\n print("ABD")'] | ['Wrong Answer', 'Accepted'] | ['s498815574', 's947506338'] | [2940.0, 2940.0] | [18.0, 17.0] | [115, 69] |
p03327 | u138797516 | 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 dec... | ['contest_num = int(input())\n\nif contest_num >= 1999:\n result_str = \'The contest has not been held\'\n\nelif contest_num < 1000:\n result_str = \'ABC\'\n\nelif contest_num >= 1000:\n result_str = \'ABD\'\n\nprint("result_str")\n\n', "contest_num = int(input())\n\nif contest_num >= 1999:\n result_str = '... | ['Wrong Answer', 'Accepted'] | ['s052625917', 's883970784'] | [9012.0, 9148.0] | [29.0, 30.0] | [222, 220] |
p03327 | u139115460 | 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 dec... | ["num = input()\nif num < 1000:\n print('ABC')\nelse:\n print('ABD')", "num = int(input())\nif num < 1000:\n print('ABC')\nelse:\n print('ABD')"] | ['Runtime Error', 'Accepted'] | ['s040268041', 's155631939'] | [2940.0, 2940.0] | [17.0, 17.0] | [64, 71] |
p03327 | u141786930 | 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 dec... | ["N = int(input())\nif N <= 999:\n print('ABC' + str(N+1000)[1:])\nelse:\n print('ABD' + str(N+1)[1:])", "N = int(input())\nif N <= 999:\n print('ABC')\nelse:\n print('ABD')"] | ['Wrong Answer', 'Accepted'] | ['s097317773', 's968609998'] | [9152.0, 9140.0] | [27.0, 26.0] | [102, 69] |
p03327 | u143492911 | 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 dec... | ['n=int(input())\nif n<=99:\n print("ABC")\nelse:\n print("ABD")\n', 'n=int(input())\nif n<=999:\n print("ABC")\nelse:\n print("ABD")\n'] | ['Wrong Answer', 'Accepted'] | ['s733527055', 's405049276'] | [2940.0, 2940.0] | [17.0, 17.0] | [65, 66] |
p03327 | u143903328 | 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 dec... | ["n= int(input())\nif n > 999:\n print('ABD',str(n-999).zfill(3),sep='')\nelse:\n print('ABC',str(n).zfill(3),sep='')", "n= int(input())\nif n > 999:\n print('ABD')\nelse:\n print('ABC')"] | ['Wrong Answer', 'Accepted'] | ['s924094444', 's088323490'] | [2940.0, 2940.0] | [17.0, 17.0] | [117, 67] |
p03327 | u145600939 | 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 dec... | ["n = int(input())\nif n <= 999:\n print('ABC'+str(n).zfill(3))\nelse:\n print('ABD'+str(n-999).zfill(3))\n", "n = int(input())\nif n <= 999:\n print('ABC'+str(n).zfill(4))\nelse:\n print('ABD'+str(n-999).zfill(4))\n", "n = int(input())\nif n <= 999:\n print('ABC'+str(n))\nelse:\n print('ABD'+str(n-999))", "n = i... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s337539076', 's662583962', 's737732482', 's823821295'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0, 17.0] | [102, 102, 83, 66] |
p03327 | u148551245 | 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 dec... | ['n = input()\nn = str(int(n) - 999)\nans = "ABD" + n.zfill(3)\nprint(ans)', 'n = int(input())\nprint("ABD{}".format(n-999))', 'n = int(input())\nif n > 999:\n print("ABD")\nelse:\n print("ABC")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s065062910', 's556659087', 's409180104'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [69, 45, 68] |
p03327 | u150641538 | 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 dec... | ['n = int(input())\nprint("%03d" % (n%1000 + n//1000))', 'n = int(input())\nif(n>999):\n print("ABD")\nelse:\n print("ABC")'] | ['Wrong Answer', 'Accepted'] | ['s452771006', 's550964401'] | [2940.0, 2940.0] | [17.0, 17.0] | [51, 67] |
p03327 | u151625340 | 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 dec... | ["N = int(input())\nif N <= 999:\n print('ABC'+str(N).zfill(3))\nelse:\n print('ABD'+str(N-999).zfill(3))", "N = int(input())\nif N <= 999:\n print('ABC'+str(N))\nelse:\n print('ABD'+str(N-999))\n", "N = int(input())\nif N <= 999:\n print('ABC')\nelse:\n print('ABD')\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s070978894', 's510583139', 's669202614'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0] | [105, 88, 70] |
p03327 | u152671129 | 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 dec... | ["n = int(input())\n\nif n > 999:\n print('ABD{}'.format(n - 999))\nelse:\n print('ABC{}'.format(n))", "n = int(input())\n\nif n > 999:\n print('ABD{}'.format(str(n - 999).zfill(3)))\nelse:\n print('ABC{}'.format(n))", "n = int(input())\n\nif n > 999:\n print('ABD)\nelse:\n print('ABC')", "n = int(inp... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s345358726', 's535645522', 's706879297', 's777374957'] | [2940.0, 2940.0, 2940.0, 3064.0] | [17.0, 17.0, 17.0, 17.0] | [99, 113, 68, 70] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.