Problem:


  MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});

Min, Max and Sum

Write a program which reads a sequence of $n$ integers $a_i (i = 1, 2, ... n)$, and prints the minimum value, maximum value and sum of the sequence.

Input

  In the first line, an integer $n$ is given. In the next line, $n$ integers $a_i$ are given in a line.

Output

  Print the minimum value, maximum value and sum in a line. Put a single space between the values.

Constraints

$0 < n \leq 10000$

$-1000000 \leq a_i \leq 1000000$

Sample Input

5
10 1 5 4 17

Sample Output

1 17 37



Sample input:
5
10 1 5 4 17


Sample output:
1 17 37

Submission status: Runtime Error

Solution code:
import sys
n =int(input())
x = sys.stdin.readline().split()
print("{0} {1} {2}".format(min(x),max(x),sum(x)))

Submission status: Runtime Error

Solution code:
import sys
input()
x = list(map(int,sys.stdin.readlines().split()))
print("{0} {1} {2}".format(min(x),max(x),sum(x)))

Submission status: Runtime Error

Solution code:
n = input()
a = input().split(' ')
nums = [int(str) for str in a]
sum = 0
nums.sort()
max = num[n-1]
min = num[0]
for i in nums:
 sum += i
print("{0} {1} {2}".format(min,max,sum))

Submission status: Runtime Error

Solution code:
def minimum(a):
    b=a.copy()
    if len(b)==1:
        return b[0]
    else:
        c=b.pop(-1)
        return min(c,minimum(b))

def maximum(a):
    b=a.copy()
    if len(b)==1:
        return b[0]
    else:
        c=b.pop(-1)
        return max(c,maximum(b))

def sum(a):
    b=a.copy()
    if len(b)==1:
        return b[0]
    else:
        c=b.pop(-1)
        return c+sum(b)




n=int(input())
a=[int(i) for i in input().split(" ")]

print("{0} {1} {2}".format(minimum(a),maximum(a),sum(a)))

Submission status: Runtime Error

Solution code:
n = int(input())
n_list = [int(i) for i in input().split(" ")]
mini = min(n_list)
maxi = max(n_list)
total = sum(n_list)

print('{0} {1} {2}'.format(mini, maxi, total)

Submission status: Runtime Error

Solution code:
n = int(input())
a = map(int, input().split())
print(min(a), max(a), sum(a))

Submission status: Runtime Error

Solution code:
n = input().split()
max = max(int(n))
min = min(int(n))
sum = sum(int(n))
answer = "{} {} {}"
print(answer.format(max, min, sum))

Submission status: Runtime Error

Solution code:
n=int(input())
a = map(int(),input().split())
as =a.sort()
max =as[-1]
mum =as[0]
sum=sum(as)
print("{} {} {}".format(mum,max,sum))

Submission status: Runtime Error

Solution code:
input()
x = [map(int, input().split(' '))]
print(min(x)),max(x),sum(x))

Submission status: Runtime Error

Solution code:
input()
x = [map(int, input().split(''))]
print(min(x),max(x),sum(x))

Submission status: Runtime Error

Solution code:
n = int(input())
min = 1000000
max = -1000000
sum = 0
for i in range(n):
    x = int(input())
    if x < min:
        min = x
    if x > max:
        max = x
    sum += x
print("%d %d %d", % (min,max,sum))

Submission status: Runtime Error

Solution code:
n = int(input().rstrip())
min = 1000000
max = -1000000
sum = 0
for i in range(n):
    x = int(input().rstrip())
    if x < min:
        min = x
    if x > max:
        max = x
    sum += x
print("%d %d %d", % (min,max,sum))

Submission status: Runtime Error

Solution code:
first=input()
hantei=list(map(int,input().split()))
print("{0} {1} {2}".format(min(hantei),max(hantei),sum(hantei))

Submission status: Runtime Error

Solution code:
n = int(input())
first = int(input())
min = first
max = first
sum = first
for i in range(n-1):
	x = int(input())
	if x > max:
		max = x
	if x < min:
		min = x
	sum += x

print(min, max, sum)

Submission status: Runtime Error

Solution code:
x = [int(i) for i in input().split()]
n = x[0]
x.pop(0)

print(x)

M = max(x)
m = min(x)
s = sum(x)

print(m," ",M," ",s)

Submission status: Runtime Error

Solution code:
x = [int(i) for i in input().split()]
n = x[0]
x.pop(0)

print(x)

M = max(x)
m = min(x)
s = sum(x)

print(m,M,s)

Submission status: Runtime Error

Solution code:
x = [int(i) for i in input().split()]
n = x[0]
x.pop(0)

M = max(x)
m = min(x)
s = sum(x)

print(m,M,s)

Submission status: Runtime Error

Solution code:
x = [int(i) for i in input().split()]
x.pop(0)

M = max(x)
m = min(x)
s = sum(x)

print(m,M,s)

Submission status: Runtime Error

Solution code:
x = [int(i) for i in input().split()]
x.pop(0)

M = max(x)
m = min(x)
s = sum(x)

print("{0} {1} {2}".format(m,M,s))

Submission status: Runtime Error

Solution code:
n=int(input("n個の整数n= "))
   total=0
   lis=list(map(int,input().split()))
   print(lis)
   print(min(lis),max(lis),sum(lis))

Submission status: Runtime Error

Solution code:
n=int(input(" "))
   lis=list(map(int,input().split()))
   print(lis)
   print(min(lis),max(lis),sum(lis))

Submission status: Runtime Error

Solution code:
n=int(input(" "))
   lis=list(map(int,input().split()))
   print(min(lis),max(lis),sum(lis))

Submission status: Runtime Error

Solution code:
n=int(input("n個の整数n= "))
   lis=list(map(int,input().split()))
   print(min(lis),max(lis),sum(lis)," ")

Submission status: Runtime Error

Solution code:
input()
  lis=list(map(int,input().split()))
  print(min(lis),max(lis),sum(lis)," ")

Submission status: Runtime Error

Solution code:
n=int(input())
a=map(int, input().split())
print(min(a), max(a), sum(a))

Submission status: Runtime Error

Solution code:
import math
n=int(input())
a=map(int, input().split())
print(min(a), max(a), sum(a))

Submission status: Runtime Error

Solution code:
#
# my_value_list = []
#
# while True:
#     try:
#         my_value_list.append(input().split())
#     except EOFError:
#         break
#
# for i in range(0, len(my_value_list)):
#     if my_value_list[i][1] == "+":
#         print(int(my_value_list[i][0]) + int(my_value_list[i][2]))
#     elif my_value_list[i][1] == "-":
#         print(int(my_value_list[i][0]) - int(my_value_list[i][2]))
#     elif my_value_list[i][1] == "/":
#         print(int(my_value_list[i][0]) // int(my_value_list[i][2]))
#     elif my_value_list[i][1] == "*":
#         print(int(my_value_list[i][0]) * int(my_value_list[i][2]))
#     else:
#         break

my_value = int(input())
my_value_list_str = input().split()

my_value_list = [int(i) for i in my_value_list_str]
my_value_list.sort()

print("{} {} {}".format(my_value_list[my_value], my_value_list[0], sum(my_value_list)))

Submission status: Runtime Error

Solution code:
n = int(input())
a = input().split()
for i in range(n)
 a[i] = int(a[i])

print("{} {} {}".format(min(a), max(a), sum(a))

Submission status: Runtime Error

Solution code:
n = int(input())
a = input().split()
for i in range(n)
 a[i] = int(a[i])

print("{} {} {}".format(min(a), max(a), sum(a)))

Submission status: Runtime Error

Solution code:
num = int(input())
array = [int(input()) for i in range(num)]

print (min(array), max(array), sum(array))

Submission status: Runtime Error

Solution code:
n = int(input())
i = 0

x = map(int, input().split())

mx = max(x)
mn = min(x)
sum = 0

while i < n:
    sum = sum + x[i]
    i += 1
    
print(mn, mx, sum)

Submission status: Runtime Error

Solution code:
n = input()
integer = list(map(int, input().split()))

min = integer[0]
max = integer[0]
sum = 0

for i in range(len(integer)):
    if max<i:
        max = i
    if i < min:
        min = i
    sum += i

print(min+" "+ max +" "+ sum)

Submission status: Runtime Error

Solution code:
n = int(raw_input())
data = raw_input().split(" ")

sorted_data = data.sort()

minimum = sorted_data[0]
maximum = sorted_data[-1]

goukei = 0
for i in range(n):
	goukei += i

print("{:} {:} {:}".format(minimum, maximum, goukei))

Submission status: Runtime Error

Solution code:
n = int(raw_input())
data = raw_input().split(" ")

sorted_data = sorted(data)

minimum = sorted_data[0]
maximum = sorted_data[-1]

goukei = 0
for i in data:
	goukei += i

print("{:} {:} {:}".format(minimum, maximum, goukei))

Submission status: Runtime Error

Solution code:
n = int(raw_input())
data = raw_input().split(" ")

minimum = 1000001
maximum = 0
goukei = 0

for i in data:
	if i < minimum:
		minimum = i

	if i > maximum:
		maximum = i

	goukei += i

print("{:} {:} {:}".format(minimum, maximum, goukei))

Submission status: Runtime Error

Solution code:
n = raw_input()
data = raw_input().split(" ")

#data = [10, 1, 5, 4, 17]

minimum = 1000001
maximum = 0
goukei = 0

for i in data:
	if i < minimum:
		minimum = i
	if i > maximum:
		maximum = i
	goukei += i

print("{:} {:} {:}".format(minimum, maximum, goukei))

Submission status: Runtime Error

Solution code:
flag =0
while flag==0:
    a,b,c=[ i for i in input().split()]
    if b=="?":
        flag=1
        break
    elif b=="+":
        n=int(a)+int(c)
    elif b=="-":
        n=int(a)-int(c)
    elif b=="*":
        n=int(a)*int(c)
    elif b=="/":
        n=int(a)/int(c)
    print(int(n))

Submission status: Runtime Error

Solution code:
n=int(input())
l=list(map(int,input().split()))
print('%d %d %d'%(min(l), max(l), sum(l))

Submission status: Runtime Error

Solution code:
import sys
x = sys.stdin.readlines()
a = list(x[1].strip())
min_num = min(a)
max_num = max(a)
sum_num = sum(a)
print("{} {} {}".format(min_num, max_num, sum_num))

Submission status: Runtime Error

Solution code:
import sys
x = sys.stdin.readlines()
a = list(map(int, x[1].strip()))
min_num = min(a)
max_num = max(a)
sum_num = sum(a)
print("{} {} {}".format(min_num, max_num, sum_num))

Submission status: Runtime Error

Solution code:
import sys
x = sys.stdin.readlines()
line = x[1]
a = list(map(int, line.strip()))
min_num = min(a)
max_num = max(a)
sum_num = sum(a)
print("{} {} {}".format(min_num, max_num, sum_num))

Submission status: Runtime Error

Solution code:
input()
A = list(map(int, input().split())
min_num = min(A)
max_num = max(A)
sum_num = sum(A)
print("{} {} {}".format(min_num, max_num, sum_num))

Submission status: Runtime Error

Solution code:
input()
A = list(map(int, input().split())
print(min(A),max(A),sum(A))

Submission status: Runtime Error

Solution code:
import numpy as np
input()
A = np.array([map(int, input().split())])
print(A.min() ,A.max() ,A.sum())

Submission status: Runtime Error

Solution code:
import numpy as np
input()
A = np.array(map(list(int, input().split())))
print(A.min() ,A.max() ,A.sum())

Submission status: Runtime Error

Solution code:
input()
i=input().split()
print(f'{min(i)} {max(i)} {sum(i)}')

Submission status: Runtime Error

Solution code:
input()
i=map(int,input().split())
print(f'{min(i)} {max(i)} {sum(i)}')

Submission status: Runtime Error

Solution code:
input()
b=[int(a) for a in input().split()]
print(min(b),max(b),sum(b)')

Submission status: Runtime Error

Solution code:
n=int(input())
ns=input().split()
for i in range(len(ns)):
    ns[i]=int(ns[i])
a=sum(ns)
i=min(ns)
u=max(ns)
print(amin,amax,asum)

Submission status: Runtime Error

Solution code:
input()
li = map(int, input().split())
print(min(li), max(li), sum(li))

Submission status: Runtime Error

Solution code:
n = int(input())
nums = input().split()

print(min(nums), max(nums), sum(sums))

Submission status: Runtime Error

Solution code:
n = int(input())
nums = input().split()
su = 0
ma = -1000000
mi = 1000000

for v in range(n):
    num = int(nums[v])
    print(num)
    if num > ma:
        ma = num
        print('max is',ma)
    if num < mi:
        mi = num
        print('min is',mi)
    su += num

print(mi, ma, su)

}

Submission status: Runtime Error

Solution code:
l=input().split()
print(min(l), max(l), sum(l))

Submission status: Runtime Error

Solution code:
l=list(map(int, input().split())
print(min(l), max(l), sum(l))

Submission status: Runtime Error

Solution code:
input()
l=list(map(int, input().split())
print(min(l), max(l), sum(l))

Submission status: Runtime Error

Solution code:
s=0
a=[]
for _ in range(int(input())):
    a.append(int(input()))
    s+=a[_]
print(min(a),max(a),s)

Submission status: Runtime Error

Solution code:
input()
s = 0
a = list(map(int,input().split()))
for u in a:
    s=s+a
print(min(a),max(a),s)

Submission status: Runtime Error

Solution code:
input()
s = 0
a = input()
a = a.split(" ")
for u in a:
    s=s+int(a)
print(min(a),max(a),s)

Submission status: Runtime Error

Solution code:
s=input()
s = 0
a = input()
a = a.split(" ")
for u in a:
    s=s+int(a)
print(min(a),max(a),s)

Submission status: Runtime Error

Solution code:

input()
s = 0
a = input()
a = a.split(" ")
for u in a:
    s=s+int(a)
print(min(a),max(a),s)

Submission status: Runtime Error

Solution code:

input()
s = 0
a = input()
a = a.split(" ")
for u in a:
    s=s+int(a)

print(min(a),max(a),s)

Submission status: Runtime Error

Solution code:
input()
s = 0
a = input()
a = map(int,a.split(" "))
for u in a:
    s=s+u

print(min(a),max(a),s)

Submission status: Runtime Error

Solution code:
input()
s = 0
a = input()
a = a.split(" ")
a = map(int,a)
for u in a:
    s=s+u

print(min(a),max(a),s)

Submission status: Runtime Error

Solution code:
input()
s = 0
a = input()
a = a.split(" ")
b = map(int,a)
for u in b:
    s=s+u

print(min(b),max(b),s)

Submission status: Runtime Error

Solution code:
input()
s = 0
a = input()
b = a.split(" ")
c = map(int,b)
for u in c:
    s=s+u

print(min(c),max(c),s)

Submission status: Runtime Error

Solution code:
n = input()
s = 0
a = input()
b = a.split(" ")
c = []
for i in range(n):
    c.append(int(b[i])
for u in c:
    s=s+u

print(min(c),max(c),s)

Submission status: Runtime Error

Solution code:
n = input()
s = 0
a = input()
b = a.split(" ")
c = []
for i in range(n):
    c.append(int(b[i]))
for u in c:
    s=s+u

print(min(c),max(c),s)

Submission status: Runtime Error

Solution code:
n = input()
s = 0
a = input()
b = a.split(" ")
c = []
for i in range(n):
    c.append(int(b[i]))

for u in c:
    s=s+u

print(min(c),max(c),s)

Submission status: Runtime Error

Solution code:
n = int(input())
nums = list(map(int, input().split(" ")))

maxnum = -1000000
minnum = 1000000
total = 0

for item in nums:
	if maxnum < item:
		maxnum = item
	elif minnum > item:
		minnum = item
	else:
		
		
for item in nums:
	total += item
	
print(str(minnum) + " " + str(maxnum) + " " + str(total))

Submission status: Runtime Error

Solution code:
FirstLine = input()
myList  = list([int(i) for i in input().split()])
print(min(A),max(A),sum(A))

Submission status: Runtime Error

Solution code:
n=int(input())
for i in range(n):
   n[1]=n[i]
   s=sum(n)
   m=min(n)
   ma=max(n)
   print(m,ma,s)

Submission status: Runtime Error

Solution code:
n=int(input())
for i in range(n):
   n[1]=n[i]
   s=sum(n)
   m=min(n)
   ma=max(n)
   print(m ma s)

Submission status: Runtime Error

Solution code:
n=int(input())
n=input().split()
for i in range(n):
   n[1]=n[i]
   s=sum(n)
   m=min(n)
   ma=max(n)
   print(m ma s)

Submission status: Runtime Error

Solution code:
n=int(input())
n=input().split()
for i in range(len(n)):
   n[1]=int(n[i])
   s=sum(n)
   m=min(n)
   ma=max(n)
   print(m ma s)

Submission status: Runtime Error

Solution code:
n=int(input())
n=input().split()
for i in range(len(n)):
   n[1]=int(n[i])
s=sum(n)
m=min(n)
ma=max(n)
print(m ma s)

Submission status: Runtime Error

Solution code:
n=int(input())
n=input().split()
for i in range(len(n)):
     n[i]=int(n[i])
s=sum(n)
m=min(n)
ma=max(n)
print(m ma s)

Submission status: Runtime Error

Solution code:
n=int(input())
r=input().split()
for i in range(r):
     r[i]=int(r[i])
s=sum(r)
m=min(r)
ma=max(r)
print(m ma s)

Submission status: Runtime Error

Solution code:
n=int(input())
r=input().split()
for i in range(r):
    r[i]=int(r[i])
s=sum(r)
m=min(r)
ma=max(r)
print(m ma s)

Submission status: Runtime Error

Solution code:
n=int(input())
r=input().split()
for i in range(r):
    r[i]=r[i]
s=sum(r)
m=min(r)
ma=max(r)
print(m ma s)

Submission status: Runtime Error

Solution code:
n=int(input())
r=input().split()
for i in range(len(r)):
    r[i]=int(r[i])
s=sum(r)
m=min(r)
ma=max(r)
print(m ma s)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int,input().split()))
a.sorted()
ans = 0
for i in range(len(a)):
	ans += a[i]
print("%d %d %d" % a[0],a[len(a)-1],ans)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int,input().split()))
a.sort()
ans = 0
for i in range(len(a)):
	ans += a[i]
print("%d %d %d" % a[0],a[len(a)-1],ans)

Submission status: Runtime Error

Solution code:
LEN = int(input())
mem = []
for i in range(0,LEN):
    mem.append(int(input()))
    LEN-=1
    if LEN == 0:
        break
print('%d %d %d',min(mem),max(mem),sum(mem))

Submission status: Runtime Error

Solution code:
LEN = int(input())
mem = []
for i in range(0,LEN):
    mem.append(int(input()))
    LEN-=1
    if LEN == 0:
        break
print(min(mem),max(mem),sum(mem))

Submission status: Runtime Error

Solution code:
input()
 
a = map(int, input().split())
 
sum = 0
 
for x in a:
    sum += x
 
print(min(a), max(a), sum)

Submission status: Runtime Error

Solution code:
import numpy as np

x = map(int,input().split())
x.sort()
sum = np.sum(x)
print('%s %s %s'%(max(x),min(x),sum))

Submission status: Runtime Error

Solution code:
import numpy as np

x = list(map(int,input().split()))
x.sort()
sum = np.sum(x)
print('%s %s %s'%(max(x),min(x),sum))

Submission status: Runtime Error

Solution code:
input()
li=list(map(int,input().split()))
for i in li:
	sum+=li[i]
print(min(li),max(li),sum)

Submission status: Runtime Error

Solution code:
input()
li=list(map(int,input().split()))
for i in li:
	sum+=li
print(min(li),max(li),sum)

Submission status: Runtime Error

Solution code:
input()
li=list(map(int,input().split()))
for i in li:
	sum+=i
print(min(li),max(li),sum)

Submission status: Runtime Error

Solution code:
input()

a = list(map(int, input().split())

sum = 0

for x in a:
    sum += x

print(min(a), max(a), sum)

Submission status: Runtime Error

Solution code:
n1 = input()
n2 = map(int, input().split())
i = 0

while n2.length > i:
    s += n2[i]
    i += 1

n2.sort()

print("{} {} {}".format(n2[0], n2[-1], s))

Submission status: Runtime Error

Solution code:
n1 = input()
n2 = map(int, input().split())

asum = sum(n2)
amin = min(n2)
amax = max(n2)

print(amin, amax, asum)

Submission status: Runtime Error

Solution code:
input()

a = list(map(int, input().split()))

s = 0

for i in len(a):
    s += i

print(min(a), max(a), s)

Submission status: Runtime Error

Solution code:
input()

a = list(map(int, input().split()))

s = 0

for i in len(a):
    s = s + i

print(min(a), max(a), s)

Submission status: Runtime Error

Solution code:
n = input()
max = 0
min = 0
sum = 0
for i in range(1,n+1):
    a[i]=[int(x) for x in input().split()]
    if a[i] >= max: max = a[i]
    if a[i] <= min: min = a[i]
    sum += a[i]

print(min,max,sum)

Submission status: Runtime Error

Solution code:
n = input()
max = 0
min = 0
sum = 0
for i in range(1,n+1):
    a=[int(x) for x in input().split()]
    if a[i] >= max: max = a[i]
    if a[i] <= min: min = a[i]
    sum += a[i]

print(min,max,sum)

Submission status: Runtime Error

Solution code:
n = input()
max = 0
min = 0
sum = 0
a=[int(x) for x in input().split()]
for i in range(1,n+1):
    if a[i] >= max: max = a[i]
    if a[i] <= min: min = a[i]
    sum += a[i]

print(min,max,sum)

Submission status: Runtime Error

Solution code:
n = input()
max = 0
min = 0
sum = 0
a=[int(x) for x in input().split()]
for i in range(n):
    if a[i] >= max: max = a[i]
    if a[i] <= min: min = a[i]
    sum += a[i]

print(min,max,sum)

Submission status: Runtime Error

Solution code:
n = int(input())
max = -100000000
min = 1000000000
sum = 0
a= input().split()
for i in range(0,n):
    sum += a[i]
    if a[i] >= max: max = a[i]
    if a[i] <= min: min = a[i]

print(str(min),str(max),str(sum))

Submission status: Runtime Error

Solution code:
n = int(input())
max = -100000000
min = 1000000000
sum = 0
a= input().split()
for i in range(0,n):
    sum += a[i]
    if int(a[i]) >= max: max = a[i]
    if int(a[i]) <= min: min = a[i]

print(min,max,sum)

Submission status: Runtime Error

Solution code:
n = int(input())
a = input().split()
max = -1000000
min = 1000000
sum = 0
for i in range(0,n):
    sum = sum + int(a[i])
    if int(a[i]) > max:
        max = int(a[i])
    if int(a[i]) < min:
        min = int(a[i])
 
print(str(min) + " " + str(max) + " " + str(sum))

Submission status: Runtime Error

Solution code:
n = int(input())
max = -10000000
min = 100000000
sum = 0
a = input().split()
for i in range(0,n):
 sum += a[i]
 if int(a[i]) >= max: max = a[i]
 if int(a[i]) <= min: min = a[i]

print(min,max,sum)

Submission status: Runtime Error

Solution code:
n = int raw_input()
a = map(int, raw_input().split())
print min(a), max(a), sum(a)

Submission status: Runtime Error

Solution code:
n = int(input())
ns= int(input.spit())
for i in range(n):
    asum = sum(ns)
    amin = min(ns)
    amax = max(ns)

print(amin, amax, asum)

Submission status: Runtime Error

Solution code:
n = int(input())
ns= int(input.spit())
for i in range(n):
    ns[i]= int(ns[i])
asum = sum(ns)
amin = min(ns)
amax = max(ns)

print(amin, amax, asum)

Submission status: Runtime Error

Solution code:
n = int(input())
ns= int(input().spit())
for i in range(n):
    ns[i]= int(ns[i])
asum = sum(ns)
amin = min(ns)
amax = max(ns)

print(amin, amax, asum))

Submission status: Runtime Error

Solution code:
n = int(input())
ns= int(input().spit())
asum = sum(ns)
amin = min(ns)
amax = max(ns)

print(amin, amax, asum)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8

a = map(int,raw_input().split())

k = a[0]
b = sorted(a[1])

min = b[0]
Max = b[k-1]

sum = 0
for i in b:
   sum += i

print('%i %i %i' % (min,Max,sum)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8

k = input()
a = map(int,raw_input().split())

b = sorted(a)

min = b[0]
Max = b[k-1]

sum = 0
for i in b:
   sum += i

print('%i %i %i' % (min,Max,sum)

Submission status: Runtime Error

Solution code:
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
while i<n:
 j=int(input())
 if max<j:
  max=j
 if min>j:
  min=j
 g+=j
 i=i+1
print(mi,max,j)

Submission status: Runtime Error

Solution code:
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
while i<n:
 j=int(input())
 if max<j:
  max=j
 if min>j:
  min=j
 g+=j
 i=i+1
print(min,max,g)

Submission status: Runtime Error

Solution code:
n=int(input())
max=-1000001;min=1000001;g=0;
num+=map(int,input().split())
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
print(min,max,g)

Submission status: Runtime Error

Solution code:
n=int(input())
max=-1000001;min=1000001;g=0;
num=[map(int,input().split())]
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
print(min,max,g)

Submission status: Runtime Error

Solution code:
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=[]
while i<n:
 num.append(int(input()))
 i=i+1
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
print(min,max,g)

Submission status: Runtime Error

Solution code:
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=[]
while i<n:
 num.append(int(input().split()))
 i=i+1
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
print(min,max,g)

Submission status: Runtime Error

Solution code:
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=list()
while i<n:
 num+=map(int,input().split())
 i=i+1
for x in num:
 if max<x:
  max=x
 if min>x:
  min=x
 g+=x
print(min,max,g)

Submission status: Runtime Error

Solution code:
n=int(input())
max=-1000001;min=1000001;g=0;i=0;
num=list()
while i<n:
 j=int(input().split())
 if max<j:
  max=j
 if min>j:
  min=j
 g+=j
 i+=1
print(min,max,g)

Submission status: Runtime Error

Solution code:
n = int(input)
a = map(int, input().split())
print(min(a), max(a), sum(a))

Submission status: Runtime Error

Solution code:
n = int(input())
a = map(int, input().split())
print(min(a), max(a), sum(a))

Submission status: Runtime Error

Solution code:
# AOJ ITP1_4_D: Min, Max and Sum
# 2018.6.7 bal4u
#

n = input()
data = list(map(int, input().split()))   # 1行にある複数の値を整数にして、リストにしまう
#
vmin = min(data)  # 最小値
vmax = max(data)  # 最大値
vsum = sum(data)  # 合計
#
print(vmin, vmax, vsum)  # 結果表示

Submission status: Runtime Error

Solution code:
def main():
    while True:
        numlst = []
        numlst = list(map(int, input().split()))
        
        print(min(numlst), max(numlst), sum(numlst))

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
def main():
    n = int(input())
    lst = list(map(int, input().split()))

    print(min(numlst), max(numlst), sum(numlst))

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
import math
def solve(input_text):
    for line in input_text:
        op=line[1]
        a=int(line[0])
        b=int(line[2])
        ans=0
        
        if op=='+':
            ans=a+b
        if op=='-':
            ans=a-b
        if op=='*':
            ans=a*b
        if op == '/':
            ans =math.floor(a/b)
        print(ans)
    
def answer():
    input_text=[]
    line=[]
    
    while True:
        
        line = input()
        line= line.split(' ')
        if line[1]=='?':
            break
        input_text.append(line)
    
    solve(input_text)

if __name__ =='__main__':
    answer()

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
print(min(a), end=' ')
print(max(a), end=' ')
print(sum(a), end=' ')

Submission status: WA: Presentation Error

Solution code:
num = int( input() )
ls = list(map(int, input().split() ) )

print(min(ls), end=" ")
print(max(ls), end=" ")
print(sum(ls), end="")

Submission status: WA: Presentation Error

Solution code:
input()
lis=list(map(int,input().split()))
print(min(lis),max(lis),sum(lis)," ")