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:
# -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_D&lang=jp

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    n = input()
    numbers = [int(x) for x in input().split()]
    print(min(numbers), max(numbers), sum(numbers))


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

#import fileinput
import math

def main():

    num = int(input())

    inputLine = input()
    array = list(map(int, inputLine.strip().split()))

    mx = max(array)
    mn = min(array)
    sm = sum(array)

    print('%d %d %d' % (mn, mx, sm))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a = input()
num = input()
num_1 = num.split()
s = 0
cnt = 0
for i in range(len(num_1)):
    s += int(num_1[cnt])
    cnt += 1

b = []
cnt = 0
for i in range(len(num_1)):
    b.append(int(num_1[cnt]))
    cnt += 1

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

Submission status: Accepted

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

print(min(data), max(data), sum(data))

Submission status: Accepted

Solution code:
n=int(input())
a=input().split()
b=[]
for i in a:
    b.append(int(i))
max=-1000000
min=1000000
sum=0
for i in b:
    if (i<min):
        min=i
    if (i>max):
        max=i
    sum+=i
print("{0} {1} {2}".format(min,max,sum))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
LEN = int(input())
num = sorted(map(int, input().split()))
print(num[0], num[LEN - 1], sum(num))

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n = int(input())
list = input().split(" ")
min = int(list[0])
max = int(list[0])
total = int(list[0])
for i in range(1, n):
	num = int(list[i])
	if num > max:
		max = num
	if num < min:
		min = num
	total += num
	
print("%s %s %s"%(min, max, total))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

list = [int(n) for n in input().split()]

print(min(list),max(list),sum(list))

Submission status: Accepted

Solution code:
import math
a = int(input())
x = list(map(int,input().split()))

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

Submission status: Accepted

Solution code:
count = input()
num = list(map(int,input().split()))
mmax= max(num)
mmax = int(mmax)
mmin = min(num)
mmin = int(mmin)
msum = sum(num)
msum = int(msum)
print('{0} {1} {2}'.format(mmin,mmax,msum))

Submission status: Accepted

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

Solution code:
def main():
    size = int(input())
    data = [0]*size

    n = input().split()

    for i in range(0,len(n)):
        data[i] = int(n[i])

    max = data[0]

    for i in range(1,len(data)):
       if data[i] <= max:
           max = data[i]

    min = data[0]

    for i in range(1,len(data)):
        if data[i] >= min:
            min = data[i]

    total = 0

    for num in data:
        total += num

    print("{0} {1} {2}".format(max,min,total))

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8
n = input()
array = map(int, raw_input().split())
print min(array),max(array),sum(array)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
n1 = int(input())
a1 = [int(x) for x in input().split()]

b= max(a1)
c= min(a1)
d= sum(a1)
print(c,b,d)

Submission status: Accepted

Solution code:
length = int(input())
arr = input().split()

iniV = int(arr[0])

mi = iniV
mx = iniV
su = 0
for s in arr:
    val = int(s)
    su += val
    if(val < mi):
        mi = val
    if(val > mx):
        mx = val

print(mi, mx, su)

Submission status: Accepted

Solution code:
import sys

l = []
for input in sys.stdin:
    l.append(input.split())
for i in range(0,len(l)):
    for j in range(0,len(l[i])):
        l[i][j] = int(l[i][j])
print min(l[1]),max(l[1]),sum(l[1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
nl = 1
while True:
	try:
		line = input()
		if nl==1:
			nl = nl + 1
		else:
			nums = line.split(' ')
			nums = list(map(int, nums))
			print('{} {} {}'.format(min(nums), max(nums), sum(nums)))
		
	except EOFError:
		break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(raw_input())
x = raw_input()
x = x.split(" ")
x = map(int,x)
print "%d %d %d" %(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:
x = int(input())

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

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

Submission status: Accepted

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

for v in range(n):
    num = int(nums[v])
    if num > ma:
        ma = num
    if num < mi:
        mi = num
    su += num

print(mi, ma, su)

Submission status: Accepted

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

list_min = min(list)
list_max = max(list)
list_sum = sum(list)

print(list_min, list_max, list_sum,sep=' ')

Submission status: Accepted

Solution code:
def min(a):
    tmp = a[0]
    for i in a:
        if i < tmp:
            tmp = i
    return tmp

def max(a):
    tmp = a[0]
    for i in a:
        if i > tmp:
            tmp = i
    return tmp

def sum(a):
    tmp = 0
    for i in a:
        tmp = tmp + i
    return tmp

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input())

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


print(min(buffer),max(buffer), sum(buffer))

Submission status: Accepted

Solution code:

input()
l=list([int(i) for i in input().split()])
print(min(l), max(l), sum(l))

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())
a=list(map(int,input().split()))
sm=0
for i in a :
    sm+=i
print("{} {} {}".format(min(a),max(a),sm))

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:
#coding: utf-8

n = int(input())
l = input().split()

for i,j in enumerate(l):
    l[i] = int(j)

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

Submission status: Accepted

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

for u in c:
    s=s+u

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys

n = int(sys.stdin.readline())
x = list(map(int, sys.stdin.readline().split()))

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

Submission status: Accepted

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

while i < len:
	sum += list[i]
	i += 1

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
n = [int(i) for i in input().split()]
min = max = total = n[0]
for i in range(1, N):
    if max < n[i]: max = n[i]
    if min > n[i]: min = n[i]
    total += n[i]
print('{} {} {}'.format(min, max, total))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input()
l = [int(x) for x in input().split()]
print("%d %d %d" % (min(l), max(l), sum(l)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
n = int(input())
a = list(map(int, input().rstrip().split()))
print(min(a), max(a), sum(a))

Submission status: Accepted

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

min=a[0]
max=a[0]
sum=0

for i in range(n):
    if(min>a[i]):min=a[i]
    if(max<a[i]):max=a[i]
    sum+=a[i]

print(min,max,sum)

Submission status: Accepted

Solution code:
#!/usr/bin/env python

if __name__ == '__main__':
    raw_input()
    a = map(int, raw_input().split())
    print '{} {} {}'.format(min(a), max(a), sum(a))

Submission status: Accepted

Solution code:
n = int(input())
A = list(map(int, input().split(' ')))
A.sort()
m = A[0]
M = A[-1]
tot = 0
for a in A:
    tot += a
print(str(m) + ' ' + str(M) + ' ' + str(int(tot)))

Submission status: Accepted

Solution code:
n=int(input())

l=input().split()

b=min(map(int,l))
a=max(map(int,l))

result=0
while n>=1:
    result=result+int(l[n-1])
    n=n-1

print(str(b)+" "+str(a)+" "+str(result))

Submission status: Accepted

Solution code:

n=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()
a = list(map(int, input().split()))
print(min(a), max(a), sum(a), sep = ' ')

Submission status: Accepted

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

min = a[0]
max = a[n-1]

sum = 0

for item in a:
    sum += item
    
print(min, max, sum)

Submission status: Accepted

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

Submission status: Accepted

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
	if minnum > item:
		minnum = item
		
for item in nums:
	total += item
	
print(str(minnum) + " " + str(maxnum) + " " + str(total))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
list = [int(x) for x in input().split()]
print('{a} {b} {c}'.format(a=min(list), b=max(list), c=sum(list)))

Submission status: Accepted

Solution code:
N = input()
a = map(int,raw_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()))
b = min(a)
c = max(a)
s = sum(a)
print(str(b) + " " + str(c) + " " + str(s))

Submission status: Accepted

Solution code:
n = int(input())
ai = [int(x) for x in input().split()]
min = ai[0]
max = ai[0]
total = 0
for x in ai:
    total += x
    if x < min:
        min = x
    if x > max:
        max = x
print(min, max, total)

Submission status: Accepted

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

Submission status: Accepted

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

Solution code:
n = int(input())
num = [int(i) for i in input().split()]
print("{} {} {}".format(min(num),max(num),sum(num)))

Submission status: Accepted

Solution code:
n = int(input())
s=0
num = [int(i) for i in input().split()]
mx = num[0]
mn = num[0]
for i in range(n):
        s = s+num[i]
        if(mx < num[i]):
            mx = num[i]
        if(mn > num[i]):
            mn = num[i]
print("{} {} {}".format(mn,mx,s))

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:
# -*- coding: utf-8 -*-

s = int(input())
n = list(map(int, input().split()))
n.sort()
print('{0} {1} {2}'.format(n[0], n[s - 1], sum(n)))

Submission status: Accepted

Solution code:
numRange = int(input())
inputNumList = list(map(int, input().split()))

totalNum = 0
for i in range(0, numRange):
    totalNum += inputNumList[i]

print(min(inputNumList), max(inputNumList), totalNum)

Submission status: Accepted

Solution code:
n = int(input())
nums = [int(n) for n in input().split()]

M = max(nums)
m = min(nums)
S = sum(nums)

print("{} {} {}".format(m,M,S))

Submission status: Accepted

Solution code:
num = 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()))
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: Accepted

Solution code:
N = int(input())
num = input()
list = num.split()
max = sum = min = int(list[0])
for x in range(N - 1):
    a = int(list[x + 1])
    if a > max: max = a
    elif a < min: min = a
    sum += a
print(min, max, sum)

Submission status: Accepted

Solution code:
LEN = int(input())
mem = input().split(" ")
for i in range(0, LEN):
    mem[i] = int(mem[i])
print(min(mem),max(mem),sum(mem))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input())
a = list(map(int, input().split()))
mini = 10000001
maxi = -10000001
sumi = 0
for i in range(n):
    if  a[i] < mini:
        mini = a[i]
    if a[i] > maxi:
        maxi = a[i]
    sumi += a[i]
print("{} {} {}".format(mini, maxi, sumi))

Submission status: Accepted

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

Submission status: Accepted

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

Solution code:
#! python3
# min_max_and_sum.py

n = int(input())
a = [int(x) for x in input().split(' ')]

min_val = a[0]
max_val = a[0]
sum_val = a[0]

for i in range(1, n):
    if a[i] < min_val:
        min_val = a[i]
    if a[i] > max_val:
        max_val = a[i]
    sum_val += a[i]

print(min_val, max_val, sum_val)

Submission status: Accepted

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

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

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

s = 0

for i in a:
    s = s + i

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
a = sorted([int(x) for x in input().split()])
print(a[0],a[-1],sum(a))

Submission status: Accepted

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

Submission status: Accepted

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

x.sort()
print(x[0], x[num-1], sum(x))

Submission status: Accepted

Solution code:
n=int(input())
l=list(map(int,input().split()))
Min=1000000
Max=-1000000
Sum=0
for i in range(n):
    if l[i]<Min:
        Min=l[i]
    if l[i]>Max:
        Max=l[i]
    Sum+=l[i]
print(Min,Max,Sum)

Submission status: Accepted

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

def main():
    n = int(input())
    a = numinput()
    print('%d %d %d' % (min(a), max(a), sum(a)))

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
n = int(input())
a = map(int, input().split())
sort = sorted(a)
Min = sort[0]
Max = sort[-1]
Sum = 0
for i in range(len(sort)):
    Sum = Sum + int(sort[i])
print(Min, Max, Sum)

Submission status: Accepted

Solution code:
n = int(input())
a = list(map(int, input().split()))
sort = sorted(a)
Min = sort[0]
Max = sort[-1]
Sum = 0
for i in range(len(sort)):
    Sum = Sum + int(sort[i])
print(Min, Max, Sum)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
count = int(input())
elements = list(map(int, input().split()))
                #for i in range(len(elements)):
                # elements[i] = int(elements[i])
asum = sum(elements)
amax = max(elements)
amin = min(elements)
print(amin, amax, asum)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input())

numbers = list(map(lambda s: int(s), input().split()))

print(f'{min(numbers)} {max(numbers)} {sum(numbers)}')

Submission status: Accepted

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

min_value = arr[0]
max_value = arr[0]
sum = 0
for i in range(n):
	current = arr[i]
	min_value = min(min_value, current)
	max_value = max(max_value, current)
	sum += current

print(str(min_value) + ' ' + str(max_value) + ' ' + str(sum))

Submission status: Accepted

Solution code:
#!/usr/bin/env python
#-*- coding: utf-8 -*-

import sys

if __name__ == '__main__':
    n = int(raw_input())
    l = [int(x) for x in raw_input().split()]
    print min(l), max(l), sum(l)

Submission status: Accepted

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

Submission status: Accepted

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

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("{} {} {}".format(min(A), max(A), sum(A)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

n = int(input())
l = input().split()
num_list = []
for i in l:
    num_list.append(int(i))
num_list.sort()
min_num = num_list[0]
max_num = num_list[-1]
total = 0
for i in num_list:
    total += i

print(min_num, max_num, total)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

print ('%d %d %d' % (min(l), max(l), sum(l)))

Submission status: Accepted

Solution code:
# Min, Max and Sum

amount = int(input())
numbers = [int(i) for i in input().rstrip().split()]

minimum = 1000000
maximum = -1000000
total = 0
for number in numbers:
    if number < minimum:
        minimum = number
    if number > maximum:
        maximum = number
    total += number

print(minimum, maximum, total)

Submission status: Accepted

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

int_a = []
for i in range(n):
    int_a.append(int(a[i]))

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

Submission status: Accepted

Solution code:
n = int(input())
l = list(map(int, input().split()))
l.sort()
sum = 0
for i in range(n):
    sum = sum+int(l[i])
print(l[0],l[-1],sum)

Submission status: Accepted

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

    print(min(lst), max(lst), sum(lst))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = input()
list = input().split()
n = int( n )
i = 0
sum = 0
while i < n:
    list[i] = int( list[i] )
    sum += list[i]
    i += 1
list.sort()
print( list[0], list[i-1], sum )

Submission status: Accepted

Solution code:
import math
def solve(numbers):
    min, max, sum=numbers[0],numbers[0],0
    
    for number in numbers:
        if min > number:
            min = number
        if max < number:
            max = number
        sum+=number
    print('{0} {1} {2}'.format(min,max,sum))
        
    
def answer():
    case = int(input())

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


if __name__ =='__main__':
    answer()

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:
from sys import stdin

count = int(stdin.readline())
ns = [int(n) for n in stdin.readline().split(' ')]
minimum = None
maximum = None
total = 0

for n in ns:
    if minimum == None or minimum > n:
        minimum = n
    if maximum == None or maximum < n:
        maximum = n

    total += n

print(minimum, maximum, total)

Submission status: Accepted

Solution code:
#!/usr/bin/python
# -*- coding: utf-8 -*-

n=int(raw_input())
if n:
    l=[int(x) for x in raw_input().split()]
    print min(l),max(l),sum(l)
else:
    print "0 0 0"

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
a = list(map(int, input().split()))
MAX = -10 ** 18
MIN = 10 ** 18
SUM = 0
for x in a:
    MAX = max(MAX, x)
    MIN = min(MIN, x)
    SUM += x
print(MIN, MAX, SUM)

Submission status: Accepted

Solution code:
def main():
    N = int(input())

    pair_str = input().split()
    pair_int = [int(s) for s in pair_str]

    min_value = min(pair_int)
    max_value = max(pair_int)
    sum = 0
    for value in pair_int:
        sum = sum+ value

    print("{} {} {}".format(min_value, max_value, sum))

main()

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:
a = 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:
# coding: utf-8
# Your code here!
a =input()
b = list(map(int,input().split()))
print(min(b),max(b),sum(b))

Submission status: Accepted

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

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

print(a,b,c)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=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:
from sys import stdin
input = stdin.readline
N = int(input())
a = list(map(int,input().split()))
print(str(min(a))+' '+str(max(a))+' '+str(sum(a)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=map(int,input())
a=input()
an=a.split()
ani= [int(s) for s in an]
print("{0} {1} {2}".format(min(ani),max(ani),sum(ani)))

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 = 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=sorted([int(n) for n in input().split()])
print(min(a),max(a),sum(a))

Submission status: Accepted

Solution code:
n=int(input())

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

dmin=min(data)
dmax=max(data)
dsum=sum(data)

print(dmin,dmax,dsum)

Submission status: Accepted

Solution code:
x = 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:
def keisan():
    n = int(input())
    data = [int(i) for i in input().split()]
    min_data = min(data)
    max_data = max(data)
    sum_data = sum(data)
    print(min_data, max_data, sum_data)


keisan()

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 = [int(i) for i in input().split()]
a.sort()
print(a[0],a[-1],sum(a))

Submission status: Accepted

Solution code:
n=int(input())

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

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

print(b,c,d)

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())
x=list(map(int,input().split()))
m=min(x)
M=max(x)
s=sum(x)
print(m,M,s)

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())
data = list(map(int,input().split()))
print(min(data),max(data),sum(data))

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:
x = int(input())
data = list(map(int, input().split()))
data.sort()
print(data[0],data[-1],sum(data))

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(map(int, input().split()))
M = str(max(a))
m = str(min(a))
S = str(sum(a))
print(m+" "+M+" "+S)

Submission status: Accepted

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

print(min(li),max(li),sum(li))

Submission status: Accepted

Solution code:
n=int(input())
an=list(map(int,input().split()))
answer_sum=sum(an)
max_syo=an[0]
for i in an:
    if i<max_syo:
        max_syo=i
max_dai=an[0]
for l in an:
    if l>max_dai:
        max_dai=l
print(max_syo,max_dai,answer_sum)

Submission status: Accepted

Solution code:
n = input()
array1 = input().split(" ")
array2 = [int(n) for n in array1]

print('{0} {1} {2}'.format(min(array2),max(array2),sum(array2)))

Submission status: Accepted

Solution code:
n = int(input())
num_str = input().split()
nums = [int(i) for i in num_str]
print("{0} {1} {2}".format(min(nums), max(nums), sum(nums)))

Submission status: Accepted

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

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

Submission status: Accepted

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

m=a[0]
M=a[-1]
S=0
for ai in a:
    S+=ai

print(m,M,S)