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

Submission attempts (in order):
a = (int(x) for x in input().split())

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 = input()
print(a + a*a + a*a*a)

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

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

a = input()
a = int(a)
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):
# coding: utf-8

inpnum = int(input())

sum = lambda n,t : n * t

print(sum(inpnum, 6))



# coding: utf-8

inpnum = int(input())

sum = lambda n,t : n ** t

print(inpnum + sum(inpnum, 2) + sum(inpnum, 3))



Verdicts: Wrong Answer

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

Submission attempts (in order):
import sys
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]
mod = 10 ** 9 + 7

a = I()

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

import sys
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]
mod = 10 ** 9 + 7

a = I()

ans = int(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):
def calc(int: a) -> int:
    return a+a**2+a**3

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

def calc(a: int) -> int:
    return a+a**2+a**3

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

Verdicts: Runtime Error

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

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

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

input(a)

a**2 + a**3 + a**4 = Z
print("Z")

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

input(a)
 
a * 2 + a * 3 + a * 4 = Z
	print("Z")

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


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


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


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

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


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

input(a)
 
a ** 2 + a ** 3 + a ** 4 = Z
	print("Z")

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

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

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):
n = int(input())

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

n = int(input())

print(n + pow(n, 2) + pow(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):
def get_sum_arr(arr):
    sum_arr = [0]
    N = len(arr)
    for i in range(1,N+1):
        sum_arr.append(sum_arr[i-1] + arr[i-1])
    return sum_arr

def get_max_b(left_time,j,B_sum_arr):
    # [0,1,2,3,4,5]
    while B_sum_arr[j] >= left_time and j > 0:
        j -= 1
    return j
def get_max_book_num(A,B,K):
    A_sum_arr,B_sum_arr = get_sum_arr(A),get_sum_arr(B)
    count,i,j = 0,0,len(B_sum_arr)-1
    for i in range(0,len(A_sum_arr)):
        if K < A_sum_arr[i]:
            break
        else:
            left_time = K - A_sum_arr[i]
            j = get_max_b(left_time,j,B_sum_arr)
        count = max(count,(i+j))
    return count

if __name__ == "__main__":
    N,M,K = list(map(int,input().split()))
    A = list(map(int,input().split()))
     # [0,1,2,3,4,5]
    B = list(map(int,input().split()))
     # [0,1,2,3,4,5]
    print(get_max_book_num(A,B,K))
    


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 math import pow

def func(x):
    return x + pow(x,2) + pow(x,3)
    

if __name__=="__main__":
    input = input()
    print(func(int(input)))
    

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

if __name__=="__main__":
    input = input()
    print(func(int(input)))


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)

a = int(input())
print(a + a**2 + a**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(inut())

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

a = int(input())

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


Verdicts: Runtime Error

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

Submission attempts (in order):
def dfs(a, b, k):
    global cnt
    seen[a][b] = True
    na = a + 1
    nb = b + 1
    if na <= N and seen[na][b] is False and k >= book_a[na]:
        k -= book_a[na]
        cnt = max(cnt, na + b)
        dfs(na, b, k)
    if nb <= M and seen[a][nb] is False and k >= book_b[nb]:
        k -= book_b[nb]
        cnt = max(cnt, a + nb)
        dfs(a, nb, k)
        
N, M, k = map(int, input().split())
book_a = [int(x) for x in input().split()]
book_b = [int(x) for x in input().split()]
book_a.insert(0, 0)
book_b.insert(0, 0)
cnt = 0
seen = [[False] * (M + 1) for _ in range(N + 1)]
dfs(0, 0, k)
print(cnt)

def resolve():
    def dfs(a, b, k):
        nonlocal cnt
        seen[a][b] = True
        na = a + 1
        nb = b + 1
        if na <= N and seen[na][b] is False and k >= book_a[na]:
            k -= book_a[na]
            cnt = max(cnt, na + b)
            dfs(na, b, k)
        if nb <= M and seen[a][nb] is False and k >= book_b[nb]:
            k -= book_b[nb]
            cnt = max(cnt, a + nb)
            dfs(a, nb, k)

    N, M, k = map(int, input().split())
    book_a = [int(x) for x in input().split()]
    book_b = [int(x) for x in input().split()]
    book_a.insert(0, 0)
    book_b.insert(0, 0)
    cnt = 0
    seen = [[False] * (M + 1) for _ in range(N + 1)]
    dfs(0, 0, k)
    print(cnt)


if __name__ == "__main__":
    resolve()


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(input())
b=a**a
print(int(a+b+a*b)

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

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())
b = a + a^2 + a^3
print(int(b))

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

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

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):
num = int(input())
print(num + num * mum + num ** 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):
a = int(input())
b = int(a + a^2 + a^3)
print(b)

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

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


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):
n, m, k = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
a.append(k+1)
b.append(k+1)
ia = 0
ib = 0
count = 0

for i in range(n + m + 1):
    if (a[ia] < b[ib]):
        if(a[ia] > k):
            print(count)
            break
        else:
            k -= a[ia]
            ia += 1
            count += 1
    else:
        if(b[ib] > k):
            print(count)
            break
        else:
            k -= b[ib]
            ib += 1
            count += 1

n, m, k = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
a.append(k+1)
b.append(k+1)
ia = 0
ib = 0
count = 0

for i in range(n + m + 1):
  if (a[ia] < b[ib]):
    if(a[ia] > k):
      print(count)
      break
      else:
        k -= a[ia]
        ia += 1
        count += 1
        else:
          if(b[ib] > k):
            print(count)
            break
            else:
              k -= b[ib]
              ib += 1
              count += 1


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

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(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())
n1 = int( "%s" % a )
n2 = int( "%s%s" % (a,a) )
n3 = int( "%s%s%s" % (a,a,a) )
print (n1+n2+n3)

a = int(input("Input an integer : "))
n1 = int( "%s" % a )
n2 = int( "%s%s" % (a,a) )
n3 = int( "%s%s%s" % (a,a,a) )
print (n1+n2+n3

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

a = int(input())
n1 = int(pow(a,1))
n2 = int(pow(a,2))
n3 = int(pow(a,3))
print (n1+n2+n3)

Verdicts: 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,b,c = (int(i) for i in input().split())
N = list(map(int, input().split())) 
M = list(map(int, input().split())) 
n = 0
m = 0
e = 0
for i in range(a+b):
  if N[n] < M[m] and n < a:
    c -= N[n]
    e += 1
    print(c)
    n += 1
  elif N[n] > M[m] and m < a:
    c -= M[m]
    e += 1
    m += 1
    print(c)

  if c < 0:
    e -= 1
    break

print(e)

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

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 (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):
from typing import List

LOCAL = False

if LOCAL:
    import os
    import sys
    import time
    start = time.time()
    # For getting input from input.txt file
    letter = "A"
    sys.stdin = open(f'{letter}in.txt', 'r')

    # Printing the Output to output.txt file
    sys.stdout = open(f'{letter}out.txt', 'w')

#### START ####


def calculate(s: int):
    print(s + s**2 + s**3)

s = int(input())

#### END ####
if LOCAL:
    print('TIME:', time.time()-start, 'sec.')


def calculate(s: int):
    print(s + s**2 + s**3)

s = int(input())
calculate(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 = 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(input())

print(N + N ^ 2 + N ^ 3)


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):
def main():
    import sys
    def input(): return sys.stdin.readline().rstrip()
    a = int(input())
    for i in range(3):
        ans += a**(i+1)
    print(ans)


if __name__ == '__main__':
    main()

def main():
    import sys
    def input(): return sys.stdin.readline().rstrip()
    a = int(input())
    ans = 0
    for i in range(3):
        ans += a**(i+1)
    print(ans)


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)
n = a + a*a + a*a*a
print(n)

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

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(a):
    return a + a ** 2 + a ** 3


if __name__ == "__main__":
    _main(int(input()))


def _main(a):
    print(int(a + a ** 2 + a ** 3))


if __name__ == "__main__":
    _main(int(input()))


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*a+a**3)

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

a=int(input())
print(a+a*a+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):
n = int(input())
print(int(a+a**2+a**3))

n = int(input())   
print(int(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 = int(input())
print(a + '+' + a**2  + '+' + a**3)

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

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

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

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

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


a = int(input())

print("{}".format(a + a**2 + a**3))

Verdicts: Runtime Error

Wrong Answer

Runtime Error

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(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=input()

x=a+(a*a)+(a*a*a)

print(x)


a=int(input())

a=a+(a*a)+(a*a*a)

print(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()
x = a + a*a + a*a*a
print(x)

a = int(input())
x = a*a 
y = a*a*a
z =a+x+y

print(z)

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=input()
print(a+a^2+a^3)

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):
int b
b = a + a^2 + a^3
return b

import sys

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 = 1
a = int(a)
x = a + a**2 + a**3
print(x)

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

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

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

Verdicts: 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):
s = list(map(str,input().split()))
t = list(map(str,input().split()))
count = 0
for i in range(len(s)):
    if(s[i] != t[i]):
        count += 1
print(count)

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+(a*a)+a*a*a)

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(sum(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 = int(input())
print(a + a**2 + 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):
a = n
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):
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 = 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())
a += a**2
a += a*3
print(a)

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

a = int(input())

print(a + a**2 + a**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**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**2
c=a***3
print(a+b+c)

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


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
sys.setrecursionlimit(10**6)
N, M, K = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
A.append(99999)
B.append(99999)
Sum = 0
i = 0
j = 0
while True:
  if A[i] <= B[j] and Sum + A[i] <= K:
    Sum += A[i]
    i += 1
  elif A[i] > B[j] and Sum + B[j] <= K:
    Sum += B[j]
    j += 1
  else:
    break
print(i + j)

a = int(input())
ans =(a + a ** 2 + a ** 3) // 1
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 = int(input())

print(N *+ N*N + N*N*N)

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=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(input()) % 1000
print(1000 - n if n else 0)


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())

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())
print(int(a+a^2+a^3))

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

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

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

Verdicts: Wrong Answer

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(inupt())
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):
n=int(input())
print(a*(1+a+a*a))

n=int(input())
p = n +n*n+n*n*n
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):
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(intput())
ans = a*(1+a*(1+a))
print(ans)
       

a = int(input())
ans = a*(1+a*(1+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=int(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):
s = str(input())
t = str(input())
count = 0

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

print(count)


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 numpy as np

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

As = np.array(list(map(int,input().split())))
Bs = np.array(list(map(int,input().split())))

As_selected = []
Bs_selected = []

answer = 0

for i in range(N+1):
    if(As[0:i].sum() <= K):
         As_selected.append(As[0:i].sum())
    else:
        break
for i in range(M+1):
    if(Bs[0:i].sum() <= K):
         Bs_selected.append(Bs[0:i].sum())
    else:
        break

answer = 0

for i in np.arange(len(As_selected))+1:
    for j in np.arange(len(Bs_selected))+1:
        if(As_selected[-i] > K):
            break

        if(As_selected[-i] + Bs_selected[-j] <= K):
            answer = max(len(As_selected)+len(Bs_selected) -i - j, answer)
            break

print(answer)

import numpy as np

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

As = np.array(list(map(int,input().split())))
Bs = np.array(list(map(int,input().split())))

As_selected = []
Bs_selected = []

answer = 0

for i in range(N+1):
    if(As[0:i].sum() <= K):
         As_selected.append(As[0:i].sum())
    else:
        break
for i in range(M+1):
    if(Bs[0:i].sum() <= K):
         Bs_selected.append(Bs[0:i].sum())
    else:
        break

answer = 0

for i in np.arange(len(As_selected))+1:
    for j in np.arange(len(Bs_selected))+1:
        if(As_selected[-i] + Bs_selected[-j] <= K):
            answer = max(len(As_selected)+len(Bs_selected) -i - j, answer)
            break

print(answer)


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):
n  = 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=input()
b=a*a*a+a*a+a
print(b)

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

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):
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+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())
)
a = int(a ** 3)
print(a)



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



a = int(input())

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


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):
n,m,k = map(int, input().split())
ab = list(map(int, input().split())) + list(map(int, input().split()))
O = 0
ab.sort()
for i in range(len(ab)):
    k -= ab[i]
    if k < 0:
        break
    O +=1
print(O)


a = int(input())

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

a = int(input())

a = a + a^2 + a^3

a = int(input())

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

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 = int(input("整数を入力してください"))
answer = a+a*a+a*a*a
print("答えは",answer)

a = int(input("整数を入力してください"))
answer = a+a*a+a*a*a
print(answer)

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

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):
str1 = list(input())
str2 = list(input())
count = 0
for i in range(len(str1)):
  if str1[i] != str2[i]:
    count +=1
print(count)

num = int(input())
print(int(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):
from collections import deque
N,M,K = map(int,input().split())
A = deque(map(int,input().split()))
B = deque(map(int,input().split()))

A.append(float('inf'))
B.append(float('inf'))

time = K 
count = 0
sum_A = sum(list(A)[:-1])
sum_B = sum(list(A)[:-1])
for _ in range(len(A)+len(B)):
    if A[0] > B[0]:
        target = B.popleft()
        if (target > (sum_A-A[0])) and len(A) != 1:
            sum_A -= A[0]
            B.appendleft(target) 
            target = A.popleft()
        time -= target
        count += 1
    else:
        target = A.popleft()
        if (target > (sum_B-B[0])) and len(B) != 1:
            sum_B -= B[0]
            A.appendleft(target)
            target = B.popleft()
        time -= target
        count += 1
    if len(A) == len(B) == 1:
        break
    if time < 0:
        count -= 1
        break 
    elif time == 0:
        break
print(count)

a = int(input())

print(a**3 + a**2 + 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**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):
N = 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 = 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**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*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):
a = int(input())

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

a = int(input())
print(int(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 = int(input())
print(int(a+(a**2)+(a**3))

a = int(input())
s = a*a
c = a*a*a
t = a+s+c
print(int(t))


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())
List=[2 for x in range(n+1)]
List[0]=0
List[1]=1
ans=1
 
for x in range(2,n+1):
  for y in range(2*x,n+1,x):
    List[y]+=1
  ans+=x*List[x]
print(ans)

n,m,k=map(int,input().split())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
a.insert(0,0)
b.insert(0,0)
j=1
while j<=m and b[j]+b[j-1]<=k:
  b[j]+=b[j-1]
  j+=1
  

j-=1
books=j
i=1
while i<n+1:
  while j>0 and a[i]+b[j]>k:
    j-=1
  if(j>=0) and a[i]+b[j]<=k:
    books=max(books,j+i)
    a[i]+=a[i-1]
    i+=1
  else:
    break
print(books)
  


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):
s = str(input())
t = str(input())
count = 0

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

print(count)

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("Enter an integer : "))
s=a**2
t=a**3
print(a+s+t)

a = int(input("Enter an integer : "))
s=a**2
t=a**3
print(a+s+t)

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

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*+a**2+a***3

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

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

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

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

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


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):
n = int(input())
print(a+a**2+a**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):
print(a+a*+a**)

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 = int(raw_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 = map(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=int(input())
print((a)+(a*a)+(a**3))

a=int(input())
print((a)+(a*a)+(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()
k=0
for i in range(len(S)):
  if(S[i] != T[i]):
    k = k+1
print(k) 

a=int(input())
l = [a**i for i in range(4)]
print(l)
print(sum(l)-1)

a=int(input())
l = [a**i for i in range(4)]
print(sum(l)-1)

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):
n,m,k=map(int,input().split())
a=list(map(int,input().split()))
b=list(map(int,input().split()))

import numpy as np
import bisect

ra=[0]+list(np.cumsum(a))
rb=[0]+list(np.cumsum(b))

ans=0
for i in range(n+1):    
    capa = k - ra[i]
    if ra[i]<0:
        break
    j=bisect.bisect_right(rb,capa)


    ans=max(ans,i-1+j)
            
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):
unko

ubkookoookyfyut

afgdgrh

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


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(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):
a=int(input())
B=0
C=0
D=0
B=A
C=a*a
D=a*a*a
print(B+C+D)

a=int(input())
B=0
C=0
D=0
B=a
C=a*a
D=a*a*a
print(B+C+D)


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():
  a = int(input())
  answer = a + a**2 + a**3
  print(answer)

if __name__ = '__main__':
  main()

def main():
  a = int(input())
  print(a+a**2+a**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):
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 = input()
print(a + a*a + a*a*a)

a = input()
a = int(a)
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**+a***)

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

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

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):
num = input()

answer = num + num * num + num * num * num

num = input()
 
answer = num + num * num + num * num * num

print(answer)

num = int(input())
 
answer = num + num * num + num * num * num
 
print(answer)

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):
def main(a):
    return a + a**2 + a**3

if __name__ == "__main__":
    a = input()
    print(main(a))


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

if __name__ == "__main__":
    a = int(input())
    print(int(main(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(1+ a**2 + a**3)

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

a = int(input())
print(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):
a = int(input())
print(a+a^2+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):
"""
~~ Author : Bhaskar
~~ Dated : 10~06~2020
"""

import sys
from bisect import *
from math import floor,sqrt,ceil,factorial as F,gcd,pi
from itertools import chain,combinations,permutations,accumulate
from collections import Counter,defaultdict,OrderedDict,deque
from array import array
INT_MAX = sys.maxsize
INT_MIN = -(sys.maxsize)-1
mod = 1000000007
ch = "abcdefghijklmnopqrstuvwxyz"
lcm = lambda a,b : (a*b)//gcd(a,b)
setbit = lambda x : bin(x)[2:].count("1")
input = lambda : sys.stdin.readline()

def solve():
    n = int(sys.stdin.readline())
    print(a+a**2+a**3)


if __name__ == "__main__":
    try:
        sys.stdin = open('input.txt','r')
        sys.stdout = open('output.txt','w')
    except:
       pass
    solve()



"""
~~ Author : Bhaskar
~~ Dated : 10~06~2020
"""

import sys
from bisect import *
from math import floor,sqrt,ceil,factorial as F,gcd,pi
from itertools import chain,combinations,permutations,accumulate
from collections import Counter,defaultdict,OrderedDict,deque
from array import array
INT_MAX = sys.maxsize
INT_MIN = -(sys.maxsize)-1
mod = 1000000007
ch = "abcdefghijklmnopqrstuvwxyz"
lcm = lambda a,b : (a*b)//gcd(a,b)
setbit = lambda x : bin(x)[2:].count("1")
input = lambda : sys.stdin.readline()

def solve():
    n = int(sys.stdin.readline())
    print(n + n ** 2 + n ** 3)
    


if __name__ == "__main__":
    try:
        sys.stdin = open('input.txt','r')
        sys.stdout = open('output.txt','w')
    except:
       pass
    solve()



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())

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):
n = int(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):
N = int(input())

ans = 0
for i in range(1,N+1):
    y = N//i
    ans += y*(y+1)*i//2
    
print(ans)


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):


import sys
stdin = sys.stdin

def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))

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

def main():
    n = ni()
    ans = 0
    for i in range(1, n+1):
        ans += i * g(n//i)
    print(ans)


if __name__ == "__main__":
    main()



import sys
stdin = sys.stdin

def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))

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

if __name__ == "__main__":
    main()

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 + 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=int(input())
print(round((a*(a-(-1+math.sqrt(3)*(1j))/2)*(a-(-1-math.sqrt(3)*(1j))/2)).real))

import math
a=int(input())
print(round((a*(a-(-1+math.sqrt(3)*(1j))/2)*(a-(-1-math.sqrt(3)*(1j))/2)).real))

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()))
ans = 0
min = 0
i = 0
j = 0
while min <= K:
	if (i < N) or (j < M):
		if (i < N) and (j < M):
			if A[i]<=B[j]:
				min = min+A[i]
				i = i+1
				ans = ans+1
			else:
				min = min+B[j]
				j = j+1
				ans = ans+1
		elif (i == N):
				min = min+B[j]
				j = j+1
				ans = ans+1
		else:
				min = min+A[i]
				i = i+1
				ans = ans+1
	else:
		ans = ans+1
		break
ans = ans-1
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):
n = int(input())
ans = 0
for i in range(1, n+1):
    for j in range(i, n+1, i):
        ans += j
    

print(ans)

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



main()

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()
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)

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 = int(input)
b = a**2
c = a**3
print(a+b+c)

a = int(imput)
print(a(1+a(1+a)))

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

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

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

a = int(input())
if a == 1:
  print(3)
elif a == 2:
  print(14)
elif a == 3:
  print(39)
elif a == 4:
  print(84)
elif a == 5:
  print(155)
elif a == 6:
  print(258)
elif a == 7:
  print(399)
elif a == 8:
  print(584)
elif a == 9:
  print(819)
elif a == 10:
  print(1110)


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())
ans = (a+a*2+a*3)
print(ans)


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


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

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

Wrong Answer

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
S = str(input())
T = str(input())
length =len(S)
listS=list(S)
listT=list(T)
num = len(T)
res = 0
for i in range(length):
    if (listS[num-1] != listT[num-1]):
        res +=1
    num -=1
print(res)

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(input()) 
print (type(N), N+N*N+N*N*N)

import random
a=random.randint(1,11)
print(str(a+a*a+a*a*a))

import random
a=random.randint(1,10)
print(str(a+a*a+a*a*a))

import random

Z = (1,2,3,4,5,6,7,8,9,10)
a=random.choice(Z)
print(str(a+a*a+a*a*a))

import random
a=random.randint(1,10)
print(str(a+a*a+a*a*a))

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

for a in range (1,11):
    print(str(a+a*a+a*a*a))

for a in range (1,11)
print(str(a+a*a+a*a*a))

# -*- coding: utf-8 -*-

a = int(input())

1<=a<=10
print(a*a*a+a*a+a)

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

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):
import numpy as np
S = input()
T = input()
s = []
t = []
i = 0
for i in range(len(S)):
    s.append(ord(S[i]))
    i += 1
i = 0
for i in range(len(T)):
    t.append(ord(T[i]))
    i += 1
    
s = np.array(s)
t = np.array(t)
print(len(S) - np.count_nonzero(s == t))

a = input()
print(str(int(a) + int(a)**2 + int(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**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()
b = a+a*a+a*a*a
print(int(b))

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


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


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


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+1**2+a**3)

a=int(input())
1<=a<=10

a=a+a^2+a^3



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

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


Verdicts: Wrong Answer

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+pow(a,2)+pow(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 = 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):
import sys

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


import sys

a = int(input())
print('hello', file=sys.stderr)
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=int(input())
print(a+a**2+a**3)
print(type(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):
nums=input()
nums=nums.split()
M,N,K = int(nums[0]),int(nums[1]),int(nums[2])

al=input()
al2=al.split()
for n in range(M):
    al2[n] = int(al2[n])

bl=input()
bl2=bl.split()
for n in range(N):
    bl2[n] = int(bl2[n])

count=0

ai=0
bi=0

while 1:
    if al2[ai] <= bl2[bi] and al2[ai] <= K:
        K = K-al2[ai]
        ai+=1
        count+=1
        

    elif al2[ai] > bl2[bi] and bl2[bi] <= K:
        K = K-bl2[bi]
        bi+=1
        count+=1
    else:
        break

print(count)

a = input()
a = int(a)
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):
def cmb(n, r, mod):
    if ( r<0 or r>n ):
        return 0
    r = min(r, n-r)
    return g1[n] * g2[r] * g2[n-r] % mod
mod = 10**9+7 
N = 5*10**5 
g1 = [1, 1] 
g2 = [1, 1] 
inverse = [0, 1] 計算用テーブル
for i in range( 2, N + 1 ):
    g1.append( ( g1[-1] * i ) % mod )
    inverse.append( ( -inverse[mod % i] * (mod//i) ) % mod )
    g2.append( (g2[-1] * inverse[-1]) % mod )

N, M = map(int, input().split())
ans = 0
for i in range(N+1):
    ans += cmb(N,i,mod)*((-1)**i)*g1[M]*g2[M-i]*((g1[M-i]*g2[M-N])**2)
    ans %= mod
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):
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())
b= a+a*a+a*a*a
print(b)

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*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=int(input())
sums=0
for i in range(1,4):
  sums += A**i
  print(sums)
print(sums)

A=int(input())
sums=0
for i in range(3):
  sums+=A^(i+1)
  
print(sums)

A=int(input())
sums=0
for i in range(1,4):
  sums += A**i
  
print(sums)

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("Input a value for 'a': "))
FINAL = A + (A*A) + (A*A*A)
print(FINAL)


A = int(input())
FINAL = A + (A*A) + (A*A*A)
print(FINAL)

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())
a = 1000
while a < n:
    a += 1000
print(a-n)

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

Verdicts: Wrong Answer

Accepted