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
|
---|---|---|---|---|---|---|---|---|---|---|
p02621 | u588093355 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ["import sys\n\na = int(input())\nprint('hello')\nprint(a + a * a + a * a * a)\n", "import sys\n\na = int(input())\nprint('hello', file=sys.stderr)\nprint(a + a * a + a * a * a)\n"] | ['Wrong Answer', 'Accepted'] | ['s176595240', 's947363678'] | [9048.0, 8968.0] | [26.0, 25.0] | [73, 90] |
p02621 | u590853144 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=input()\nprint(a+a**2+a**3)', 'a=int(input())\nprint(a+a**2+a**3)'] | ['Runtime Error', 'Accepted'] | ['s078080366', 's585835750'] | [8972.0, 9056.0] | [23.0, 31.0] | [28, 33] |
p02621 | u595542086 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=int(input())\nprint(a+a**2+a**3)\nprint(type(a+a**2+a**3))', 'a=int(input())\nprint(a+a**2+a**3)\n'] | ['Wrong Answer', 'Accepted'] | ['s738553395', 's563755575'] | [9148.0, 9144.0] | [28.0, 30.0] | [58, 34] |
p02621 | u595833382 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['nums=input()\nnums=nums.split()\nM,N,K = int(nums[0]),int(nums[1]),int(nums[2])\n\nal=input()\nal2=al.split()\nfor n in range(M):\n al2[n] = int(al2[n])\n\nbl=input()\nbl2=bl.split()\nfor n in range(N):\n bl2[n] = int(bl2[n])\n\ncount=0\n\nai=0\nbi=0\n\nwhile 1:\n if al2[ai] <= bl2[bi] and al2[ai] <= K:\n K = K-al2[ai]\n ai+=1\n count+=1\n \n\n elif al2[ai] > bl2[bi] and bl2[bi] <= K:\n K = K-bl2[bi]\n bi+=1\n count+=1\n else:\n break\n\nprint(count)', 'a = input()\na = int(a)\nprint(a+a*a+a*a*a)'] | ['Runtime Error', 'Accepted'] | ['s947411358', 's204263553'] | [9064.0, 9076.0] | [26.0, 27.0] | [492, 41] |
p02621 | u598296382 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['def cmb(n, r, mod):\n if ( r<0 or r>n ):\n return 0\n r = min(r, n-r)\n return g1[n] * g2[r] * g2[n-r] % mod\nmod = 10**9+7 \nN = 5*10**5 \ng1 = [1, 1] \ng2 = [1, 1] \ninverse = [0, 1] 計算用テーブル\nfor i in range( 2, N + 1 ):\n g1.append( ( g1[-1] * i ) % mod )\n inverse.append( ( -inverse[mod % i] * (mod//i) ) % mod )\n g2.append( (g2[-1] * inverse[-1]) % mod )\n\nN, M = map(int, input().split())\nans = 0\nfor i in range(N+1):\n ans += cmb(N,i,mod)*((-1)**i)*g1[M]*g2[M-i]*((g1[M-i]*g2[M-N])**2)\n ans %= mod\nprint(ans)', 'a = int(input())\nprint(a + a**2 + a**3)'] | ['Runtime Error', 'Accepted'] | ['s865266526', 's183159901'] | [68164.0, 9072.0] | [525.0, 26.0] | [673, 39] |
p02621 | u599547273 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['A = input()\n\nprint(A+A**2+A**3)', 'A = int(input())\n\nprint(A+A**2+A**3)'] | ['Runtime Error', 'Accepted'] | ['s608690236', 's716788885'] | [9028.0, 9092.0] | [23.0, 27.0] | [31, 36] |
p02621 | u600184548 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=input()\nprint("a+a*a+a*a*a")', 'a=int(input())\nb= a+a*a+a*a*a\nprint(b)'] | ['Wrong Answer', 'Accepted'] | ['s269629988', 's138003445'] | [9016.0, 9076.0] | [32.0, 25.0] | [30, 38] |
p02621 | u602081607 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\nprint(a+a^2+a^3)', 'a = int(input())\nprint(a+(a*a)+(a*a*a))'] | ['Wrong Answer', 'Accepted'] | ['s554411454', 's831817447'] | [9144.0, 9152.0] | [31.0, 33.0] | [33, 39] |
p02621 | u604269317 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['A=int(input())\nsums=0\nfor i in range(1,4):\n sums += A**i\n print(sums)\nprint(sums)', 'A=int(input())\nsums=0\nfor i in range(3):\n sums+=A^(i+1)\n \nprint(sums)', 'A=int(input())\nsums=0\nfor i in range(1,4):\n sums += A**i\n \nprint(sums)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s002678937', 's033877667', 's081497722'] | [9156.0, 9160.0, 9152.0] | [34.0, 30.0, 29.0] | [83, 71, 72] |
p02621 | u605853674 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['A = int(input("Input a value for \'a\': "))\nFINAL = A + (A*A) + (A*A*A)\nprint(FINAL)\n', 'A = int(input())\nFINAL = A + (A*A) + (A*A*A)\nprint(FINAL)'] | ['Wrong Answer', 'Accepted'] | ['s539046122', 's934821799'] | [9088.0, 9140.0] | [24.0, 25.0] | [83, 57] |
p02621 | u612975321 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['n = int(input())\na = 1000\nwhile a < n:\n a += 1000\nprint(a-n)', 'a = int(input())\nprint(a+a**2+a**3)'] | ['Wrong Answer', 'Accepted'] | ['s745216435', 's241308725'] | [9144.0, 9080.0] | [26.0, 29.0] | [63, 35] |
p02621 | u634046173 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ["import bisect,collections,copy,heapq,itertools,math,numpy,string\nimport sys\nf = open('input.txt', 'r')\nsys.stdin = f\nN,M,K = map(int,input().split())\na = list(map(int,input().split()))\nb = list(map(int,input().split()))\n\nai =0\nbi=0\nst =0\nc = 0\nwhile True:\n if ai == N:\n if bi == M:\n break\n else:\n st += b[bi]\n if st > K:\n break\n bi += 1\n c +=1\n elif bi == M:\n if ai == N:\n break\n else:\n st += a[ai]\n if st > K:\n break\n ai += 1\n c += 1\n elif a[ai] > b[bi]:\n st += b[bi]\n if st > K:\n break\n bi +=1\n c +=1\n elif a[ai] < b[bi]:\n st += a[ai]\n if st > K:\n break\n ai +=1\n c +=1\n elif a[ai] == b[bi]:\n tmpst = st\n tmpc =0\n tmpai = ai\n tmpbi = bi\n while True:\n tmpst +=a[tmpai]\n if tmpai < N-1:\n tmpai+=1\n if tmpbi < M-1:\n tmpbi+=1\n if tmpst > K:\n st += a[ai]\n if st > K:\n print(c)\n exit()\n ai +=1\n c +=1\n #print(c+tmpc,'ja')\n #exit()\n if a[tmpai] > b[tmpbi]:\n st += b[bi]\n if st > K:\n print(c)\n exit()\n bi += 1\n c += 1\n break\n elif a[tmpai] < b[tmpbi]:\n st += a[ai]\n if st > K:\n print(c)\n exit()\n ai += 1\n c += 1\n break\n if tmpai == N-1 and tmpbi == M-1:\n print(N+M)\n exit()\n #print(tmpst)\n tmpc += 1\n #print(tmpai, tmpbi)\nprint(c)\n", 'a = int(input())\nprint(a+ a**2 + a**3)'] | ['Runtime Error', 'Accepted'] | ['s308407970', 's114022877'] | [27212.0, 9140.0] | [124.0, 29.0] | [1538, 38] |
p02621 | u638927522 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['[N,M,K]=map(int,(input().split()))\nA=[0]*N\nB=[0]*M\nA=list(map(int,input().split()))\nB=list(map(int,input().split()))\n\n\n\nKc=K\nbookc=0\n\nAi=0\nBi=0\n\nwhile Kc>0:\n if Ai<N:\n if Bi<M:\n if A[Ai]<=B[Bi] and A[Ai]<=Kc:\n bookc+=1\n Kc-=A[Ai]\n Ai+=1\n\n elif B[Bi]<=Kc:\n bookc+=1\n Kc-=B[Bi]\n Bi+=1\n else:\n break\n elif A[Ai]<=Kc:\n bookc+=1\n Kc-=A[Ai]\n Ai+=1\n else:\n break\n elif Bi<M:\n if B[Bi]<=Kc:\n bookc+=1\n Kc-=B[Bi]\n Bi+=1\n else:\n break\n if Ai==N and Bi==M:\n break\n\nprint(bookc)\n\n\n\n\n\n \n ', 'a=int(input())\nprint(a+a**2+a**3)'] | ['Runtime Error', 'Accepted'] | ['s349916556', 's102533243'] | [9248.0, 9140.0] | [26.0, 32.0] | [762, 33] |
p02621 | u640296846 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\nprint(a + a**2 + a**3', 'a = int(input())\nsum_a = a + a ** 2 + a ** 3\nprint(sum_a)'] | ['Runtime Error', 'Accepted'] | ['s761597426', 's320300696'] | [8876.0, 9056.0] | [24.0, 33.0] | [38, 57] |
p02621 | u643270269 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = input()\nprint(a + a*a + a*a*a)', 'a = int(input())\n\nprint(a + a**2 + a**3)'] | ['Runtime Error', 'Accepted'] | ['s040081514', 's223040277'] | [8916.0, 9088.0] | [24.0, 29.0] | [34, 40] |
p02621 | u643679148 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ["\n\ndef main():\n n, m, k = map(int, input().split())\n aa = list(map(int, input().split()))\n bb = list(map(int, input().split()))\n ans = []\n time_sum = 0\n for i in range(n):\n for j in range(1, m):\n time_sum = sum(aa[:i]) + sum(bb[:j])\n if time_sum <= k:\n ans.append(i+j)\n\n if(len(ans) == 1):\n return ans[0]\n else:\n return max(ans)\n\n\nif __name__ == '__main__':\n ans = main()\n print(ans)\n", 'a = int(input())\nans = 0\n\nfor i in range(1, 4):\n ans += a ** i\n\nprint(ans)\n'] | ['Runtime Error', 'Accepted'] | ['s974587812', 's047992144'] | [9100.0, 9144.0] | [33.0, 29.0] | [471, 78] |
p02621 | u645937929 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['s = input()\nt = input()\n\ncount = 0\n\nfor i in range(len(s)):\n if s[i] != t[i]:\n count += 1\n\nprint(count)', 'a = int(input())\n\nprint(a * (1 + a * (1 + a)))'] | ['Runtime Error', 'Accepted'] | ['s150228460', 's764803450'] | [8980.0, 9096.0] | [23.0, 25.0] | [113, 46] |
p02621 | u652656291 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\nprint(a(1+a+a*a))', 'a = int(input())\nprint(a*(1+a+a*a))\n'] | ['Runtime Error', 'Accepted'] | ['s906514408', 's054148331'] | [9152.0, 9140.0] | [23.0, 34.0] | [34, 36] |
p02621 | u654517927 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['num=int(input())\nprint(a+a*a+a*a*a)', 'a=int(input())\nprint(a+a*a+a*a*a)'] | ['Runtime Error', 'Accepted'] | ['s232113597', 's303598913'] | [9132.0, 9120.0] | [23.0, 26.0] | [35, 33] |
p02621 | u657352827 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\noutput = a + a^2 + a^3\nprint(output)', 'a = int(input())\noutput = a + a**2 + a**3\nprint(output)'] | ['Wrong Answer', 'Accepted'] | ['s206239282', 's525694509'] | [9148.0, 9048.0] | [29.0, 27.0] | [53, 55] |
p02621 | u658931690 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['print(a + a ** 2 + a ** 3)', 'a = int(input())\nprint(a + a**2 + a**3)'] | ['Runtime Error', 'Accepted'] | ['s696884316', 's468545042'] | [9008.0, 9140.0] | [24.0, 27.0] | [26, 39] |
p02621 | u667937724 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\n\nprint(a + a^2 + a^3)', 'N, M, K= map(int, input().split())\nA = list(map(int, input().split()))\nB = list(map(int, input().split()))\nt = 0\nn = 0\na = 0\nb = 0\n \nwhile K > t :\n if a < N and b < M :\n if A[a] <= B[b] :\n t += A[a]\n n += 1\n a += 1\n if K < t :\n n -=1\n break\n \n else :\n t +=B[b]\n n += 1\n b += 1\n if K < t :\n n -=1\n break\n \n elif a == N :\n while b < M :\n t += B[b]\n n += 1\n b += 1\n if K < t :\n n -=1\n break\n \n else :\n break\n \n else :\n while a < N :\n t += A[a]\n n += 1\n a += 1\n if K < t :\n n -=1\n break\n \nprint(n)', 'a = int(input())\n \nprint(a + a**2 + a**3)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s232324748', 's726470111', 's234053357'] | [9084.0, 9200.0, 9140.0] | [33.0, 28.0, 29.0] | [38, 854, 41] |
p02621 | u668552863 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ["in1 = input().split(' ')\nN=int(in1[0])\nM=int(in1[1])\nK=int(in1[2])\n\ninA = input().split(' ')\ninB = input().split(' ')\n\nT = 0\nAc=0\nBc=0\n\nwhile T < K:\n \n if Ac>=N and Bc>=M:\n break\n elif Ac>=N:\n Bn=int(inB[Bc])\n T+=Bn\n Bc+=1\n elif Bc>=M:\n An=int(inA[Ac])\n T+=An\n Ac+=1\n else:\n An=int(inA[Ac])\n Bn=int(inB[Bc])\n if An>Bn:\n T+=An\n Ac+=1\n else:\n T+=Bn\n Bc+=1\n \n \n\nprint(Ac+Bc)", 'a=int(input())\n\nprint(a+a*a+a*a*a)'] | ['Runtime Error', 'Accepted'] | ['s150918112', 's052105738'] | [9136.0, 9092.0] | [20.0, 28.0] | [431, 34] |
p02621 | u672822010 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = input()\nprint(a+a*a+a*a*a)\n', 'a = int(input())\nprint(a+a*a+a*a*a)\n'] | ['Runtime Error', 'Accepted'] | ['s724607920', 's519824532'] | [9028.0, 9076.0] | [27.0, 24.0] | [31, 36] |
p02621 | u684743124 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['N,M,K=map(int,input().split())\nA=list(map(int,input().split()))\nA.insert(0,0)\nB=list(map(int,input().split()))\nB.insert(0,0)\nbest=0\nfor a in range(len(A)):\n atime=0\n btime=0\n for i in range(a+1):\n atime=atime+A[i]\n if atime>K:\n break\n else:\n for b in range(len(B)):\n btime=btime+B[b]\n if atime+btime>K:\n book=a+b-1\n if book>best:\n best=book\n break\n else:\n book=a+b\n if book>best:\n best=book\nprint(best)', 'a=int(input())\nans=a+a**2+a**3\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s001180391', 's832431506'] | [9232.0, 8964.0] | [21.0, 27.0] | [574, 41] |
p02621 | u688649934 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['number = int(intput())\nprint(number + number**2 + number**3)\n', 'num = int(input())\nprint(num +num**2+ num**3)'] | ['Runtime Error', 'Accepted'] | ['s050057086', 's403082280'] | [8980.0, 9116.0] | [20.0, 27.0] | [61, 45] |
p02621 | u693105608 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['t=int(input())\nprint(int(t+(t^2)+(t^3)))', 'a = int(input())\nprint(int( (a) + (a**2) + (a**3) ))'] | ['Wrong Answer', 'Accepted'] | ['s389494253', 's737614600'] | [9148.0, 9076.0] | [25.0, 27.0] | [40, 52] |
p02621 | u693333798 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\nres = sum(a +(a**2)+(a**3))\nprint(res)', 'a = int(input())\nprint(sum(a +(a**2)+(a**3)))', 'a = int(input())\nprint(a +a**2+a**3)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s047541967', 's976356366', 's770778230'] | [9144.0, 9144.0, 9076.0] | [21.0, 21.0, 29.0] | [55, 45, 36] |
p02621 | u693783299 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=int(intput())\nprint(a+a^2+a^3)', 'a=int(input())\na+a**2+a**3', 'a=int(input())\nprint(a+a^2+a^3)', 'a=int(input())\na+a^2+a^3', 'a=int(intput())\na+a^2+a^3', 'a=int(input())\nprint(a+a**2+a**3)'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s064440115', 's503376859', 's812021449', 's948562213', 's949208709', 's955730307'] | [9064.0, 8864.0, 9144.0, 9136.0, 9068.0, 9088.0] | [27.0, 22.0, 29.0, 25.0, 24.0, 27.0] | [32, 26, 31, 24, 25, 33] |
p02621 | u694380052 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=int(input())\nans=a+a*a+a**2\nprint(ans)', 'a=int(input())\nans=a+a*a+a**3\nprint(ans)\n'] | ['Wrong Answer', 'Accepted'] | ['s805362212', 's682635950'] | [9164.0, 9064.0] | [30.0, 28.0] | [40, 41] |
p02621 | u694536861 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['n, m ,k = map(int,input().split())\na_list = [int(a) for a in input().split()]\nb_list = [int(b) for b in input().split()]\ntime = 0\na_num = 0\nb_num = 0\ncount = 0\n\n\nwhile True:\n \n if (len(a_list) < a_num + 1) and (len(b_list) < b_num + 1): \n break\n\n elif (len(a_list) < a_num + 1) and(len(b_list) >= b_num + 1):\n time += b_list[b_num] \n b_num += 1\n \n elif (len(a_list) >= a_num + 1) and (len(b_list) < b_num + 1):\n time += a_list[a_num] \n a_num += 1\n \n else:\n if sum(a_list[a_num:]) < sum(b_list[b_num:]):\n time += a_list[a_num]\n a_num += 1\n else:\n time += b_list[b_num] \n b_num += 1\n \n if time <= k:\n count += 1\n else:\n break\n\nprint(count)', 'a = int(input())\n\nprint(a+a*a+a*a*a)'] | ['Runtime Error', 'Accepted'] | ['s770749973', 's721317156'] | [9184.0, 9140.0] | [24.0, 33.0] | [833, 36] |
p02621 | u697377589 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['x = ["a", "b", "c"]\nprint(x[0], x[1], x[2])', 'a = int(input())\nprint(a + a * a + a * a * a)'] | ['Wrong Answer', 'Accepted'] | ['s026663936', 's602195490'] | [9000.0, 9152.0] | [29.0, 28.0] | [43, 45] |
p02621 | u697615293 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['num = int(input())\nans = 0\n\ndef divisor(n): \n i = 1\n table = []\n while i * i <= n:\n if n%i == 0:\n table.append(i)\n table.append(n//i)\n i += 1\n table = list(set(table))\n return table\n\nyaku_list = [len(divisor(i)) for i in range(1,num+1)]\n\nfor i,j in enumerate(yaku_list):\n ans += int(i+1) * int(j)\nprint(ans)', 'num = int(input())\n\nprint(int(num + (num)**2 + (num)**3))'] | ['Wrong Answer', 'Accepted'] | ['s296029729', 's421446051'] | [9200.0, 9144.0] | [33.0, 25.0] | [361, 57] |
p02621 | u701513230 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\n\nans = a(1+a+a**2)\nprint(int(ans))', 'a = int(input())\n\nans = a + a**2 + a**3\nprint(int(ans))'] | ['Runtime Error', 'Accepted'] | ['s428960719', 's124551210'] | [9136.0, 9012.0] | [23.0, 24.0] | [51, 55] |
p02621 | u702018889 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['s,t=input().split()\nans=0\nfor i in range(len(s)):\n if s[i]!=t[i]:\n ans+=1\nprint(ans)', 'a=int(input())\nprint(a+(a**2)+(a**3))'] | ['Runtime Error', 'Accepted'] | ['s376017607', 's921971118'] | [9028.0, 9148.0] | [30.0, 26.0] | [88, 37] |
p02621 | u713055298 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['N, M, K = map(int,input().split())\nA = list(map(int, input().split()))\nB = list(map(int, input().split()))\ntime = 0\nbooks = 0\nA.append(200001)\nB.append(200002)\n\nwhile time <= K:\n if A[0] < B[0]:\n time += A.pop(0)\n elif B[0] < A[0]:\n time += B.pop(0)\n elif B[0] == A[0]:\n if B[1] > A[1]:\n time += A.pop(0)\n else:\n time += B.pop(0)\n books += 1\nif books == 0:\n print(0)\nelse:\n print(books - 1)', 'a = int(input())\nprint(a+(a*a)+(a*a*a))'] | ['Runtime Error', 'Accepted'] | ['s023659169', 's632404783'] | [9004.0, 9144.0] | [25.0, 24.0] | [458, 39] |
p02621 | u713342695 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=input()\n\nprint(a+a*a+a*a*a)', 'a=int(input())\n\nprint(a+a*a+a*a*a)'] | ['Runtime Error', 'Accepted'] | ['s551460616', 's538846628'] | [9016.0, 8956.0] | [21.0, 28.0] | [29, 34] |
p02621 | u718949306 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['N, M, K = map(int, input().split())\nA = list(map(int, input().split()))\nB = list(map(int, input().split()))\na = [0]*(N+1)\nb = [0]*(M+1)\nX = 0\nY = 0\ncnt = 0\nfor n in range(N):\n a[n+1] = a[n] + A[n]\nfor n in range(M):\n b[n+1] = b[n] + B[n]\nfor n in range(1, N+1):\n if a[n] <= K:\n X = n\nfor m in range(1, M+1):\n if b[m] <= K:\n Y = m \nif a[X] < b[Y]:\n K = K - a[X]\n cnt += X\n if K - b[Y] == 0:\n cnt += Y\n else:\n for y in range(1, Y+1):\n if b[y] < K:\n cnt += 1\nelse:\n K = K - b[Y]\n cnt += Y\n if K - a[X] == 0:\n cnt += X\n else:\n for x in range(1, X+1):\n if a[x] < K:\n cnt += 1\nprint(cnt)', 'a = int(input())\n\nprint(a + a**2 + a**3)'] | ['Runtime Error', 'Accepted'] | ['s533945127', 's560417050'] | [9220.0, 9140.0] | [25.0, 29.0] | [711, 40] |
p02621 | u720065198 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\nprint(a+a**2+a***3)', 'a = int(input())\nprint(a+a**2+a**3)'] | ['Runtime Error', 'Accepted'] | ['s843024019', 's104110931'] | [9032.0, 9084.0] | [23.0, 27.0] | [36, 35] |
p02621 | u722217673 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['S = input()\nT = input()\nprint(sum(s != t for s, t in zip(S, T)))', 'a = int(input())\nprint(a + a**2 + a**3)'] | ['Runtime Error', 'Accepted'] | ['s472616284', 's224043615'] | [8864.0, 9000.0] | [27.0, 28.0] | [64, 39] |
p02621 | u724742135 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['from sys import stdin\na = stdin.readline().rstrip()\nprint(a+a**2+a**3)', 'from sys import stdin\na = int(stdin.readline().rstrip())\nprint(a+a**2+a**3)\n'] | ['Runtime Error', 'Accepted'] | ['s798214088', 's575205875'] | [9084.0, 9152.0] | [26.0, 24.0] | [70, 76] |
p02621 | u729679908 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['x = int(input())\nprint(x+x^2+x^3)', 'x = int(input())\nprint(x + x**2 + x**3)'] | ['Wrong Answer', 'Accepted'] | ['s579158394', 's816861366'] | [9056.0, 9088.0] | [25.0, 27.0] | [33, 39] |
p02621 | u736470924 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input)\nprint(a + a**2 + a**3)', 'def resolve():\n a = int(input())\n print(a + a**2 + a**3)\n\nresolve()'] | ['Runtime Error', 'Accepted'] | ['s915219735', 's439219346'] | [8940.0, 9144.0] | [32.0, 27.0] | [37, 73] |
p02621 | u738430530 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=int(input())\ninput(a+a*a+a**3)', 'a=int(input())\nprint(a+a*a+a*a*a)'] | ['Runtime Error', 'Accepted'] | ['s599287689', 's837496037'] | [9088.0, 9056.0] | [24.0, 26.0] | [32, 33] |
p02621 | u739045240 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = str(input())\ns = a + a**2 + a**3\nprint(s)', 'def cal():\n a=str(input())\n s=a+a**2+a**3\n return s', 'def cal():\n a = str(input())\n n = a + a**2 + a**3\n print(n)\n ', 'a = int(input())\nn = a + a**2 + a**3\nprint(n)'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s099220444', 's555728169', 's872402910', 's015290664'] | [9072.0, 8956.0, 8940.0, 9004.0] | [24.0, 26.0, 31.0, 32.0] | [45, 54, 65, 45] |
p02621 | u741579801 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = input()\nprint(a + a * a + a * a * a)', 'N = int(input())\n\nprint(N + N ** 2 + N ** 3)'] | ['Runtime Error', 'Accepted'] | ['s014690411', 's360866145'] | [9024.0, 9092.0] | [26.0, 29.0] | [40, 44] |
p02621 | u743539932 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\nprint(a * (a ** 3 - 1) / (a - 1))', 'a = int(input())\nprint(a * (1 + a * (1 + a)))'] | ['Runtime Error', 'Accepted'] | ['s746440775', 's410780910'] | [9088.0, 9096.0] | [26.0, 29.0] | [50, 45] |
p02621 | u749416810 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['for i in range(int(input())):\n n=int(input())\n s=n+n**2+n**3\n print(s)', 'def calc(n):\n s=n+n**2+n**3\n res=int(s)\n return res\nfor i in range(int(input())):\n n=int(input())\n print(calc(n))\n ', 'a=int(input())\ns=a+a**2+a**3\nres=int(s)\nprint(res)\n '] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s196627169', 's695677299', 's687492335'] | [9156.0, 9084.0, 9136.0] | [25.0, 23.0, 33.0] | [73, 121, 53] |
p02621 | u753971348 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['N, M, K = map(int, input().split())\nA = list(map(int, input().split()))\nB = list(map(int,input().split()))\na,b = [0],[0]\nfor i in range(N):\n a.append(a[i] + A[i])\n \nfor i in range(M):\n b.append(b[i] + B[i])\ntotaltime = 0\ncount,j = 0, M\n \nfor i in range(N+1):\n if a[i] > K:\n break\n while a[i] + b[j] > K:\n j -= 1\n count = max(count,i + j)\n \nprint(count)', 'N = int(input())\n\n\ndef g(n):\n return (n * (n + 1))//2\n\ntotal = 0\nfor i in range(1,N+1):\n total += i * g(N//i)\n \nprint(total)\n', 'a = input()\nfirst_a = a\nsecond_a = a**2\nthird_a = a**3\nsum_a = first_a + second_a+third_a', 'a = input()\nfirst_a = int(a)\nsecond_a = int(a)**2\nthird_a = int(a)**3\nsum_a = first_a + second_a + third_a\nprint(sum_a)'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s108098380', 's700980886', 's793766879', 's165752447'] | [9068.0, 9100.0, 9080.0, 9088.0] | [29.0, 29.0, 24.0, 26.0] | [384, 134, 89, 119] |
p02621 | u754022296 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['?ddd1+**+p', 'a = int(input())\nans = a + a**2 + a*a*a\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s202900797', 's483050880'] | [8960.0, 9144.0] | [26.0, 26.0] | [10, 50] |
p02621 | u756782069 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['N,M,K = map(int,input().split())\nA = list(map(int,input().split()))\nB = list(map(int,input().split()))\nA.append(10**9+1)\nB.append(10**9+1)\n\nAc = 0\nBc = 0\nTime = 0\nfor _ in range(N+M):\n if A[Ac] > B[Bc]:\n Time += B[Bc]\n Bc += 1\n if Time > K:\n Bc -= 1\n Time -= B[Bc]\n break\n else:\n Time += A[Ac]\n Ac += 1\n if Time > K:\n Ac -= 1\n Time -= A[Ac]\n break\n \nprint(Ac+Bc)', 'a = int(input())\nprint(a*(a*a+a+1))'] | ['Runtime Error', 'Accepted'] | ['s076822429', 's776565382'] | [9124.0, 8780.0] | [23.0, 26.0] | [487, 35] |
p02621 | u773305685 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=int(input())\nprint(a+a**2)', 'a=int(input())\nprint(a+a**2+a**3)'] | ['Wrong Answer', 'Accepted'] | ['s441825674', 's551791155'] | [9044.0, 8904.0] | [28.0, 33.0] | [28, 33] |
p02621 | u773686010 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['N = int(input())\nans = (N**2) + (N**3)\nprint(ans)\n', 'N = int(input())\nans = N + (N**2) + (N**3)\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s174443128', 's601520028'] | [9132.0, 9136.0] | [25.0, 25.0] | [50, 53] |
p02621 | u774500159 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = input()\nans = a + a ^ 2 + a ^ 3\nprint ans\n', 'a = int(input())\nans = a + a**2 + a**3\nprint(ans)\n'] | ['Runtime Error', 'Accepted'] | ['s563875304', 's138670871'] | [8952.0, 8824.0] | [27.0, 28.0] | [46, 50] |
p02621 | u775723163 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = input()\nprint(a + a**2 +a**3)', 'a = int(input())\n if 1<=a<=10: \n b = a + a**2 + a**3\n print(b)\n \n ', 'a = int(input())\nprint(a+a**2+a**3)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s078061732', 's829933027', 's957412593'] | [8924.0, 8824.0, 9112.0] | [28.0, 28.0, 29.0] | [33, 75, 36] |
p02621 | u778369409 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['N, M, K=[int(i) for i in input().split(" ")]\na=[int(i) for i in input().split(" ")]\nb=[int(i) for i in input().split(" ")]\n\nif (N>10**7) | (M>10**7) |(K>10**7):\n print(0)\nelse:\n time=0\n a_idx=0\n b_idx=0\n count=0\n while time<K:\n count+=1\n try:\n if a_idx+1==N:\n time+=b[b_idx]\n b_idx+=1\n if time>K:\n count-=1\n continue\n elif b_idx+1==M:\n time+=a[b_idx]\n a_idx+=1\n if time>K:\n count-=1\n continue \n\n if a[a_idx]<b[b_idx]:\n time+=a[a_idx]\n a_idx+=1\n\n elif a[a_idx]>b[b_idx]:\n time+=b[b_idx]\n b_idx+=1\n else:\n try:\n a_com=a_idx\n b_com=b_idx\n while True:\n if a[a_com]>b[b_com]:\n time+=a[a_idx]\n a_idx+=1\n break\n elif a[a_com]<b[b_com]:\n time+=b[b_idx]\n b_idx+=1\n break\n a_com+=1\n b_com+=1\n except:\n time+=a[a_idx]\n a_idx+=1\n if time>K:\n count-=1 \n except:\n break\n print(count) ', 'N, M, K=[int(i) for i in input().split(" ")]\na=[int(i) for i in input().split(" ")]\nb=[int(i) for i in input().split(" ")]\n\nif (N>10*8) | (M>10**8) |(K>10*8):\n print(0)\nelse:\n time=0\n a_idx=0\n b_idx=0\n count=0\n while time<K:\n count+=1\n try:\n if a_idx+1==N:\n time+=b[b_idx]\n b_idx+=1\n if time>K:\n count-=1\n continue\n elif b_idx+1==M:\n time+=a[b_idx]\n a_idx+=1\n if time>K:\n count-=1\n continue \n\n if a[a_idx]<b[b_idx]:\n time+=a[a_idx]\n a_idx+=1\n\n elif a[a_idx]>b[b_idx]:\n time+=b[b_idx]\n b_idx+=1\n else:\n try:\n a_com=a_idx\n b_com=b_idx\n while True:\n if a[a_com]>b[b_com]:\n time+=a[a_idx]\n a_idx+=1\n break\n elif a[a_com]<b[b_com]:\n time+=b[b_idx]\n b_idx+=1\n break\n a_com+=1\n b_com+=1\n except:\n time+=a[a_idx]\n a_idx+=1\n if time>K:\n count-=1 \n except:\n break\n print(count) ', 'a=int(input())\nprint(a+a**2+a**3)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s030403775', 's072658618', 's838365833'] | [9296.0, 9148.0, 9084.0] | [23.0, 25.0, 33.0] | [1521, 1519, 33] |
p02621 | u779602548 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['import sys\ninput = sys.stdin.readline\n#-------------------------------------\n\nc = int(input())\nprint( c*6 )', 'import sys\ninput = sys.stdin.readline\n#-------------------------------------\n\nc = int(input())\nprint( c+c**2+c**3 )'] | ['Wrong Answer', 'Accepted'] | ['s088121238', 's148432654'] | [9144.0, 9100.0] | [32.0, 25.0] | [107, 115] |
p02621 | u785354231 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['data = [int(k) for k in input().split()]\n\nA = data[0]\nB = data[1]\nK = data[2]\n\nAbooks = [int(k) for k in input().split()]\nBbooks = [int(k) for k in input().split()]\n\n\ntime = 0\nnbOfBooks = 0\n\nwhile (time + Bbooks[0]) <= K or (time + Abooks[0]) <= K:\n\t\n\t\t\n\tif Abooks[0] >= Bbooks[0]:\n\t\t\n\t\ttime += Bbooks[0]\n\t\t\n\t\tif len(Bbooks) == 1:\n\t\t\tBbooks[0] = 10**9+1\n\t\telse:\n\n\t\t\tBbooks.pop()\n\t\t\n\t\tnbOfBooks += 1\n\n\telse:\n\t\t\n\t\ttime += Abooks[0]\n\t\t\n\t\tif len(Abooks) == 1:\n\t\t\tAbooks[0] = 10**9+1\n\t\t\n\t\telse:\n\n\t\t\tAbooks.pop()\n\t\tnbOfBooks += 1 \n\n\nprint(nbOfBooks)', 'nb = int(input())\nprint(str(nb + nb**2 + nb**3))'] | ['Runtime Error', 'Accepted'] | ['s933881228', 's208247438'] | [9188.0, 9144.0] | [24.0, 34.0] | [544, 48] |
p02621 | u785415976 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\n\nprint(round(a*a*a+a*a+a)', 'a = int(input())\n\nprint(round(a*a*a+a*a+a))'] | ['Runtime Error', 'Accepted'] | ['s280920317', 's182253562'] | [8948.0, 9064.0] | [27.0, 29.0] | [42, 43] |
p02621 | u785728112 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\nprint(a+a^2+a^3)', 'a = int(input())\ns = a+a**2+a**3\nprint(s)'] | ['Wrong Answer', 'Accepted'] | ['s710990317', 's837470076'] | [9176.0, 9140.0] | [24.0, 25.0] | [33, 41] |
p02621 | u789436713 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=int(input)\nprint(a+a**2+a**3)', 'a=int(input())\nprint(a+a**2+a**3)'] | ['Runtime Error', 'Accepted'] | ['s773470243', 's262100013'] | [9072.0, 9144.0] | [28.0, 35.0] | [31, 33] |
p02621 | u796044734 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\n\nans = a + a^2 + a^3\nans = int(ans)\n\nprint(ans)\n', 'a = int(input())\n\nans = a + a^2 + a^3\n\nprint(ans)', 'import math\nn,m,k = map(int,input().split())\na = list(map(int,input().split()))\nb = list(map(int,input().split()))\na.append(10**10)\nb.append(10**10)\n\nif a[0]>k and b[0]>k:\n print(0)\nelse:\n if sum(a)+sum(b)<=k:\n print(n+m)\n else:\n ans=0\n time=0\n for i in range(n+m):\n ans += 1 \n if a[0]<=b[0]:\n time+=a.pop(0)\n else:\n time+=b.pop(0)\n \n if time>k:\n break\n print(ans-1)', 'a = int(input())\n\nans = a + a*a + a*a*a\nans = int(ans)\n\nprint(ans)\n'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s003331234', 's201858213', 's268677325', 's538972391'] | [9140.0, 9084.0, 9084.0, 9080.0] | [31.0, 33.0, 27.0, 27.0] | [65, 49, 433, 67] |
p02621 | u798093965 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | [' a = int(input())\n sum = int(a + a * a + a * a * a)\n print(sum)', 'a = int(input())\nsum = int(a + a * a + a * a * a)\nprint(sum)'] | ['Runtime Error', 'Accepted'] | ['s440137855', 's854456124'] | [8936.0, 9140.0] | [28.0, 28.0] | [63, 60] |
p02621 | u798260206 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input)\n\nans = a + a**2 + a**3\n\nprint(ans)', 'a = int(input())\n\nans = a + a**2 + a**3\n\nprint(ans)\n'] | ['Runtime Error', 'Accepted'] | ['s353002728', 's740192045'] | [9084.0, 9136.0] | [26.0, 28.0] | [49, 52] |
p02621 | u799107696 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=input()\nans=a+a^2+a^3\nprint(ans)', '\na = input()\nprint(a+a**2+a**3)', 'int a=input()\nprint(a+a**2+a**3)', '\na = input()\nprint(a+a**2+a**3)', 'import sys\na = input()\nprint(a+a^2+a^3)', '\na = input()\nprint(a+a ** 2+a ** 3)', ' a=input(int())\nprint(a+a**2+a**3)', 'a = int(input())\nprint(a+a**2+a**3)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s111898511', 's426319762', 's475946780', 's574862979', 's745797544', 's845676688', 's868686895', 's000497487'] | [9056.0, 8964.0, 9000.0, 9000.0, 8936.0, 9012.0, 8852.0, 9060.0] | [26.0, 27.0, 23.0, 25.0, 29.0, 24.0, 22.0, 28.0] | [34, 31, 32, 31, 39, 35, 34, 35] |
p02621 | u802781234 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['def main():\n import sympy\n n = int(input())\n s = 0\n \n for i in range(1,n+1):\n s += i * len(sympy.divisors(i))\n print(s)\n\nmain()', 'def main():\n a = int(input())\n print(a + pow(a,2) + pow(a,3))\n\nmain()'] | ['Runtime Error', 'Accepted'] | ['s740192066', 's958511162'] | [9096.0, 9144.0] | [24.0, 31.0] | [152, 75] |
p02621 | u803503672 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['n = map(x**3 + x**2 + x,int(input()))\nprint(n)', 'a = int(input())\nprint(a + a**2 + a**3)'] | ['Runtime Error', 'Accepted'] | ['s221916997', 's740716766'] | [8988.0, 9104.0] | [22.0, 29.0] | [46, 39] |
p02621 | u805586810 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ["def A(x):\n return x + x**2 + x**3\n\n\n\ndef main():\n print(A(input()))\n\n\nif __name__ == '__main__':\n main()\n", "def A(x):\n return x + x**2 + x**3\n\n\ndef B(n, k, p_list):\n pass\n\n\ndef C(N):\n pass\n\n\ndef main():\n print(A(int(input())))\n # letter = input()\n # A(letter)\n # for x in ['A', 'Z', 'a', 'z']:\n # A(x)\n\n\nif __name__ == '__main__':\n main()\n"] | ['Runtime Error', 'Accepted'] | ['s626962176', 's778247467'] | [9076.0, 9148.0] | [23.0, 30.0] | [108, 242] |
p02621 | u806392288 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['A = int(input())\n\nprint(a+a**2+a**3)', 'a = int(input())\n\nprint(a+a**2+a**3)\n'] | ['Runtime Error', 'Accepted'] | ['s161833754', 's487970881'] | [9148.0, 9136.0] | [23.0, 23.0] | [36, 37] |
p02621 | u807113266 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['d = int(input())\nprint(int(d+d**2+d***3))', 'k = int(input())\nprint(int(k+k**2+k**3))'] | ['Runtime Error', 'Accepted'] | ['s893815636', 's205759127'] | [8900.0, 9024.0] | [21.0, 25.0] | [41, 40] |
p02621 | u812354010 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=input()\nprint(a+a^2+a^3)', 'a=int(input())\nprint(a+a**2+a**3)\n'] | ['Runtime Error', 'Accepted'] | ['s492531302', 's217687430'] | [9092.0, 9012.0] | [23.0, 27.0] | [26, 34] |
p02621 | u814271993 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=int(input()) \nprint(a+a*a+a**3)\u3000', 'a=int(input()) \nprint(a+a*a+a**3)\u3000\n', 'a=int(input()) \nprint(a+a*a+a**3)\u3000', 'a=int(input())\nprint(a+a*a+a**3)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s249180549', 's712425090', 's913245255', 's282955163'] | [8856.0, 8884.0, 8876.0, 9104.0] | [26.0, 25.0, 26.0, 24.0] | [36, 105, 36, 32] |
p02621 | u821262411 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=int(input())\nprint(a*+a*a+a**3)\n', 'a=int(input())\nprint(a+a*a+a**3)\n'] | ['Wrong Answer', 'Accepted'] | ['s033779726', 's837170065'] | [9132.0, 9132.0] | [29.0, 36.0] | [34, 33] |
p02621 | u821265215 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\nprint(a + a * 2 + a * 3)', 'a = int(input())\nprint(a + a ** 2 + a ** 3)'] | ['Wrong Answer', 'Accepted'] | ['s169478528', 's074304105'] | [9140.0, 9120.0] | [31.0, 32.0] | [41, 43] |
p02621 | u829364446 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=int(input("a="))\nprint(a+a**2+a**3)', 'a=int(input())\nprint(a+a**2+a**3)'] | ['Wrong Answer', 'Accepted'] | ['s104385184', 's850201862'] | [9164.0, 8876.0] | [27.0, 26.0] | [37, 33] |
p02621 | u829391045 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['from numba import njit\n\n@njit("i8(i8)")\ndef solve(n):\n s = [1] * (n+1)\n ans = 1\n for i in range(2,n+1):\n for j in range(i,n+1,i):\n s[j] += 1\n ans += (i * s[i])\n\treturn ans\nn = int(input()) \nprint(solve(n))\n', 'a = int(input())\nprint(a + pow(a, 2) + pow(a,3))'] | ['Runtime Error', 'Accepted'] | ['s021198360', 's705123368'] | [9032.0, 9148.0] | [25.0, 27.0] | [240, 48] |
p02621 | u829416877 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['N,M,K = map(int, input().split())\nA = list(map(int, input().split()))\nB = list(map(int, input().split()))\nfor i in range(N):\n del A[1]\n del B[1]', 'a = int(input())\nprint(a+a*a+a*a*a)'] | ['Runtime Error', 'Accepted'] | ['s181402253', 's963399628'] | [9116.0, 9144.0] | [30.0, 23.0] | [146, 35] |
p02621 | u829573578 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['n=int(input())\np=a+a**2+a**3\nprint(p)', 'a=int(input())\np=a+a**2+a**3\nprint(p)'] | ['Runtime Error', 'Accepted'] | ['s345862003', 's349381403'] | [9056.0, 9056.0] | [25.0, 26.0] | [37, 37] |
p02621 | u833436666 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['import sys\nimport math\nimport numpy as np\nimport functools\nimport operator\nimport collections\nimport itertools\n#import sympy\ndef make_divisors(n):\n lower_divisors , upper_divisors = [], []\n i = 1\n while i*i <= n:\n if n % i == 0:\n lower_divisors.append(i)\n if i != n // i:\n upper_divisors.append(n//i)\n i += 1\n return lower_divisors + upper_divisors[::-1]\nN=int(input())\nans=0\nfor i in range(1,N+1):\n ans+=i*len(make_divisors(i))\nprint(ans)', 'import sys\nimport math\nimport numpy as np\nimport functools\nimport operator\nimport collections\nimport itertools\n\na=int(input())\nprint(a+a*a+a*a*a)'] | ['Wrong Answer', 'Accepted'] | ['s852037219', 's236083986'] | [27156.0, 27168.0] | [121.0, 118.0] | [505, 145] |
p02621 | u841942209 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['s=input()\n\nint a = s*s*s+s*s+s\n\n return', 'from sys import stdin\ninput = stdin.readline\ns = int(input())\n\nN=s+s*s+s*s*s\n\nprint (type(N), N) \n', 'S = list(input ())\nT = list(input ())\na = len(S)\nchange_time = 0\n \nfor i in range(a):\n if S[i] ==T[i]:\n \tcontinue\n \n else:\n \tS[i] =T[i]\n \tchange_time += 1\n \n \nprint(change_time)', 'S = list(input ())\nT = list(input ())\na = len(S)\nchange_time = 0\n \nfor i in a:\n if S[i] ==T[i]:\n \tcontinue\n \n else:\n \tS[i] =T[i]\n \tchange_time += 1\n \n \nprint(change_time)', 's = int(input())\n \nN=s+s*s+s*s*s\n \nprint (N)'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s101958059', 's352326597', 's678272183', 's912072166', 's631232126'] | [9008.0, 9148.0, 9008.0, 8972.0, 9124.0] | [25.0, 33.0, 23.0, 28.0, 27.0] | [39, 98, 185, 178, 44] |
p02621 | u843768197 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = input()\nprint(a + a**2 + a**3)', 'a = int(input())\nprint(int(a + a**2 + a**3))'] | ['Runtime Error', 'Accepted'] | ['s882398393', 's754086468'] | [8736.0, 9104.0] | [31.0, 27.0] | [34, 44] |
p02621 | u845573105 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a= int(input())\nprint(a + (a**2) + (a***3))', 'a= int(input())\nprint(a + (a**2) + (a**3))'] | ['Runtime Error', 'Accepted'] | ['s793023715', 's447757479'] | [8952.0, 9144.0] | [28.0, 25.0] | [43, 42] |
p02621 | u848535504 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a=int(input());print(a-~a**3)', 'a=int(input());print(a+a*a+a*a*a)'] | ['Wrong Answer', 'Accepted'] | ['s921045086', 's111937678'] | [9120.0, 9160.0] | [28.0, 26.0] | [29, 33] |
p02621 | u850180662 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['s, t = input(), input()\n\nx = list(filter(lambda i:s[i] != t[i], range(len(s)) ))\n\nprint(len(x))', 'N, M, K = map(int, input().split())\nA = list(map(int, input().split()))\nB = list(map(int, input().split()))\n\na, b = [0], [0]\nfor i in range(N):\na.append(a[i] + A[i])\nfor i in range(M):\nb.append(b[i] + B[i])\n\nans, j = 0, M\nfor i in range(N + 1):\n if a[i] > K:\n break\n while b[j] > K - a[i]:\n j -= 1\nans = max(ans, i + j)\nprint(ans)', 'a = int(input())\nprint(a + a**2 + a**3)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s711730142', 's823911192', 's365526564'] | [8956.0, 8840.0, 9144.0] | [21.0, 27.0, 27.0] | [95, 340, 40] |
p02621 | u853036847 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['input = int(input())\nprint(a + a**2 + a**3)', 'a = int(input())\nprint(a + a**2 + a**3)'] | ['Runtime Error', 'Accepted'] | ['s198731074', 's284100545'] | [9140.0, 9168.0] | [23.0, 32.0] | [43, 39] |
p02621 | u853728588 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\ntotal = a + a**2 + a**3\nptint(total)', 'a = int(input())\ntotal = a + a**2 + a**3\nprint(a)', 'a = int(input())\ntotal = a + a**2 + a**3\nprint(total)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s850623957', 's966752386', 's687829357'] | [9088.0, 9144.0, 9104.0] | [24.0, 27.0, 27.0] | [53, 49, 53] |
p02621 | u854685063 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['2import sys\nimport math\nimport itertools as it\ndef I():return int(sys.stdin.readline().replace("\\n",""))\ndef I2():return map(int,sys.stdin.readline().replace("\\n","").split())\ndef S():return str(sys.stdin.readline().replace("\\n",""))\ndef L():return list(sys.stdin.readline().replace("\\n",""))\ndef Intl():return [int(k) for k in sys.stdin.readline().replace("\\n","").split()]\ndef Lx(k):return list(map(lambda x:int(x)*-k,sys.stdin.readline().replace("\\n","").split()))\n\nif __name__ == "__main__":\n a = I()\n print(a+a**2+a**3)', 'import sys\nimport math\nimport itertools as it\ndef I():return int(sys.stdin.readline().replace("\\n",""))\ndef I2():return map(int,sys.stdin.readline().replace("\\n","").split())\ndef S():return str(sys.stdin.readline().replace("\\n",""))\ndef L():return list(sys.stdin.readline().replace("\\n",""))\ndef Intl():return [int(k) for k in sys.stdin.readline().replace("\\n","").split()]\ndef Lx(k):return list(map(lambda x:int(x)*-k,sys.stdin.readline().replace("\\n","").split()))\n\nif __name__ == "__main__":\n a = I()\n print(a+a**2+a**3)'] | ['Runtime Error', 'Accepted'] | ['s160537391', 's513431448'] | [8956.0, 9200.0] | [26.0, 30.0] | [530, 529] |
p02621 | u860770127 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['s = [input() for i in range(2)]\nS = s[0]\nT = s[1]\nprint(S)\nprint(T)\n\n\ndef count_diff2(s, t):\n cnt = 0\n for c1,c2 in zip(s, t):\n if c1 != c2:\n cnt += 1\n return cnt\n\nprint(count_diff2(S, T))', '# -*- coding: utf-8 -*-\nval_1 = int(input())\nval_2 = val_1 * val_1\nval_3 = val_1 * val_1 * val_1\n\nanswer = val_1 + val_2 + val_3\nprint(answer)'] | ['Runtime Error', 'Accepted'] | ['s056402313', 's082239893'] | [9080.0, 9156.0] | [29.0, 34.0] | [215, 142] |
p02621 | u860966226 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = input()\nprint(a + a ** 2 + a ** 3)', 'a = int(input())\nprint(a + a ** 2 + a ** 3)'] | ['Runtime Error', 'Accepted'] | ['s135151216', 's726415572'] | [8912.0, 9132.0] | [27.0, 29.0] | [38, 43] |
p02621 | u861038878 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = input()\n\nprint(a + a*a + a*a*a)', 'a = int(input())\n\nprint(a + a*a + a*a*a)\n'] | ['Runtime Error', 'Accepted'] | ['s538923222', 's175955673'] | [8964.0, 9136.0] | [29.0, 25.0] | [35, 41] |
p02621 | u863371419 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\nprint(a,a**2,a**3)', 'a = int(input())\nprint(a+a**2+a**3)'] | ['Wrong Answer', 'Accepted'] | ['s431443270', 's621984781'] | [9020.0, 8740.0] | [26.0, 25.0] | [35, 35] |
p02621 | u865468578 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\nb = a + a ** 2 + a ** 10\n', 'a + a ** 2 + a ** 10', 'a = int(input())\nb = a + a ** 2 + a ** 3\n', 'a = int(input())\nb = a + a ** 2 + a ** 3\nprint (b)\n'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s024094744', 's481545862', 's741140281', 's200176734'] | [9108.0, 9088.0, 9104.0, 9148.0] | [28.0, 24.0, 25.0, 28.0] | [42, 20, 41, 51] |
p02621 | u869265610 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['N = int(input())\nprint(N+N**2+N***3)', 'N = int(input())\nprint(N+N**2+N**3)\n'] | ['Runtime Error', 'Accepted'] | ['s653063786', 's062169972'] | [9008.0, 9132.0] | [21.0, 28.0] | [36, 36] |
p02621 | u875608890 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['N, M, K = map(int,input().split())\nA = list(map(int,input().split()))\nB = list(map(int,input().split()))\nsum_list = []\nfor i in range(N):\n if K < sum(A[:i+1]):\n break\n for j in range(M):\n sum_ = sum(A[:i+1]) + sum(B[:j+1])\n if sum_ <= K:\n sum_list.append(len(A[:i+1]) + len(B[:j+1]))\n elif K < sum_:\n break\nif 1 <= len(sum_list):\n print(max(sum_list))\nelif 0 == len(sum_list):\n print(0)', 'a = int(input())\nres = a + a**2 + a**3\nprint(res)'] | ['Runtime Error', 'Accepted'] | ['s317266945', 's209870991'] | [9180.0, 9144.0] | [25.0, 38.0] | [412, 49] |
p02621 | u878389297 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['2', 'a=int(input())\nprint(a+a**2+a**3)'] | ['Wrong Answer', 'Accepted'] | ['s774749576', 's696218328'] | [9144.0, 9076.0] | [27.0, 32.0] | [1, 33] |
p02621 | u882616665 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\nprint(a**2+a+1)', 'a = int(input())\n\nprint(a+a**2+a**3)'] | ['Wrong Answer', 'Accepted'] | ['s072352807', 's681025706'] | [9092.0, 9144.0] | [32.0, 32.0] | [32, 36] |
p02621 | u886718563 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['a = int(input())\nprint(int(a+a^2+a3))', 'a = int(input())\nprint(a+a^2+a^3)', 'a = int(input())\nprint(int(a + a**2 + a**3))'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s107952770', 's309050016', 's568481830'] | [9092.0, 8884.0, 9136.0] | [23.0, 27.0, 26.0] | [37, 33, 44] |
p02621 | u888337853 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ["import sys\n# import re\nimport math\nimport collections\n\nimport bisect\nimport itertools\nimport fractions\n# import functools\nimport copy\n# import heapq\nimport decimal\n# import statistics\nimport queue\n\n# import numpy as np\n\nsys.setrecursionlimit(10000001)\nINF = 10 ** 16\nMOD = 10 ** 9 + 7\n# MOD = 998244353\n\nni = lambda: int(sys.stdin.readline())\nns = lambda: map(int, sys.stdin.readline().split())\nna = lambda: list(map(int, sys.stdin.readline().split()))\n\n\n# ===CODE===\n\ndef main():\n i = nis()\n print(i + i ** 2 + i ** 3)\n\n\nif __name__ == '__main__':\n main()\n", "import sys\n# import re\nimport math\nimport collections\n\nimport bisect\nimport itertools\nimport fractions\n# import functools\nimport copy\n# import heapq\nimport decimal\n# import statistics\nimport queue\n\n# import numpy as np\n\nsys.setrecursionlimit(10000001)\nINF = 10 ** 16\nMOD = 10 ** 9 + 7\n# MOD = 998244353\n\nni = lambda: int(sys.stdin.readline())\nns = lambda: map(int, sys.stdin.readline().split())\nna = lambda: list(map(int, sys.stdin.readline().split()))\n\n\n# ===CODE===\n\ndef main():\n i = ni()\n print(i + i ** 2 + i ** 3)\n\n\nif __name__ == '__main__':\n main()\n"] | ['Runtime Error', 'Accepted'] | ['s175785008', 's340275174'] | [10700.0, 10788.0] | [38.0, 42.0] | [582, 581] |
p02621 | u890601892 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['input = int(raw_input())\nprint (input + input ** 2 + input ** 3)', 'firstString = input()\nsecondString = input()\ndiff = 0\nfor i in range(len(firstString)):\n if firstString[i] != secondString[i]:\n diff += 1\nprint(diff)', 'input = int(input())\nprint (input + input ** 2 + input ** 3)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s753800738', 's806035608', 's524334330'] | [8948.0, 9056.0, 9076.0] | [23.0, 28.0, 27.0] | [64, 159, 60] |
p02621 | u893197162 | 2,000 | 1,048,576 | Given an integer a as input, print the value a + a^2 + a^3. | ['n = int(input())\ns = 0\nfor i in range(1,4):\n s += n**i', 'n = int(input())\ns = 0\nfor i in range(1,4):\n s += a**i', 'a = int(input())\nres = a**1+a**2+a**3\nprint(res)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s019092983', 's896945197', 's178773924'] | [9004.0, 9064.0, 9136.0] | [26.0, 19.0, 34.0] | [55, 55, 48] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.