TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
f = open('input.txt', 'r')
sys.stdin = f
N,M,K = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))

ai =0
bi=0
st =0
c = 0
while True:
  if ai == N:
    if bi == M:
      break
    else:
      st += b[bi]
      if st > K:
        break
      bi += 1
      c +=1
  elif bi == M:
    if ai == N:
      break
    else:
      st += a[ai]
      if st > K:
        break
      ai += 1
      c += 1
  elif a[ai] > b[bi]:
    st += b[bi]
    if st > K:
      break
    bi +=1
    c +=1
  elif a[ai] < b[bi]:
    st += a[ai]
    if st > K:
      break
    ai +=1
    c +=1
  elif a[ai] == b[bi]:
    tmpst = st
    tmpc =0
    tmpai = ai
    tmpbi = bi
    while True:
      tmpst +=a[tmpai]
      if tmpai < N-1:
        tmpai+=1
      if tmpbi < M-1:
        tmpbi+=1
      if tmpst > K:
        st += a[ai]
        if st > K:
          print(c)
          exit()
        ai +=1
        c +=1
        #print(c+tmpc,'ja')
        #exit()
      if a[tmpai] > b[tmpbi]:
          st += b[bi]
          if st > K:
              print(c)
              exit()
          bi += 1
          c += 1
          break
      elif a[tmpai] < b[tmpbi]:
          st += a[ai]
          if st > K:
              print(c)
              exit()
          ai += 1
          c += 1
          break
      if tmpai == N-1 and tmpbi == M-1:
          print(N+M)
          exit()
      #print(tmpst)
      tmpc += 1
      #print(tmpai, tmpbi)
print(c)


a = int(input())
print(a+ a**2 + a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
[N,M,K]=map(int,(input().split()))
A=[0]*N
B=[0]*M
A=list(map(int,input().split()))
B=list(map(int,input().split()))



Kc=K
bookc=0

Ai=0
Bi=0

while Kc>0:
    if Ai<N:
        if Bi<M:
            if A[Ai]<=B[Bi] and A[Ai]<=Kc:
                bookc+=1
                Kc-=A[Ai]
                Ai+=1

            elif B[Bi]<=Kc:
                bookc+=1
                Kc-=B[Bi]
                Bi+=1
            else:
                break
        elif A[Ai]<=Kc:
            bookc+=1
            Kc-=A[Ai]
            Ai+=1
        else:
            break
    elif Bi<M:
        if B[Bi]<=Kc:
            bookc+=1
            Kc-=B[Bi]
            Bi+=1
        else:
            break
    if Ai==N and Bi==M:
        break

print(bookc)





    
        

a=int(input())
print(a+a**2+a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())
print(a + a**2 + a**3

a = int(input())
sum_a = a + a ** 2 + a ** 3
print(sum_a)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = input()
print(a + a*a + a*a*a)

a = int(input())

print(a + a**2 + a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):


def main():
    n, m, k = map(int, input().split())
    aa = list(map(int, input().split()))
    bb = list(map(int, input().split()))
    ans = []
    time_sum = 0
    for i in range(n):
        for j in range(1, m):
            time_sum = sum(aa[:i]) + sum(bb[:j])
            if time_sum <= k:
                ans.append(i+j)

    if(len(ans) == 1):
        return ans[0]
    else:
        return max(ans)


if __name__ == '__main__':
    ans = main()
    print(ans)


a = int(input())
ans = 0

for i in range(1, 4):
    ans += a ** i

print(ans)


Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
s = input()
t = input()

count = 0

for i in range(len(s)):
    if s[i] != t[i]:
        count += 1

print(count)

a = int(input())

print(a * (1 + a * (1 + a)))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())
print(a(1+a+a*a))

a = int(input())
print(a*(1+a+a*a))


Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
num=int(input())
print(a+a*a+a*a*a)

a=int(input())
print(a+a*a+a*a*a)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())
output = a + a^2 + a^3
print(output)

a = int(input())
output = a + a**2 + a**3
print(output)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
print(a + a ** 2 + a ** 3)

a = int(input())
print(a + a**2 + a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())

print(a + a^2 + a^3)

N, M, K= map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
t = 0
n = 0
a = 0
b = 0
 
while K > t :
    if a < N and b < M :
        if A[a] <= B[b] :
            t += A[a]
            n += 1
            a += 1
            if K < t :
                n -=1
                break
 
        else :
            t +=B[b]
            n += 1
            b += 1
            if K < t :
                n -=1
                break
    
    elif a == N :
        while b < M :
            t += B[b]
            n += 1
            b += 1
            if K < t :
                n -=1
                break
        
        else :
            break
 
    else :
        while a < N :
            t += A[a]
            n += 1
            a += 1
            if K < t :
                n -=1
                break
 
print(n)

a = int(input())
 
print(a + a**2 + a**3)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
in1 = input().split(' ')
N=int(in1[0])
M=int(in1[1])
K=int(in1[2])

inA = input().split(' ')
inB = input().split(' ')

T = 0
Ac=0
Bc=0

while T < K:
  
  if Ac>=N and Bc>=M:
    break
  elif Ac>=N:
    Bn=int(inB[Bc])
    T+=Bn
    Bc+=1
  elif Bc>=M:
    An=int(inA[Ac])
    T+=An
    Ac+=1
  else:
    An=int(inA[Ac])
    Bn=int(inB[Bc])
    if An>Bn:
      T+=An
      Ac+=1
    else:
      T+=Bn
      Bc+=1
  
  

print(Ac+Bc)

a=int(input())

print(a+a*a+a*a*a)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = input()
print(a+a*a+a*a*a)


a = int(input())
print(a+a*a+a*a*a)


Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
N,M,K=map(int,input().split())
A=list(map(int,input().split()))
A.insert(0,0)
B=list(map(int,input().split()))
B.insert(0,0)
best=0
for a in range(len(A)):
    atime=0
    btime=0
    for i in range(a+1):
        atime=atime+A[i]
        if atime>K:
          break
    else:
        for b in range(len(B)):
            btime=btime+B[b]
            if atime+btime>K:
                book=a+b-1
                if book>best:
                    best=book
                break
        else:
            book=a+b
            if book>best:
                best=book
print(best)

a=int(input())
ans=a+a**2+a**3
print(ans)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
number = int(intput())
print(number + number**2 + number**3)


num = int(input())
print(num +num**2+ num**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
t=int(input())
print(int(t+(t^2)+(t^3)))

a = int(input())
print(int( (a) + (a**2) + (a**3) ))

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())
res = sum(a +(a**2)+(a**3))
print(res)

a = int(input())
print(sum(a +(a**2)+(a**3)))

a = int(input())
print(a +a**2+a**3)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=int(intput())
print(a+a^2+a^3)

a=int(input())
a+a**2+a**3

a=int(input())
print(a+a^2+a^3)

a=int(input())
a+a^2+a^3

a=int(intput())
a+a^2+a^3

a=int(input())
print(a+a**2+a**3)

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=int(input())
ans=a+a*a+a**2
print(ans)

a=int(input())
ans=a+a*a+a**3
print(ans)


Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
n, m ,k = map(int,input().split())
a_list = [int(a) for a in input().split()]
b_list = [int(b) for b in input().split()]
time = 0
a_num = 0
b_num = 0
count = 0


while True:
    
    if (len(a_list) < a_num + 1) and (len(b_list) < b_num + 1): 
        break

    elif  (len(a_list) < a_num + 1) and(len(b_list) >= b_num + 1):
        time += b_list[b_num]      
        b_num += 1
     
    elif (len(a_list) >= a_num + 1) and (len(b_list) < b_num + 1):
        time += a_list[a_num]      
        a_num += 1
        
    else:
        if sum(a_list[a_num:]) < sum(b_list[b_num:]):
            time += a_list[a_num]
            a_num += 1
        else:
            time += b_list[b_num]      
            b_num += 1
    
    if time <= k:
        count += 1
    else:
        break

print(count)

a = int(input())

print(a+a*a+a*a*a)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
x = ["a", "b", "c"]
print(x[0], x[1], x[2])

a = int(input())
print(a + a * a + a * a * a)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
num = int(input())
ans = 0

def divisor(n): 
    i = 1
    table = []
    while i * i <= n:
        if n%i == 0:
            table.append(i)
            table.append(n//i)
        i += 1
    table = list(set(table))
    return table

yaku_list = [len(divisor(i)) for i in range(1,num+1)]

for i,j in enumerate(yaku_list):
    ans += int(i+1) * int(j)
print(ans)

num = int(input())

print(int(num + (num)**2 + (num)**3))

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())

ans = a(1+a+a**2)
print(int(ans))

a = int(input())

ans = a + a**2 + a**3
print(int(ans))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
s,t=input().split()
ans=0
for i in range(len(s)):
  if s[i]!=t[i]:
    ans+=1
print(ans)

a=int(input())
print(a+(a**2)+(a**3))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
N, M, K = map(int,input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
time = 0
books = 0
A.append(200001)
B.append(200002)

while time <= K:
    if A[0] < B[0]:
        time += A.pop(0)
    elif B[0] < A[0]:
        time += B.pop(0)
    elif B[0] == A[0]:
        if B[1] > A[1]:
            time += A.pop(0)
        else:
            time += B.pop(0)
    books += 1
if books == 0:
    print(0)
else:
    print(books - 1)

a = int(input())
print(a+(a*a)+(a*a*a))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=input()

print(a+a*a+a*a*a)

a=int(input())

print(a+a*a+a*a*a)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
N, M, K = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
a = [0]*(N+1)
b = [0]*(M+1)
X = 0
Y = 0
cnt = 0
for n in range(N):
    a[n+1] = a[n] + A[n]
for n in range(M):
    b[n+1] = b[n] + B[n]
for n in range(1, N+1):
    if a[n] <= K:
        X = n
for m in range(1, M+1):
    if b[m] <= K:
        Y = m 
if a[X] < b[Y]:
    K = K - a[X]
    cnt += X
    if K - b[Y] == 0:
        cnt += Y
    else:
        for y in range(1, Y+1):
            if b[y] < K:
                cnt += 1
else:
    K = K - b[Y]
    cnt += Y
    if K - a[X] == 0:
        cnt += X
    else:
        for x in range(1, X+1):
            if a[x] < K:
                cnt += 1
print(cnt)

a = int(input())

print(a + a**2 + a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())
print(a+a**2+a***3)

a = int(input())
print(a+a**2+a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
S = input()
T = input()
print(sum(s != t for s, t in zip(S, T)))

a = int(input())
print(a + a**2 + a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
from sys import stdin
a = stdin.readline().rstrip()
print(a+a**2+a**3)

from sys import stdin
a = int(stdin.readline().rstrip())
print(a+a**2+a**3)


Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
x = int(input())
print(x+x^2+x^3)

x = int(input())
print(x + x**2 + x**3)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input)
print(a + a**2 + a**3)

def resolve():
    a = int(input())
    print(a + a**2 + a**3)

resolve()

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=int(input())
input(a+a*a+a**3)

a=int(input())
print(a+a*a+a*a*a)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = str(input())
s = a + a**2 + a**3
print(s)

def cal():
  a=str(input())
  s=a+a**2+a**3
  return s

def cal():
  a = str(input())
  n = a + a**2 + a**3
  print(n)
  

a = int(input())
n = a + a**2 + a**3
print(n)

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = input()
print(a + a * a + a * a * a)

N = int(input())

print(N + N ** 2 + N ** 3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())
print(a * (a ** 3 - 1) / (a - 1))

a = int(input())
print(a * (1 + a * (1 + a)))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
for i in range(int(input())):
  n=int(input())
  s=n+n**2+n**3
  print(s)

def calc(n):
  s=n+n**2+n**3
  res=int(s)
  return res
for i in range(int(input())):
  n=int(input())
  print(calc(n))
  

a=int(input())
s=a+a**2+a**3
res=int(s)
print(res)
  

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
N, M, K = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int,input().split()))
a,b = [0],[0]
for i in range(N):
    a.append(a[i] + A[i])
    
for i in range(M):
    b.append(b[i] + B[i])
totaltime = 0
count,j = 0, M
 
for i in range(N+1):
    if a[i] > K:
        break
    while a[i] + b[j] > K:
        j -= 1
    count = max(count,i + j)
 
print(count)

N = int(input())


def g(n):
    return (n * (n + 1))//2

total = 0
for i in range(1,N+1):
    total += i * g(N//i)
    
print(total)


a = input()
first_a = a
second_a = a**2
third_a = a**3
sum_a = first_a + second_a+third_a

a = input()
first_a = int(a)
second_a = int(a)**2
third_a = int(a)**3
sum_a = first_a + second_a + third_a
print(sum_a)

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
?ddd1+**+p

a = int(input())
ans = a + a**2 + a*a*a
print(ans)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
N,M,K = map(int,input().split())
A = list(map(int,input().split()))
B = list(map(int,input().split()))
A.append(10**9+1)
B.append(10**9+1)

Ac = 0
Bc = 0
Time = 0
for _ in range(N+M):
    if A[Ac] > B[Bc]:
        Time += B[Bc]
        Bc += 1
        if Time > K:
            Bc -= 1
            Time -= B[Bc]
            break
    else:
        Time += A[Ac]
        Ac += 1
        if Time > K:
            Ac -= 1
            Time -= A[Ac]
            break
            
print(Ac+Bc)

a = int(input())
print(a*(a*a+a+1))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=int(input())
print(a+a**2)

a=int(input())
print(a+a**2+a**3)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
N = int(input())
ans = (N**2) + (N**3)
print(ans)


N = int(input())
ans = N + (N**2) + (N**3)
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = input()
ans = a + a ^ 2 + a ^ 3
print ans


a = int(input())
ans = a + a**2 + a**3
print(ans)


Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = input()
print(a + a**2 +a**3)

a = int(input())
  if 1<=a<=10: 
    b = a + a**2 + a**3
    print(b)
  
  

a = int(input())
print(a+a**2+a**3)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
import sys
input = sys.stdin.readline
#-------------------------------------

c = int(input())
print( c*6 )

import sys
input = sys.stdin.readline
#-------------------------------------

c = int(input())
print( c+c**2+c**3 )

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
data = [int(k) for k in input().split()]

A = data[0]
B = data[1]
K = data[2]

Abooks = [int(k) for k in input().split()]
Bbooks = [int(k) for k in input().split()]


time = 0
nbOfBooks = 0

while (time + Bbooks[0]) <= K or (time + Abooks[0])  <= K:
	
		
	if Abooks[0] >= Bbooks[0]:
		
		time += Bbooks[0]
		
		if len(Bbooks) == 1:
			Bbooks[0] = 10**9+1
		else:

			Bbooks.pop()
		
		nbOfBooks += 1

	else:
		
		time += Abooks[0]
		
		if len(Abooks) == 1:
			Abooks[0] = 10**9+1
		
		else:

			Abooks.pop()
		nbOfBooks += 1 


print(nbOfBooks)

nb = int(input())
print(str(nb + nb**2 + nb**3))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())

print(round(a*a*a+a*a+a)

a = int(input())

print(round(a*a*a+a*a+a))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())
print(a+a^2+a^3)

a = int(input())
s = a+a**2+a**3
print(s)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=int(input)
print(a+a**2+a**3)

a=int(input())
print(a+a**2+a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())

ans = a + a^2 + a^3
ans = int(ans)

print(ans)


a = int(input())

ans = a + a^2 + a^3

print(ans)

import math
n,m,k = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
a.append(10**10)
b.append(10**10)

if a[0]>k and b[0]>k:
  print(0)
else:
  if sum(a)+sum(b)<=k:
    print(n+m)
  else:
    ans=0
    time=0
    for i in range(n+m):
      ans += 1    
      if a[0]<=b[0]:
        time+=a.pop(0)
      else:
        time+=b.pop(0)
      
      if time>k:
        break
    print(ans-1)

a = int(input())

ans = a + a*a + a*a*a
ans = int(ans)

print(ans)


Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
 a = int(input())
 sum = int(a + a * a + a * a * a)
 print(sum)

a = int(input())
sum = int(a + a * a + a * a * a)
print(sum)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input)

ans = a + a**2 + a**3

print(ans)

a = int(input())

ans = a + a**2 + a**3

print(ans)


Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=input()
ans=a+a^2+a^3
print(ans)


a = input()
print(a+a**2+a**3)

int a=input()
print(a+a**2+a**3)


a = input()
print(a+a**2+a**3)

import sys
a = input()
print(a+a^2+a^3)


a = input()
print(a+a ** 2+a ** 3)

 a=input(int())
print(a+a**2+a**3)

a = int(input())
print(a+a**2+a**3)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
def main():
    import sympy
    n = int(input())
    s = 0
    
    for i in range(1,n+1):
        s += i * len(sympy.divisors(i))
    print(s)

main()

def main():
    a = int(input())
    print(a + pow(a,2) + pow(a,3))

main()

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
n = map(x**3 + x**2 + x,int(input()))
print(n)

a = int(input())
print(a + a**2 + a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
def A(x):
  return x + x**2 + x**3



def main():
  print(A(input()))


if __name__ == '__main__':
  main()


def A(x):
  return x + x**2 + x**3


def B(n, k, p_list):
  pass


def C(N):
  pass


def main():
  print(A(int(input())))
  # letter = input()
  # A(letter)
  # for x in ['A', 'Z', 'a', 'z']:
  #   A(x)


if __name__ == '__main__':
  main()


Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
A = int(input())

print(a+a**2+a**3)

a = int(input())

print(a+a**2+a**3)


Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
d = int(input())
print(int(d+d**2+d***3))

k = int(input())
print(int(k+k**2+k**3))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=input()
print(a+a^2+a^3)

a=int(input())
print(a+a**2+a**3)


Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=int(input()) 
print(a+a*a+a**3)　

a=int(input()) 
print(a+a*a+a**3)　


a=int(input()) 
print(a+a*a+a**3)　

a=int(input())
print(a+a*a+a**3)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=int(input())
print(a*+a*a+a**3)


a=int(input())
print(a+a*a+a**3)


Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())
print(a + a * 2 + a * 3)

a = int(input())
print(a + a ** 2 + a ** 3)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=int(input("a="))
print(a+a**2+a**3)

a=int(input())
print(a+a**2+a**3)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
from numba import njit

@njit("i8(i8)")
def solve(n):
    s = [1] * (n+1)
    ans = 1
    for i in range(2,n+1):
        for j in range(i,n+1,i):
            s[j] += 1
        ans += (i * s[i])
	return ans
n = int(input()) 
print(solve(n))


a = int(input())
print(a + pow(a, 2) + pow(a,3))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
N,M,K = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
for i in range(N):
  del A[1]
  del B[1]

a = int(input())
print(a+a*a+a*a*a)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
n=int(input())
p=a+a**2+a**3
print(p)

a=int(input())
p=a+a**2+a**3
print(p)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
import sys
import math
import numpy as np
import functools
import operator
import collections
import itertools
#import sympy
def make_divisors(n):
    lower_divisors , upper_divisors = [], []
    i = 1
    while i*i <= n:
        if n % i == 0:
            lower_divisors.append(i)
            if i != n // i:
                upper_divisors.append(n//i)
        i += 1
    return lower_divisors + upper_divisors[::-1]
N=int(input())
ans=0
for i in range(1,N+1):
    ans+=i*len(make_divisors(i))
print(ans)

import sys
import math
import numpy as np
import functools
import operator
import collections
import itertools

a=int(input())
print(a+a*a+a*a*a)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
s=input()

int a = s*s*s+s*s+s

 return

from sys import stdin
input = stdin.readline
s = int(input())

N=s+s*s+s*s*s

print (type(N), N) 


S = list(input ())
T = list(input ())
a = len(S)
change_time = 0
 
for i in range(a):
  if S[i] ==T[i]:
  	continue
  
  else:
  	S[i] =T[i]
  	change_time += 1
  
  
print(change_time)

S = list(input ())
T = list(input ())
a = len(S)
change_time = 0
 
for i in a:
  if S[i] ==T[i]:
  	continue
  
  else:
  	S[i] =T[i]
  	change_time += 1
  
  
print(change_time)

s = int(input())
 
N=s+s*s+s*s*s
 
print (N)

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = input()
print(a + a**2 + a**3)

a = int(input())
print(int(a + a**2 + a**3))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a= int(input())
print(a + (a**2) + (a***3))

a= int(input())
print(a + (a**2) + (a**3))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=int(input());print(a-~a**3)

a=int(input());print(a+a*a+a*a*a)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
s, t = input(), input()

x = list(filter(lambda i:s[i] != t[i], range(len(s)) ))

print(len(x))

N, M, K = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))

a, b = [0], [0]
for i in range(N):
a.append(a[i] + A[i])
for i in range(M):
b.append(b[i] + B[i])

ans, j = 0, M
for i in range(N + 1):
  if a[i] > K:
    break
  while b[j] > K - a[i]:
      j -= 1
ans = max(ans, i + j)
print(ans)

a = int(input())
print(a + a**2 + a**3)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
input = int(input())
print(a + a**2 + a**3)

a = int(input())
print(a + a**2 + a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())
total = a + a**2 + a**3
ptint(total)

a = int(input())
total = a + a**2 + a**3
print(a)

a = int(input())
total = a + a**2 + a**3
print(total)

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
2import sys
import math
import itertools as it
def I():return int(sys.stdin.readline().replace("\n",""))
def I2():return map(int,sys.stdin.readline().replace("\n","").split())
def S():return str(sys.stdin.readline().replace("\n",""))
def L():return list(sys.stdin.readline().replace("\n",""))
def Intl():return [int(k) for k in sys.stdin.readline().replace("\n","").split()]
def Lx(k):return list(map(lambda x:int(x)*-k,sys.stdin.readline().replace("\n","").split()))

if __name__ == "__main__":
    a = I()
    print(a+a**2+a**3)

import sys
import math
import itertools as it
def I():return int(sys.stdin.readline().replace("\n",""))
def I2():return map(int,sys.stdin.readline().replace("\n","").split())
def S():return str(sys.stdin.readline().replace("\n",""))
def L():return list(sys.stdin.readline().replace("\n",""))
def Intl():return [int(k) for k in sys.stdin.readline().replace("\n","").split()]
def Lx(k):return list(map(lambda x:int(x)*-k,sys.stdin.readline().replace("\n","").split()))

if __name__ == "__main__":
    a = I()
    print(a+a**2+a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
s = [input() for i in range(2)]
S = s[0]
T = s[1]
print(S)
print(T)


def count_diff2(s, t):
    cnt = 0
    for c1,c2 in zip(s, t):
        if c1 != c2:
            cnt += 1
    return cnt

print(count_diff2(S, T))

# -*- coding: utf-8 -*-
val_1 = int(input())
val_2 = val_1 * val_1
val_3 = val_1 * val_1 * val_1

answer = val_1 + val_2 + val_3
print(answer)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = input()
print(a + a ** 2 + a ** 3)

a = int(input())
print(a + a ** 2 + a ** 3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = input()

print(a + a*a + a*a*a)

a = int(input())

print(a + a*a + a*a*a)


Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())
print(a,a**2,a**3)

a = int(input())
print(a+a**2+a**3)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())
b = a + a ** 2 + a ** 10


a + a ** 2 + a ** 10

a = int(input())
b = a + a ** 2 + a ** 3


a = int(input())
b = a + a ** 2 + a ** 3
print (b)


Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
N = int(input())
print(N+N**2+N***3)

N = int(input())
print(N+N**2+N**3)


Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
N, M, K = map(int,input().split())
A = list(map(int,input().split()))
B = list(map(int,input().split()))
sum_list = []
for i in range(N):
  if K < sum(A[:i+1]):
    break
  for j in range(M):
    sum_ = sum(A[:i+1]) + sum(B[:j+1])
    if sum_ <= K:
      sum_list.append(len(A[:i+1]) + len(B[:j+1]))
    elif K < sum_:
      break
if 1 <= len(sum_list):
  print(max(sum_list))
elif 0 == len(sum_list):
  print(0)

a = int(input())
res = a + a**2 + a**3
print(res)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
2

a=int(input())
print(a+a**2+a**3)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())
print(a**2+a+1)

a = int(input())

print(a+a**2+a**3)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())
print(int(a+a^2+a3))

a = int(input())
print(a+a^2+a^3)

a = int(input())
print(int(a + a**2 + a**3))

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
import sys
# import re
import math
import collections

import bisect
import itertools
import fractions
# import functools
import copy
# import heapq
import decimal
# import statistics
import queue

# import numpy as np

sys.setrecursionlimit(10000001)
INF = 10 ** 16
MOD = 10 ** 9 + 7
# MOD = 998244353

ni = lambda: int(sys.stdin.readline())
ns = lambda: map(int, sys.stdin.readline().split())
na = lambda: list(map(int, sys.stdin.readline().split()))


# ===CODE===

def main():
    i = nis()
    print(i + i ** 2 + i ** 3)


if __name__ == '__main__':
    main()


import sys
# import re
import math
import collections

import bisect
import itertools
import fractions
# import functools
import copy
# import heapq
import decimal
# import statistics
import queue

# import numpy as np

sys.setrecursionlimit(10000001)
INF = 10 ** 16
MOD = 10 ** 9 + 7
# MOD = 998244353

ni = lambda: int(sys.stdin.readline())
ns = lambda: map(int, sys.stdin.readline().split())
na = lambda: list(map(int, sys.stdin.readline().split()))


# ===CODE===

def main():
    i = ni()
    print(i + i ** 2 + i ** 3)


if __name__ == '__main__':
    main()


Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
input = int(raw_input())
print (input + input ** 2 + input ** 3)

firstString = input()
secondString = input()
diff = 0
for i in range(len(firstString)):
    if firstString[i] != secondString[i]:
        diff += 1
print(diff)

input = int(input())
print (input + input ** 2 + input ** 3)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
n = int(input())
s = 0
for i in range(1,4):
  s += n**i

n = int(input())
s = 0
for i in range(1,4):
  s += a**i

a = int(input())
res = a**1+a**2+a**3
print(res)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
import sys

n = sys.stdin.readlines()
print(n + n ** 2 + n ** 3)

a = int(input())
print(a + a**2 + a ** 3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
S = input()
T = input()

cnt = 0
for i in range(len(S)):
    if S[i] != T[i]:
        cnt += 1
print(cnt)


a = int(input())
print(a + a**2 + a**3)


Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
import sys

a = int(sys.stdin.readline())

print(a+a*a+a*a*a

import sys

a = int(sys.stdin.readline())

print(a+a*a+a*a*a)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int,input()
print(a+(a**2)+(a**3))


a = (int,input())
b = (int,sum(a+a**2+a**3))
print(b)


a = (int,input())
print(a + a^2 + a^3)


a = int,input()
b = int,sum(a + a^2 + a^3)
print(b)

a = int,input()
print(a+(a*a)+(a*a*a))

a = int,input()
b = a+(a**2)+a**3
print('b=',b)

a = int,input()
print(a+a^2+a^3)

a = int,input()
print(a+a**2+a**3)

a = int(input())
print(a+a**2+a**3)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):

using namespace std;

int main()
{
	int a;
	cin >> a;
	cout << a * a + a + a * a * a <<endl;
}

a=int(input())
print(a+a**2+a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
n, m, k = [int(_) for _ in input().split()]
a = [int(_) for _ in input().split()]
b = [int(_) for _ in input().split()]

maxrecord = 0

for i in range(1, n + 1):
    left = k - sum(a[:i])
    if left < 0:
        counter = i - 1
        if maxrecord < counter:
            maxrecord = counter
        break
    counter = i

    for j in range(1, m + 1):
        if left - sum(b[:j]) < 0:
            if maxrecord < counter:
                maxrecord = counter
            break
        counter += 1

print(counter)


a = int(input())
ans = a + a ** 2 + a ** 3
print(ans)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
n,m,k = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))

count = 0

for x,y in zip(a,b):
  count += min(a[x],b[y])
  if count > k:
    break
    
print(k // count)


n,m,k = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))

count = 0

for i in zip(a,b):
  count += min(a[i],b[i])
  if count > k:
    break
    
print(k // count)


a = input()

print(a + a ** 2 + a ** 3)

a = int(input())

print(a + a ** 2 + a ** 3)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
s= input()
print (s+s**2+s**3)

s = int(input())
print(s+s**2+s**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=int(input())
a+=(a*a)
a+=(a*a*a)
print(a)

a=int(input())
ans=a
ans+=(a*a)
ans+=(a*a*a)
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
import numpy as np
n,m,k=map(int,input().split())
A=[0]
A.append(list(map(int, input().split())))
B=[0]
B.append(list(map(int, input().split())))
ans=0
a=np.cumsum(np.array(A))
b=np.cumsum(np.array(B))
for i in range(n+1):
    if k<a[i]:
        break
    j=m
    while b[j]>k-a[i]:
        j-=1
        ans=max(ans,i+j)
print(ans)

a=int(input())
print(a+a*a+a*a*a)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
s=input()
t=input()
c=0
for i in range(len(s)):
  if s[i]!=t[i]:
    c+=1
print(c)    

a=int(input())
print(a+a**2+a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
# Python3 program to count 
# number of factors 
# of an array of integers 
MAX = 1000001; 

# array to store 

factor = [0]*(MAX + 1); 

# function to generate all 
of numbers 
# from 1 to 10^6 
def generatePrimeFactors(): 
	factor[1] = 1; 

	# Initializes all the 
	# positions with their value. 
	for i in range(2,MAX): 
		factor[i] = i; 

	# Initializes all 
	# multiples of 2 with 2 
	for i in range(4,MAX,2): 
		factor[i] = 2; 

	# A modified version of 
	# Sieve of Eratosthenes 
	# to store the smallest 
	that divides 
	# every number. 
	i = 3; 
	while(i * i < MAX): 
		# check if it has 
		
		if (factor[i] == i): 
			# Initializes of j 
			# starting from i*i 
			j = i * i; 
			while(j < MAX): 
				# if it has no prime factor 
				# before, then stores the 
				
				if (factor[j] == j): 
					factor[j] = i; 
				j += i; 
		i+=1; 

# function to calculate 
# number of factors 
def calculateNoOFactors(n): 
	if (n == 1): 
		return 1; 
	ans = 1; 

	# stores the smallest 
	# prime number that 
	# divides n 
	dup = factor[n]; 

	# stores the count of 
	# number of times a 
	
	c = 1; 

	# reduces to the next 
	
	# factorization of n 
	j = int(n / factor[n]); 

	# false when prime 
	# factorization is done 
	while (j > 1): 
		# if the same prime 
		# number is dividing 
		# n, then we increase 
		# the count 
		if (factor[j] == dup): 
			c += 1; 

		# if its a new prime factor 
		# that is factorizing n, 
		# then we again set c=1 and 
		# change dup to the new prime 
		# factor, and apply the formula 
		# explained above. 
		else: 
			dup = factor[j]; 
			ans = ans * (c + 1); 
			c = 1; 

		
		# a number 
		j = int(j / factor[j]); 

	# for the last 
	
	ans = ans * (c + 1); 

	return ans; 



n=int(input())

generatePrimeFactors()
ans=0
for i in range(1,n+1):
    ans+=calculateNoOFactors(i)*i
    


print(ans)
    



a=int(input())
print(a+a*a+a*a*a)


Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = input()
a = int(N)

print(a+a*a+a*a*a)

a = int(input())
print(a+a*a+a*a*a)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
n=input()
print(n+n**2+n**3)

n=int(input())
print(n+n**2+n**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(intput())

print(a + a*a + a*a*a)

a = int(input())

print(a + a*a + a*a*a)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=int(input())
print(a+a＊＊2+a＊＊3)

a=int(input())
print(a+a**2+a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
n,m,k = map(int,input().split())
A = [int(p) for p in input().split()]
B = [int(p) for p in input().split()]
a,b = [0],[0]

a_apnd = a.append
b_apnd = b.append
for i in range(n):
  a_apnd(a[i]+A[i])
for i in range(m):
  b_apnd(b[i]+B[i])

count = 0
t = m
for i in range(n+1):
  if k<a[i]:
    break
  while b[t] > k-a[i]:
    t -= 1
  count = max(count,i+t)

print(count)


a = input()
print(a+(a**2)+(a**3))

a = int(input())
print(a+(a**2)+(a**3))

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = input()
print(a + a ** 2 + a ** 3)

a = int(input())
print(a + a ** 2 + a ** 3)


Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
n=int(intput())

print(n+n**n+n***n)

n = int(input())

print(n + pow(n,2)+pow(n,3))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
S = input()
T = input()
k = len(T)
m = 0
for i in range(k):
  if S[i] != T[i]:
    m += 1
print(m)


a = int(input())
k = a + a**2 + a**3
print(k)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=int(input())
ans=a+a**2+a**3
print("ans")

a=int(input())
ans=a+a**2+a**3
print(ans)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
num = input()
print(num+num**2+num**3)

ソースコード 

Copy
Copy
def a172(a):
 
    return a + a**2 + a**3
 
def main():
    a = int(input())
    print(a172(a))
 
if __name__ == '__main__':
    main()

num = int(input())
total = num +num**2 +num**3
print(total)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
n = int(input())

print(n ** 6)

n = int(input())
print(n + n**2 + n**3)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())
sum = 0
for i in range(a):
    sum += a ** (i+1)
    if i == 2:
        break
print(int(sum))

a = int(input())
sum = 0
for i in range(3):
    sum += a ** (i+1)
print(int(sum))

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = int(input())

class calculate:
    def __init__(self,a):
        self.check = a
    
    def get_ans(self,a):
        return a + a**2 + a**3

valuable = calculate(a)

#Sprint(valuable.check)

ans = valuable.get_ans(10)

print(ans)

a = int(input())

class calculate:
    def __init__(self,a):
        self.check = a
    
    def get_ans(self,a):
        return a + a**2 + a**3

valuable = calculate(a)

#Sprint(valuable.check)

ans = valuable.get_ans(a)

print(ans)

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
print(int(a+a^2+a^3))

a = int(input())
print(int(a + a**2 + a**3))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = input()
print(a + a * a + a * a * a)

a = int(input())
print(a + a * a + a * a * a)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
N,M,K = map(int,input().split())	
A = list(map(int,input().split()))
B = list(map(int,input().split()))
a=[0]
b=[0]
for i in range(N):
  a.append(a[-1]+A[i])
for j in range(M):
  b.append(b[-1]+B[j])  
for i in range(len(A)+1):
  for j in range(len(B)+1):
    score=a[i]+b[j]
    if score <= K:
      point=[]
      point.append(i+j)
print(max(point))


a=int(input())
score=a+a**2+a**3
print(score)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
n,m,k=map(int,input().split())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
time=0
count=0
while time<k:
    if count==(n+m-1):
        count=n+m+1
        break
    elif count//2>=n or count//2>=m:
        count+=1
        continue
    elif count%2==0:
        time+=a[count//2]
        count+=1
    else:
        time+=b[count//2]
        count+=1
print(count-1)

n,m,k=map(int,input().split())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
time=0
count=0
while time<k:
    if count==(n+m-1):
        count=n+m+1
        break
    elif count//2>=n or count//2>=m:
        count+=1
        continue
    elif count%2==0:
        time+=a[count//2]
        count+=1
    else:
        time+=b[count//2]
        count+=1
print(count-1)

n=int(input())
print(n+n**2+n**3)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=int(input())
print(int(a+a**2*a**3))

a=int(input())
print(int(a+a**2+a**3))

Verdicts: Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):

def function(a):
  return a+a**2+a***3

if __name__ == '__main__':
  a = int(input())
  function(a)

def function(a):
    return a + pow(a,2) + pow(a, 3)

if __name__ == "__main__":
    a = int(input())
    print(function(a))

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = input()
print(a+a*a+a*a*a)

a = input()
print(int(a+a**2+a**3))

a = int(input())
print(a+a**2+a**3)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
num v= input("")
sum1 = num + num^2 + num^3

a = int(input())
print(a+a**2+a**3)

Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a = input()

print(a+pow(a,2)+pow(a,3))



a = int(input())

print(a+pow(a,2)+pow(a,3))








Verdicts: Runtime Error

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
i = int(input())
print(i + i*2 + i*3)

i = input()
print(i + i*2 + i*3)

i = int(input())
print(i + i**2 + i**3)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: Given an integer a as input, print the value a + a^2 + a^3.

Submission attempts (in order):
a=int(input())
print(a+a^2+a^3)

a=int(input())
print(a + a*a + a*a*a)


Verdicts: Wrong Answer

Accepted