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:
# your code goes here
l=[]
n=int(input())
min=10000000
max=-1000000
sum=0
l=list(map(int,input().split()))
for i in range(n):
 sum+=l[i]
 if(min>l[i]):
  min=l[i]
 if(max<l[i]):
  max=l[i]
print(min,max,sum)

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:
num = int(input() )
sum = 0
min = 1000000
max = -1000000
li = list(map(int, input().split() ))
for i in range(num):
  tmp = li[i]
  sum += tmp
  if tmp > max:
    max = tmp
  if tmp < min:
    min = tmp
print(min, max, sum)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
count = int(input())
number = input()
number_list = number.split(" ")
max = int(number_list[0])
min = max
sum = 0
for cur in number_list:
    int_cur = int(cur)
    if int_cur > max:
        max = int_cur
    if int_cur < min:
        min = int_cur
    sum += int_cur
print(str(min) + " " + str(max) + " " + str(sum))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#import math
w = input()
n = int(w)

w = input().split()
dat =[]
for num in w:
    dat.append(int(num))
    
min1 = min(dat)
max1 = max(dat)

sum1 = 0
for num in dat:
    sum1 = sum1+num

print(min1,end=" ")
print(max1,end=" ")
print(sum1)

Submission status: Accepted

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

min_ai=min(ai)
max_ai=max(ai)
sum_ai=sum(ai)

print(str(min_ai)+" "+str(max_ai)+" "+str(sum_ai))

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:
n = int(input())
a = input().split()
ammount = 0
mini = int(a[0])
maxi = int(a[0])
for i in range(n):
	ammount += int(a[i])
	if mini > int(a[i]):
		mini = int(a[i])
	if maxi < int(a[i]):
		maxi = int(a[i])
print(mini, maxi, ammount)

Submission status: Accepted

Solution code:
num = int(input())
maxi = -1000001
mini = 1000001
total = 0
curr = 0
z = input()
for item in z.split():
    curr = int(item)
    if curr > maxi:
        maxi = curr
    if curr < mini:
        mini = curr
    total += curr
print (str(mini) + " " + str(maxi) + " " + str(total))

Submission status: Accepted

Solution code:
try:
    n  =  int(input())
except:
    exit

    
try:
    l =  input().split()
except:
    exit

l_n = [int(i) for i in l]

print (min(l_n),max(l_n),sum(l_n))

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
count = int(input())
num_line = list(map(int, input().split()))
num_line.sort()
sum_num = 0
for i in num_line:
    sum_num += i
print("{0} {1} {2}".format(num_line[0], num_line[-1], sum_num))

Submission status: Accepted

Solution code:
import sys
a=sys.stdin.readline()
numbers = list(map(int, sys.stdin.readline().split()))
print(min(numbers), max(numbers), sum(numbers))

Submission status: Accepted

Solution code:
n = int(input())
numbers = input().split()
min_n = int(numbers[0])
max_n = int(numbers[0])
sum_n = int(numbers[0])
for i in range(1,n):
    sum_n = sum_n + int(numbers[i])
    if min_n > int(numbers[i]):
        min_n = int(numbers[i])
    if max_n < int(numbers[i]):
        max_n = int(numbers[i])
print("{0} {1} {2}".format(min_n, max_n, sum_n))

Submission status: Accepted

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

Submission status: Accepted

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

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

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

maximum = -1000000
minimum = 1000000
total = 0

for i in table:
        if maximum < i:
                maximum = i

        if minimum > i:
                minimum = i

        total += i

print (minimum, maximum, total)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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())
lst = list(map(int, input().split()))
print('{} {} {}'.format(min(lst), max(lst), sum(lst)))

Submission status: Accepted

Solution code:
import sys
n=int(input())
a=list(map(int,input().split()))
max=-sys.maxsize-1
min=sys.maxsize
sum=0
for i in range(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: Accepted

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

Submission status: Accepted

Solution code:
num = int(input())
nList = map(int,input().split())
sList = sorted(nList)
min = sList[0]
max = sList[num - 1]
total = 0
for entry in sList:
    total += entry
print("{} {} {}".format(min, max, total))

Submission status: Accepted

Solution code:
n = int(input())
input_array = input().split()
sum = min = max = int(input_array[0])
for i in range(1, n):
    temp = int(input_array[i])
    if (min > temp):
        min = temp
    if (max < temp):
        max = temp
    sum += temp
print(min, end = ' ')
print(max, end = ' ')
print(sum)

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(len(a)):
    a[i]=int(a[i])

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

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:
# coding:utf-8
n=int(input())
L=list(map(int,input().split()))
mx=-10000000
mn=10000000
sum=0
for i in L:
    mx=max(mx,i)
    mn=min(mn,i)
    sum=sum+i
print(mn,mx,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:
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()))
print(min(a), max(a), sum(a))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num_of_values = int(input())
input_values = input().split()
int_array = []
for i in input_values:
    int_array.append(int(i))
print("{0} {1} {2}".format(min(int_array), max(int_array), sum(int_array)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = 0
s = []
while n < 2:
    s.append(input())
    n += 1

new_list = []


for number in s[1].split():
    new_list.append(int(number))

maximum = max(new_list)
minimum = min(new_list)
summation = sum(new_list)
print(minimum, maximum, summation)

Submission status: Accepted

Solution code:
n = int(raw_input())
A = map(int, raw_input().split())
print "%d %d %d" % (min(A), max(A), sum(A))

Submission status: Accepted

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

if a == len(nums):
    print(min(nums), max(nums), sum(nums))
else:
    print("error")

Submission status: Accepted

Solution code:
n = int(input())
sss = input().split(' ')
ma = -9999999999
mi = 9999999999
s = 0
for i in sss:
	num = int(i)
	if ma < num: ma = num
	if mi > num: mi = num
	s += num
print('{0} {1} {2}'.format(mi, ma, s))

Submission status: Accepted

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

import math

def main():

	n = input()
	l = map(int,raw_input().split())
	minimum = l[0]
	maximum = l[0]
	summation = 0
	for i in l:
		if i < minimum:
			minimum = i
		if i > maximum:
			maximum = i
		summation += i
	print('%d %d %d' % (minimum,maximum,summation))

if __name__ == "__main__":

	main()

Submission status: Accepted

Solution code:
num = int(input())
sum = 0
data = []
data = input().split()
for x in range(0,num):
    data[x] = int(data[x])
    sum = sum + data[x]
data.sort()
print(data[0],data[num-1],sum)

Submission status: Runtime Error

Solution code:
n = input()
n = int(n)
seq = input().split()
sumNum = 0
minNum = 1000000
maxNum = 0
for numT in sew:
 num = int(numT)
 if(num > maxNum):
  maxNum = num
 elif(num < minNum):
  minNum = num
 sumNum+=num
print(minNum,maxNum,sumNum)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
min = 1000000; max = -1000000; sum = 0;

for i in range(n):
    x = int(input())
    sum += x
    if min > x:
        min = x
    if max < x:
        max = x
print('{0} {1} {2}'.format(min,max,sum))

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <string>
#include <fstream>
#include <cmath>
#include <iomanip>
#include <ctime>
#include <cstdlib>


using namespace std;

int main() {
    
    int n;
    cin >> n;
    int a;
    cin >> a;
    int max_n, min_n, sum;
    max_n = a;
    min_n = a;
    sum = 0;
    sum += a;
    for (int i = 1; i < n; i++) {
        cin >> a;
        sum += a;
        if (max_n < a) {
            max_n = a;
        }
        if (min_n > a) {
            min_n = a;
        }
    }
    cout << min_n << " " << max_n << " " << sum << endl;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
max = 0
min = 100000000
ave = 0
x = int(input())
for i in range(0, x):
    a = int(input())
    if(max < a):
        max = a
    if(min > a):
        min = a
    avg += a
print("%d %d %d"%(min, max, ave//x))

Submission status: Runtime Error

Solution code:
i = 0
max = 0
min = 100000000
ave = 0
x = int(input())
for i in range(0, x):
    a = int(input())
    if(max < a):
        max = a
    if(min > a):
        min = a
    avg += a
print("%d %d %d"%(min, max, ave//x))

Submission status: Runtime Error

Solution code:
x = input())
a = ilist(map(int, input().split())
print("%d %d %d"%(min(a), max(a), sum(a)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

box = []
n = int(input())

for i in range(1,n-1):
    s = int(input())
    s.append(box)

print("{0} {1} {2}"format(min(box), max(box), sum(box))

Submission status: Runtime Error

Solution code:
box = []
n = int(input())
i = 1

for i in range(1,n-1):
    s = int(input())
    s.append(box)
 
print("{0} {1} {2}"format(min(box), max(box), sum(box))

Submission status: Runtime Error

Solution code:
box = list()
n = int(input())
 
for i in range(1,n-1):
    s = int(input())
    s.append(box)
 
print("{0} {1} {2}"format(min(box), max(box), sum(box))

Submission status: Runtime Error

Solution code:
box = list()
n = int(input())
i = 1

for i in range(1,n-1):
    s = int(input())
    box.append(s)
 
print("{0} {1} {2}"format(min(box), max(box), sum(box))

Submission status: Runtime Error

Solution code:
box = list()
n = int(input())
i = 0
num = 0
for i in range(1,n+1):
    num = int(input())
    box.append(num)
print("{0} {1} {2}".format(min(box), max(box), sum(box)))

Submission status: Runtime Error

Solution code:
box = list()
n = int(input())
i = 0
s = 0
for i in range(1,n+1):
    s = int(input())
    box.append(s)
print("{0} {1} {2}".format(min(box), max(box), sum(box)))

Submission status: Runtime Error

Solution code:
box = list()
n = int(input())
i = 0
s = 0
for i in range(1,n+1):
    s = int(input())
    box.append(s)
    print(end ="")
print("{0} {1} {2}".format(min(box), max(box), sum(box)))

Submission status: Runtime Error

Solution code:
box = list()
n = int(input())
i = 0
s = 0
for i in range(1,n+1):
    s = int(input().strip())
    box.append(s)
print("{0} {1} {2}".format(min(box), max(box), sum(box)))

Submission status: Runtime Error

Solution code:
n = int(input())
lis = map(int, input()split(" "))
big_num = 1000000
max_num, min_num, sum = -1*big_num, big_num, 0
for i in lis:
    if i > max_num:
        max_num = i
    if i < min_num:
        min_num = i
    sum += i
print("%d %d %d" % (min_num, max_num, sum))

Submission status: Runtime Error

Solution code:
n = int(input())
lis = list(map(int, input()split(" ")))
big_num = 1000000
max_num, min_num, sum = -1*big_num, big_num, 0
for i in lis:
    if i > max_num:
        max_num = i
    if i < min_num:
        min_num = i
    sum += i
print("%d %d %d" % (min_num, max_num, sum))

Submission status: Runtime Error

Solution code:
a=int(input())
max=0
min=10000
sum=0
for i in range(0,a):
    b=int(input())
    if(max<=b):
        max=b
    if(min>=b):
        min=b
    sum+=b;
print("{min} {max} {sum}")

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# coding: utf-8
# Your code here!
n=int(input())
sum=0
min=1000001
max=-1000001
for i in range(n)
    num=int(input())
    sum+=i
    if max<i:
        max=i
    if min>i:
        min=i

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

Submission status: Runtime Error

Solution code:
# coding: utf-8
# Your code here!
n=int(input())
sum=0
min=1000001
max=-1000001
for i in range(n):
    num=int(input())
    sum+=i
    if max<i:
        max=i
    if min>i:
        min=i

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

Submission status: Runtime Error

Solution code:
array = map(int,input().split())
del array[0]
print(min(array), max(array), sum(array))

Submission status: Runtime Error

Solution code:
a, b = input().split("\n")
array = map(int,b.split())
del array[0]
print(min(array), max(array), sum(array))

Submission status: Runtime Error

Solution code:
a, b = input().split("\n")
array = list(map(int,b.split()))
del array[0]
print(min(array), max(array), sum(array))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input().split("\n")
array =  list(map(int, a[1].split()))
print(min(array), max(array), sum(array))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(min(table), average(table), max(table))

Submission status: Runtime Error

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

print(min(table), max(table), sum(table))

Submission status: Runtime Error

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

data_max = max(table)
data_min = min(table)
data_sum = sum(table)

print(data_min, data_max, data_sum)

Submission status: Runtime Error

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


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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
Num = int(input())
Indata = [0] * num;
Indata = [int(i) for i in input().split()]
MinVal = min(Indata)
MaxVal = max(Indata)
SumVal = sum(Indata)

print(Minval, MaxVal, SumVal)

Submission status: Runtime Error

Solution code:
Num = int(input())
Indata = [0] * num;
Indata = [int(i) for i in input().split()]
MinVal = min(Indata)
MaxVal = max(Indata)
SumVal = sum(Indata)

print(MinVal, MaxVal, SumVal)

Submission status: Runtime Error

Solution code:
Num = int(input())
Indata = [0] * num
Indata = [int(i) for i in input().split()]
MinVal = min(Indata)
MaxVal = max(Indata)
SumVal = sum(Indata)

print(MinVal, MaxVal, SumVal)

Submission status: Runtime Error

Solution code:
date1,date2 = list(map(int, input().split()))
a = min(date1)   # 2
b = max(date1)   # 50
c = sum(date1)   # 256
print(f'{a}')
print(f'{b}')
print(f'{c}')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

 l = list(map(int, input().split()))
 Max = l[0]
 Min = l[0]
 for i in range(0,n):
 	
 	if l[i] > Max: l[i],Max = Max,l[i]
 	if l[i] < Min: l[i],Min = Min,l[i]
 	
 	sum = 0
 	sum += l[i]  
 	
 	print(f"{Min} {Max} {sum}")

Submission status: Runtime Error

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

 l = list(map(int, input().split()))
 Max = l[0]
 Min = l[0]
 for i in range(0,n):
 	
 	if l[i] > Max: l[i],Max = Max,l[i]
 	if l[i] < Min: l[i],Min = Min,l[i]
 	
 	sum = 0
 	sum += l[i]  
 	
print(f"{Min} {Max} {sum}")

Submission status: Runtime Error

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

data.sort()

min = data[0]
max = data[-1]
avg = 0

for tmp in data:
	avg += tmp

print(min,max,avg)

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

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

sum = 0
for i in range(n)
    sum += list[i]

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

Submission status: Runtime Error

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

sum = 0
for i in range(n)
    sum += list[i]

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

Submission status: Runtime Error

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

sum = 0
for i in range(n)
    sum += list[i]

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

Submission status: Runtime Error

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

sum = 0
for i in range(n):
    sum += list[i]

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

Submission status: Runtime Error

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

sum = 0
for i in range(n):
    sum += list[i]

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

Submission status: Runtime Error

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

sum = 0
for i in range(n):
    sum += list[i]

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

Submission status: Runtime Error

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

sum = 0
for i in range(n):
    sum += l[i]

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

Submission status: Runtime Error

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

sum = 0
for i in range(n):
    sum += l[i]

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

Submission status: Runtime Error

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

sum = 0
for i in range(n):
    sum += l[i]

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

Submission status: Runtime Error

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

sum = 0
for i in range(n):
    sum += l[i]

print(sum(l))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import numpy
nums1 = []
for i in range(2):
    nums = [int(e) for e in input().split()]
    nums1.append(nums)

max = numpy.max(nums1[1])
min = numpy.min(nums1[1])
sum = numpy.sum(nums1[1])

print(max, min, sum)

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
using namespace std;
typedef long long unsigned int ll;

#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int main() {
  int n,m;
  cin >> n;
  long minimum = 10000000
  long maximum = -10000000
  long s = 0
  int a[10010];
  for(int i = 0; i < n; i++){
    cin >> a[i];
  }
  for(int i = 0; i < n;i++){
    minimum = min(m,a[i]);
    maximum = max(m,a[i])
    s += a[i]
  }

  cout << minimum << " " << maximum << " " << s << endl;
  return 0;
}

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
num = int(input())
lis = list(map(int,input().split()))
sum = 0
min = list[0]
max = list[0]
for i in range(num):
    if(min > list[i]):min = list[i]
    if(max < list[i]):max = list[i]
    sum = sum+list[i]
    
print("%d %d %d" %(min,max,sum))

Submission status: Runtime Error

Solution code:
n = int(input())
# min, max, sum は関数名なので
# 別名を使うとよい
min0 = 100000
max0 = -100000
sum0 = 0
for i in range(n):
  x = int(input())
  min0 = min(min0, x)
  max0 = max(max0, x)
 sum0 += x
 
print(min0, max0, sum0)

Submission status: Runtime Error

Solution code:
n = int(input())
# min, max, sum は関数名なので
# 別名を使うとよい
min0 = 100000
max0 = -100000
sum0 = 0
for i in range(n):
  x = int(input())
  min0 = min(min0, x)
  max0 = max(max0, x)
  sum0 += x
 
print(min0, max0, sum0)

Submission status: Runtime Error

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

print(min(ns), max(ns), sum(ns)

Submission status: Runtime Error

Solution code:
input()

input()
  
data = [int(x) for x in input().split()]
print(min(data), max(data), sum(data))

Submission status: Runtime Error

Solution code:
sum = 0
max = -10000000
min = 10000000

input()

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

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

Submission status: Runtime Error

Solution code:
input()

data = [int(x) for x in input().input()]

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

Submission status: Runtime Error

Solution code:
while True:
    n = int(raw_input())
    try:
        ls = map(int,raw_input().split())
        mi = min(ls)
        ma = max(ls)
        su = sum(ls)
        print "%d %d %d" %(mi,ma,su)
        
    except EOFError:
        break

Submission status: Runtime Error

Solution code:
while True:
    n = int(raw_input())
    ls = []
    try:
        ls = map(int,raw_input().split())
        mi = min(ls)
        ma = max(ls)
        su = sum(ls)
        print "%d %d %d" %(mi,ma,su)
        
    except EOFError:
        break

Submission status: Runtime Error

Solution code:
    n = int(raw_input())
    ls = []
    try:
        ls = map(int,raw_input().split())
        mi = min(ls)
        ma = max(ls)
        su = sum(ls)
        print "%d %d %d" % (mi,ma,su)

Submission status: Runtime Error

Solution code:
        n = int(raw_input())

        ls = map(int,raw_input().split())
        mi = min(ls)
        ma = max(ls)
        su = sum(ls)
        print "%d %d %d" % (mi,ma,su)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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