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

Solution code:
#(37)最小値、最大値、合計値
n=int(input())
a=sorted([int(x) for x in input().split()])
print(a[0],a[-1],sum(a))

Submission status: Accepted

Solution code:
i = int(input())
lst = list(map(int,input().split()))

lst.sort()
s = 0

for t in lst:
    s +=t

print(lst[0], lst[-1],s)

Submission status: Accepted

Solution code:
n = int(input())

ai = list(map(int,input().split()))
    
print(min(ai),max(ai),sum(ai))

Submission status: Accepted

Solution code:
n = int(input())
numbers = list(int(x) for x in input().split())
numbers.sort()

total = 0

for i in range(n):
    total += numbers[i]
    
print(numbers[0],numbers[n - 1],total)

Submission status: Accepted

Solution code:
a = int(input())
b = list(map(int,input().split()))

print(min(b), max(b), sum(b))

Submission status: Accepted

Solution code:
n = int(input())
data = list(map(int, input().split()))   # 1行にある複数の値を整数にして、リストにしまう

vmin = min(data)  # 最小値
vmax = max(data)  # 最大値
vsum = sum(data)  # 合計

print(vmin, vmax, vsum)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

print(min(l),max(l),sum(l))

Submission status: Accepted

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

minb=min(b)
maxb=max(b)
sumb=sum(b)

print(minb,maxb,sumb)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
d = list(map(int, input().split()))
dmin = min(d)  
dmax = max(d)  
dsum = sum(d)  

print(dmin, dmax, dsum)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
input()
n = list(map(int, input().split()))
a = min(n)
b = max(n)
c = sum(n)
print(f'{a} {b} {c}')

Submission status: Accepted

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

Submission status: Accepted

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

print(min(m),max(m),sum(m))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
a=list(map(int,input().split()))
b=sorted(a)
print(b[0],b[n-1],sum(b))

Submission status: Accepted

Solution code:
n = int(input())
numbers = list(int(x) for x in input().split())
numbers.sort()

total = 0

for i in range(n):
    total += numbers[i]

print(numbers[0], numbers[n - 1], total)

Submission status: Accepted

Solution code:
N = int(input())
nums = list(int(x) for x in input().split())
print(min(nums),max(nums),sum(nums))

Submission status: Accepted

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

print(min(q),max(q),sum(q))

Submission status: Accepted

Solution code:
n = int(input())
a = input().split()
if len(a) == n:
    a_int = [int(n) for n in a]
    print(min(a_int),max(a_int),sum(a_int))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
nums = input().split()
new = []
s = 0
for i in nums:
    s = s + int(i)
    new.append(int(i))
new.sort()
print(new[0], new[-1], s)

Submission status: Accepted

Solution code:
def mapt(fn, *args):
    return tuple(map(fn, *args))
    
    
def aa(n,l):
    print(min(l), max(l), sum(l))

n = input()
l = mapt(int, input().split(" "))
aa(n, l)

Submission status: Accepted

Solution code:
n = int(input())
L = list(map(int, input().split()))
max, min, sum = L[0], L[0], 0
for i in L:
    if i > max:
        max = i
    if i < min:
        min = i
    sum += i
print(min, max, sum)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(min(x),max(x),sum(x))

Submission status: Accepted

Solution code:

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

print (  min(x),max(x),sum(x))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

l.sort()
max = str(l[n-1])
min = str(l[0])
s = str(sum(l))

print(min + " " + max +" " + s)

Submission status: Accepted

Solution code:
n=int(input())
num=list(map(int,input().split(" ")))
ans=[min(num),max(num),sum(num)]
print(" ".join(map(str,ans)))

Submission status: Accepted

Solution code:
x = input()
y = list(map(int, input().split()))

print(min(y), max(y), sum(y))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

n = int(input())
a =list(map(int,input().split()))
print(min(a) ,max(a) ,sum(a))

Submission status: Accepted

Solution code:
n = int(input())
lst = list(map(int,input().split()))
a = min(lst)
b = max(lst)
c = sum(lst)
print('{} {} {}'. format(a,b,c))

Submission status: Accepted

Solution code:
a = int(input())
b = list(map(int, input().split()))
c = min(b)
d = max(b)
e = sum(b)
print(c,d,e)

Submission status: Accepted

Solution code:
#
# 4d
#


def main():
    n = int(input())
    a = list(map(int, input().split()))
    print(f"{min(a)} {max(a)} {sum(a)}")


if __name__ == '__main__':
    main()

Submission status: Accepted

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

mi = min(num)
ma = max(num)
s = sum(num)

print(mi, ma, s)

Submission status: Accepted

Solution code:
n=int(input())
x=list(map(int,input().split()))
a=min(x)
b=max(x)
c=sum(x)

print(a,b,c)

Submission status: Accepted

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

nmin = min(table)
nmax = max(table)
nsum = sum(table)

print('%d %d %d' %(nmin, nmax, nsum))

Submission status: Accepted

Solution code:
n = int(input())
nums = list(map(int, input().split()))
nums = sorted(nums)
sumnum = sum(nums)

print("{} {} {}" .format(nums[0], nums[len(nums)-1], sumnum))

Submission status: Accepted

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

print(min(x), max(x), sum(x))

Submission status: Accepted

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


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

Submission status: Accepted

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

a = min(lst)
b = max(lst)
c = sum(lst)

print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

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

print(f"{min(a)} {max(a)} {sum(a)}")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(min(ai),max(ai),sum(ai))

Submission status: Accepted

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

numlist.sort()

min = numlist[0]
max = numlist[int(n)-1]
print(min,max,sum(numlist))

Submission status: Accepted

Solution code:
total_numbers = int(input())

numbers = [int(x) for x in input().split()]

max_number = max(numbers)
min_number = min(numbers)

total = sum(numbers)

print(str(min_number) + " " + str(max_number) + " " + str(total))

Submission status: Accepted

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

a=min(x)
b=max(x)
c=sum(x)

print(a,b,c)

Submission status: Accepted

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

a = min(lst)
b = max(lst)
c = sum(lst)
print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

n = int(input())
lst = list(map(int,input().split()))

a = min(lst)   
b = max(lst)   
c = sum(lst)
print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

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

a = min(data)  
b = max(data)  
c = sum(data)  
#
print(a,b,c)

Submission status: Accepted

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

min = 1000001
for i in ls:
    if i < min:
        min = i

max = -1000001
for i in ls:
    if i > max:
        max = i

sum = 0
for i in ls:
    sum += i
    
print(min, max, sum)

Submission status: Accepted

Solution code:
N=int(input())
L=list(map(int, input().split()))

min=min(L)
max=max(L)
sum=sum(L)
print(f"{min} {max} {sum}")

Submission status: Accepted

Solution code:

l = input()
arr = list(map(int, input().split()))

min, max, sum = 1000000, -1000000, 0

for a in arr:
    sum += a
    if max < a:
        max = a
    if min > a:
        min = a
    
print(f'{min} {max} {sum}')

Submission status: Accepted

Solution code:
N, *A = map(int, open(0).read().split())
print(min(A), max(A), sum(A))

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input())
data = list(map(int, input().split()))   
vmin = min(data)  # 最小値
vmax = max(data)  # 最大値
vsum = sum(data)  # 合計
#
print(vmin, vmax, vsum)  # 結果表示

Submission status: Accepted

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

vmin = min(data)
vmax = max(data)
vsum = sum(data)

print(vmin, vmax, vsum)

Submission status: Accepted

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

Submission status: Accepted

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

max=min=data[0]
sum=0
for i in range(n):
    sum+=data[i]
    if data[i]>max:
        max=data[i]
    if data[i]<min:
        min=data[i]
print(min,max,sum)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=int(input())
I=list(map(int, input().split()))
a=min(I)
b=max(I)
c=sum(I)
print(a, b, c)

Submission status: Accepted

Solution code:
n = int(input())
a = list(map(int, input().split()))
print(f"{min(a)} {max(a)} {sum(a)}")

Submission status: Accepted

Solution code:
N = int(input())
sum = 0
ls=list(map(int,input().split()))
#print(ls)
for i in range(N):
    sum += ls[i]
ls.sort(reverse=True)
print(ls[-1],ls[0],sum)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
p=int(input())
list1=list(range(p))
q=map(int,input().split())
list2=list(q)
list1=list2
min1=min(list1)
max1=max(list1)
sum1=sum(list1)
    
print(min1,max1,sum1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def resolve():
    n = int(input())
    nums = sorted(list(map(int, input().split())))

    print(nums[0], nums[-1], sum(nums))


resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
l=list(map(int,input().split()))
a=min(l)
b=max(l)
c=sum(l)

print(a,b,c)

Submission status: Accepted

Solution code:
count = int(input())
dataset = input().split(" ")

num = []
for i in range(len(dataset)):
    num.append(int(dataset[i]))

min = num[0]
max = num[0]
sum = 0

for n in num:
    if min > n:
        min = n
    if max < n:
        max = n
    sum += n

print("%d %d %d" % (min, max, sum))

Submission status: Accepted

Solution code:
n = int(input())
l = list(map(int, input().split()))
a = min(l)
b = max(l)
c = sum(l)
print(f'{a} {b} {c}')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
lst = [int(i) for i in input().split()]
print(f'{min(lst)} {max(lst)} {sum(lst)}')

Submission status: Accepted

Solution code:
_ = input().strip()
l = [int(i) for i in input().strip().split()]

print(min(l),max(l),sum(l))

Submission status: Accepted

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

print(f"{min(a)} {max(a)} {sum(a)}")

Submission status: Accepted

Solution code:
M = 1000000000000
minNum = M
maxNum = -M
sumNum = 0
n = int(input())
numList = list(map(int, input().split()))
for x in numList:
    if x < minNum:
        minNum = x
    if x > maxNum:
        maxNum = x
    sumNum += x
print('%d %d %d' % (minNum, maxNum, sumNum))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

n = int(input())
a_list = list(map(int, input().split()[:n]))

print(min(a_list), max(a_list), sum(a_list))

Submission status: Accepted

Solution code:
from statistics import mean
a=int(input())
b=list(map(int,input().split()))
c=min(b)
d=sum(b)
e=max(b)
print("{} {} {}".format(c,e,d))

Submission status: Accepted

Solution code:
n = int(input())
a = list(map(int, input().split()))
a.sort()
print(str(a[0]) + ' ' + str(a[n-1]) + ' ' + str(sum(a)))

Submission status: Accepted

Solution code:
N=int(input())
array = list(map(int, input().strip().split()))
x=0
for i in range(N):
    x+=array[i]
print(f"{min(array)} {max(array)} {x}")

Submission status: Accepted

Solution code:
n = (input())
ns = input().split()
print(min(int(i) for i in ns),max(int(i) for i in ns),sum(int(i) for i in ns))

Submission status: Accepted

Solution code:
lens = int(input())
numbers = list(map(int, input().split()))
print(f"{min(numbers)} {max(numbers)} {sum(numbers)}")

Submission status: Accepted

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

InpList=sorted(InpList)

print(InpList[0],InpList[n-1],sum(InpList))

Submission status: Accepted

Solution code:
n = int(input())

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

print(min(l), max(l), sum(l))

Submission status: Accepted

Solution code:
def mms() :
    n = int(input())
    r = list(map(int, input().split()))
    SUM = 0
        
    for i in range(n) :
        SUM += r[i]
        
    print(min(r), max(r), SUM)
    
mms()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
while True:
    try:
        x=list(map(int,input().split()))
        a=min(x)
        b=max(x)
        c=sum(x)
        print(a,b,c)
    except:
        break

Submission status: Accepted

Solution code:
def sum(a, n):
    s = 0
    for i in range(int(n)):
        s += a[i]
    return s


n = input()
a = list(map(int, input().split()))
print(min(a), max(a), sum(a, n))

Submission status: Accepted

Solution code:
inp = []
i = 0
j = 0

min = 0
max = 0
sum = 0

n = int(input())
inp = list(map(int, input().split()))

for i in range(n):
    if i == 0:
        min = inp[i]
        max = inp[i]
        sum = inp[i]
    else:
        if min > inp[i]:
            min = inp[i]
        if max < inp[i]:
            max = inp[i]

        sum += inp[i]

print("%s %s %s" % (min, max, sum))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
lst=[int(i) for i in input().split()]
a=min(lst)
b=max(lst)
c=sum(lst)

print(a,b,c)

Submission status: Accepted

Solution code:
a = input()
b = input()

numbers = b.split(" ")


print (min(int(i) for i in numbers),max(int(i) for i in numbers),sum(int(i) for i in numbers))

Submission status: Accepted

Solution code:
BIG_NUM = 2000000000

N = int(input())

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

maximum = -BIG_NUM
minimum = BIG_NUM
total = 0

for x in table:
    if maximum < x:
        maximum = x
    if minimum > x:
        minimum = x
    total += x
    
print("%d %d %d"%(minimum,maximum,total))

Submission status: Accepted

Solution code:
size = int(input())
a = list(map(int,input().split()))

tmpmax = a[0]
tmpmin = a[0]
tmpsum = 0
for i in range(size):
    if tmpmax < a[i]:
        tmpmax = a[i]
    if tmpmin > a[i]:
        tmpmin = a[i]
    tmpsum += a[i]
    
print(str(tmpmin) + " " + str(tmpmax) + " " + str(tmpsum))

Submission status: Accepted

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

def main():
    numbers=[]
    n = int(input())
    numbers = list(map(int,input().split()))
    print("{} {} {}".format(min(numbers),max(numbers),sum(numbers)))


if __name__=="__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

vmin = min(data)
vmax = max(data)
vsum = sum(data)

print(vmin, vmax, vsum)

Submission status: Accepted

Solution code:
n = int(input())
a = list(map(int, input().split()))
max = a[0]
min = a[0]
sum = 0
for i in a:
    if i > max:
        max = i
    elif i < min:
        min = i
    sum += i
print(min, max, sum)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
lista = input().split()
maxval = -1000000
minval = 1000000
total = 0
for i in range(a):
    if int(lista[i]) > maxval:
        maxval = int(lista[i])
    if int(lista[i]) < minval:
        minval = int(lista[i])
    total += int(lista[i])
print(minval, maxval, total)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
li = list(map(int,input().split()))
li.sort()
print(li[0],li[-1],sum(li))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
a_list  = list(map(int,input().split()[:n]))

print(min(a_list),max(a_list),sum(a_list))

Submission status: Accepted

Solution code:
numCoun = map(int,input().split())
numList = list(map(int,input().split()))

sumA =sum(numList)
minA = min(numList)
maxB = max(numList)

print(minA,maxB,sumA)

Submission status: Accepted

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

Submission status: Accepted

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


a = min(a_list)
b = max(a_list)
c = sum(a_list)
print(a, b, c)

Submission status: Accepted

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

Submission status: Accepted

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

print(min(lis),max(lis),sum(lis))

Submission status: Accepted

Solution code:
# 演習1-9
n=input()
list=[i for i in map(int, input().split())]
print(min(list),max(list),sum(list))

Submission status: Accepted

Solution code:
n=int(input())
a=list(map(int,input().split()))
a.sort()
print(f'{a[0]} {a[-1]} {sum(a)}')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
a=list(map(int,input().split()))
bignam= -1000001
smolnam=10000001
total=0
for x in a:
    if bignam<x:
        bignam=x
    if smolnam>x:
        smolnam=x
    total+=x
print(smolnam,bignam,total)

Submission status: Accepted

Solution code:
n = input()
list_num = [int(num) for num in input().split()]
print(min(list_num),max(list_num),sum(list_num))

Submission status: Accepted

Solution code:
#与えられたn個の整数の最小値、最大値、合計値を求めるプログラム

n = int(input())
list = input().split()
min = 1000001; max = -1000001; add = 0

i = 0
while i < n:
    if min > int(list[i]):
        min = int(list[i])
    if max < int(list[i]):
        max = int(list[i])
    add = add + int(list[i])
    i += 1

print(min, max, add)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
x =list(map(int,input().split()))
mn=x[0]
mx=x[0]
sum=x[0]
for i in range(1,n):
    mn=min(mn,x[i])
    mx=max(mx,x[i])
    sum+=x[i]
    
print(mn,mx,sum)

Submission status: Accepted

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

a = min(n_list)
b = max(n_list)
c = sum(n_list)

print(a,b,c)

Submission status: Accepted

Solution code:
n=int(input())#5がくる
list1=[0]*n

list1=list(map(int, input().split()))
print(min(list1),max(list1),sum(list1))

Submission status: Accepted

Solution code:
num = int(input())

box = list(map(int, input().split(' ')))
box.sort(reverse = True)

print('{} {} {}'.format(box[-1], box[0], sum(box)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i=0
N=int(input())
I=list(map(int,input().split()))

    
print(min(I),max(I),sum(I))

Submission status: Accepted

Solution code:
def main():
  n = int(input())
  A = [int(_) for _ in input().split()]
  m, M, s = 10 ** 8, -10 ** 8, 0
  for a in A:
    m = min(m, a)
    M = max(M, a)
    s += a
  print(m, M, s)
  return

if __name__ == '__main__':
  main()

Submission status: Accepted

Solution code:
N = int(input())
A = [int(n) for n in input().split()]
print(min(A), max(A), sum(A))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

print(min(x), max(x), sum(x))

Submission status: Accepted

Solution code:
# coding: utf-8

ct = int(input().strip())
num_list = [int(x) for x in input().strip().split()]

mi = min(num_list)
ma = max(num_list)
su = sum(num_list)

print(str(mi) + " " + str(ma) + " " + str(su))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

n = int(input())
l = list(map(int, input().split()))

print(min(l), max(l), sum(l))

Submission status: Accepted

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

min = min(l)
max = max(l)
sum = sum(l)

print(f"{min} {max} {sum}")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
a_list = list(map(int, input().split()[:n]))
ma = max(a_list)
mi = min(a_list)
su = sum(a_list)
print('{} {} {}'.format(mi,ma,su))

Submission status: Accepted

Solution code:
n = input()

nums = [int(num) for num in input().split()]

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
x=input()

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

a=min(list)
b=max(list)
c=sum(list)

print(a,b,c)

Submission status: Accepted

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

a=min(ai)
b=max(ai)
c=sum(ai)

print(a,b,c)

Submission status: Accepted

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

a = min(nlist)
b = max(nlist) 
c = sum(nlist)
print(a,b,c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=int(input())
lst = list(map(int,input().split()))
b=min(lst)
c=max(lst)
d=sum(lst)

print(b,c,d)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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