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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
i = input()
a = input().split()
c = 10000
d = 0
for j in range(int(i)):
    if int(c) > int(a[j]):
        c = int(a[j])

                
for j in range(int(i)):
    if int(d) < int(a[j]):
        d = int(a[j])

e = sum(int(o) for o in a)

print('{0} {1} {2}'.format(int(c),int(d),int(e)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num = int(input())

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

count = 0
max = 0
sum = 0

for i in array:
    if count == 0:
        min = i
        count += 1
    sum = sum + i
    if i < min:
        min = i
    if max < i:
        max = i

print(min, max, sum)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
for i in range(n):
    print(a[i], end=' ')

Submission status: Wrong Answer

Solution code:
n = int(input())

s = input().split()
max = s[0]
min = s[0]
for i in range(n):
    if max < s[i]:
        max = s[i]
    if min > s[i]:
        min = s[i]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
l = input().split()
mini = min(l)
maxi = max(l)
sums = 0

for i in range(0,n):
    sums = sums + int(l[i])
    
print(f"{mini} {maxi} {sums}")

Submission status: Wrong Answer

Solution code:
for i, t in enumerate(input()):
    if i == 0:
        pass
    else:
        x = [int(v) for v in t.split()]
        print(min(x), max(x), sum(x))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

nums1 = []
sum = 0
for i in range(2):
    nums = [int(e) for e in input().split()]
    nums1.append(nums)

for i in range(len(nums1[1])):
    for j in range(i):
        if nums1[1][i]<nums1[1][j]:
            max = nums[j]

for i in range(len(nums1[1])):
    for j in range(i):
        if nums1[1][i]>nums1[1][j]:
            min = nums[j]

for i in range(len(nums1[1])):
    sum = sum + nums1[1][i]
    
print(max, min, sum)

Submission status: Wrong Answer

Solution code:

nums1 = []
sum = 0
for i in range(2):
    nums = [int(e) for e in input().split()]
    nums1.append(nums)

for i in range(len(nums1[1])):
    for j in range(i):
        if nums1[1][i]<nums1[1][j]:
            max = nums[j]

for i in range(len(nums1[1])):
    for j in range(i):
        if nums1[1][i]>nums1[1][j]:
            min = nums[j]

for i in range(len(nums1[1])):
    sum = sum + nums1[1][i]
    
print(min, max, sum)

Submission status: Wrong Answer

Solution code:

nums1 = []
sum = 0
for i in range(2):
    nums = [int(e) for e in input().split()]
    nums1.append(nums)

for i in range(len(nums1[1])):
    for j in range(i):
        if nums1[1][i]<nums1[1][j]:
            max = nums1[1][j]

for i in range(len(nums1[1])):
    for j in range(i):
        if nums1[1][i]>nums1[1][j]:
            min = nums1[1][j]

for i in range(len(nums1[1])):
    sum = sum + nums1[1][i]
    
print(min, max, sum)

Submission status: Wrong Answer

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



print(*ns[::-1])   # *はリストを引数に展開 print(ns[0], ns[1], ...)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

#min,max,sumは関数名なので
#は別名を使うとよい
min0 = 1000000
max0 = -10000000
sum0 = 0
for x in ns:
    min0 = min(min0, x)
    max0 = max(max0, x)
    sum0 += x
    
    print(min0,max0,sum0)

Submission status: Wrong Answer

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

#min,max,sumは関数名なので
#は別名を使うとよい
min0 = 1000000
max0 = -10000000
sum0 = 0
for x in ns:
    min0 = min(min0, x)
    max0 = max(max0, x)
    sum0 += x
    
    print(min0, max0, sum0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
a = map(int, raw_input().split())
sm = 0
h = len(a) / 2
index = 0

while h > 0:
	for x in xrange(0,len(a)):
		y = x
		while h + y <= len(a) - 1:
			if a[x] > a[h+x]:
				temp = a[x]
				a[x] = a[x+h]
				a[x+h] = temp
			y = y + h
	if h == 1:
		h = 0
	elif h / 2 != 0:
		h = h / 2
	else:
		h = 1

for x in xrange(0,len(a)):
	sm = sm + a[x]

print a[0], a[len(a)-1], sm

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(raw_input())

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

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

Submission status: Wrong Answer

Solution code:
input()

sum = 0
min = 9999
max = 0

for x in [int(y) for y in input().split()]:
   sum += x

   if min > x:
    min = x

   if max < x:
    max = x

print(sum, min, max)

Submission status: Wrong Answer

Solution code:
input()

sum = 0
min = 99999
max = 0

for x in [int(y) for y in input().split()]:
      sum += x
      if min > x:
          min = x

      if max < x:
          max = x

print(sum, min, max)

Submission status: Wrong Answer

Solution code:
input()

sum = 0
min = 9999
max = 0

for x in [int(y) for y in input().split()]:
   sum += x

   if min > x:
    min = x

   if max < x:
    max = x

print(min, max, sum)

Submission status: Wrong Answer

Solution code:
input()

sum = 0
min = 99999
max = 0

for x in [int(y) for y in input().split()]:
      sum += x
      if min > x:
          min = x

      if max < x:
          max = x

print(min, max, sum)

Submission status: Wrong Answer

Solution code:
input()

sum = 0
min = 99999
max = 0

for x in [int(y) for y in input().split()]:
   sum += x

   if min > x:
    min = x

   if max < x:
    max = x

print(min, max, sum)

Submission status: Wrong Answer

Solution code:
input()

sum = 0
min = 99999
max = 0

for x in [int(y) for y in input().rstrip().split()]:
   sum += x

   if min > x:
    min = x

   if max < x:
    max = x

print(min, max, sum)

Submission status: Wrong Answer

Solution code:
input()

sum = 0
min = 99999
max = 0

for x in [int(y) for y in input().split()]:
    sum += x
    if min > x:
        min = x
    if max < x:
        max = x

print(min, max, sum)

Submission status: Wrong Answer

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

input()

for i in [int(x) for x in input().split()]:
    print(i)

Submission status: Wrong Answer

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

input()

for i in [int(x) for x in input().split()]:
    sum += i
    if i > max:
        max = i

    if i > min:
        min = i

print(min,max,sum)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#coding:utf-8
#1_4_D 2015.3.29
n = input()
data = list(map(int,input().split()))
print((min(data),max(data),sum(data)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():

    n = int(input())
    numbers = list(map(int, input().split()))
    ans1 = max(numbers)
    ans2 = min(numbers)
    ans3 = sum(numbers)
    print(ans1, ans2, ans3)






if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:
def min(a,i):
  for t in range(0, i):
    if a[0] > a[t]:
      a[0] = a[t]
  return a[0]

def max(a,i):
  for t in range(0, i):
    if a[0] < a[t]:
      a[0] = a[t]
  return a[0]

def sum(a,i):
  for t in range(1, i):
    a[0] += a[t]
  return a[0]

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))

Submission status: Wrong Answer

Solution code:
def min(a,i):
  for t in range(0, i):
    if a[0] > a[t]:
      a[0] = a[t]
  return a[0]

def max(a,i):
  for t in range(0, i):
    if a[0] < a[t]:
      a[0] = a[t]
  return a[0]

def sum(a,i):
  for t in range(0, i):
    s = 0
    s += a[t]
  return s

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))

Submission status: Wrong Answer

Solution code:
def min(a,i):
  for t in range(0, i):
    x = a[0]
    if x > a[t]:
      x = a[t]
  return x

def max(a,i):
  for t in range(0, i):
    y = a[0]
    if y < a[t]:
      y = a[t]
  return y

def sum(a,i):
  for t in range(0, i):
    s = 0
    s += a[t]
  return s

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))

Submission status: Wrong Answer

Solution code:
def min(a,i):
  for t in range(0, i):
    x = a[0]
    if x > a[t]:
      x = a[t]
  return x

def max(a,i):
  for t in range(0, i):
    y = a[0]
    if y < a[t]:
      y = a[t]
  return y

def sum(a,i):
  s = 0
  for t in range(0, i):
    s += a[t]
  return s

i = int(raw_input())
a = map(int, raw_input().split())
print "%d %d %d" % (min(a,i), max(a,i), sum(a,i))

Submission status: Wrong Answer

Solution code:
import warnings


number = input()

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

num_max = 0

num_min = 9999999999999

data_sum = 0

#print len(array)

for i in range(len(array)):
	
	data_sum = data_sum + array[i]

	if array[i] < num_min: 
		num_min = array[i]
	
	if array[i] > num_max:
		num_max = array[i]

print num_min, num_max, data_sum

Submission status: Wrong Answer

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

maximium = max(nums)
minimium = min(nums)
sums = sum(nums)

print(maximium, minimium, sums)

Submission status: Wrong Answer

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

    maximum = max(nums)
    minimum = min(nums)
    sums = sum(nums)

    print(maximum, minimum, sums)
    break

Submission status: Wrong Answer

Solution code:
n = int(raw_input())
a = map(int, raw_input().split(" "))

min = 10000
max = 0
sum = 0
for x in a:
  if x < min:
    min = x
  if x > max:
    max = x
  sum += x

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

Submission status: Wrong Answer

Solution code:
n = input()
a = map(int, raw_input().split())
if len(a) != a:
    print "error"
else:
    print "%d %d %d" % (min(a), max(a), sum(a))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = input()
l = map(int, raw_input().split())
max = l[0]
min = l[0]
s = l[0]
for i in range(len(l)):
    if max < l[i]:
        max = l[i]
    if min > l[i]:
        min = l[i]
    s = s + l[i]
print min, max, s

Submission status: Wrong Answer

Solution code:
n = input()
l = map(int, raw_input().split())
max = l[0]
min = l[0]
s = l[0]
for i in range(len(l)):
 if max < l[i]:
  max = l[i]
 if min > l[i]:
  min = l[i]
 s += l[i]
print min, max, s

Submission status: Wrong Answer

Solution code:
n = input()
l = map(int, raw_input().split())
max = l[0]
min = l[0]
s = l[0]
for i in range(n):
 if max < l[i]:
  max = l[i]
 if min > l[i]:
  min = l[i]
 s += l[i]
print min, max, s

Submission status: Wrong Answer

Solution code:
n = input()
l = map(int, raw_input().split())
max = l[0]
min = l[0]
s = l[0]
for i in range(n):
 if max < l[i]:
  max = l[i]
 if min > l[i]:
  min = l[i]
 s += s + l[i]
print min, max, s

Submission status: Wrong Answer

Solution code:
n = input()
l = map(int, raw_input().split())
max = l[0]
min = l[0]
s = 0
for i in range(n):
 if max < l[i]:
  max = l[i]
 if min > l[i]:
  min = l[i]
 s += s + l[i]
print min, max, s

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num = map(int, raw_input().split())
print max(num),min(num),(sum(num)/len(num))

Submission status: Wrong Answer

Solution code:
while True:
    num = map(int, raw_input().split())
    if len(num) != 1:
        print max(num),min(num),sum(num),
        break

Submission status: Wrong Answer

Solution code:
while True:
    num = map(int, raw_input().split())
    if len(num) != 1:
        print max(num),min(num),sum(num)
        break

Submission status: Wrong Answer

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

def calc(list):
    """
    return (min,max,sum)

    >>> calc([10, 1, 5, 4, 17])
    (1, 17, 37)

    """

    return (min(list),max(list),sum(list))


if __name__ == '__main__':
    n = int(raw_input())
    list = map(int,raw_input().split())

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

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

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

Submission status: Wrong Answer

Solution code:
k=raw_input().split()
k.sort()
for i in range(len(k)):
        k[i]=int(k[i])
        k.sort()
print min(k),
print max(k),
print sum(k)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# 09-Computation-Min_Max_and_Sum.py

# ????°????????????§??????????¨????
# n ????????´??° ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????

# Input
# ??????????????´??°?????° n ???????????????????????????????????? n ????????´??° ai ????????????????????§?????????????????????
# Output
# ????°????????????§??????????¨????????????????????????§????????????????????????????????????

# Constraints
# 0<n???10000
# ???1000000???ai???1000000
# Sample Input
# 5
# 10 1 5 4 17
# Sample Output
# 1 17 37

num = int(input())
num_min = 1000001
num_max = -1000001
num_sum = 0

# a = []
# a=[ *map(int,input().split() ) ]

# for i in range(num):
# 	if a[i]<num_min:
# 		num_min = a[i]

# 	if a[i]>num_max:
# 		num_max = a[i]

# 	num_sum+=a[i]

# print("{0} {1} {2}".format(num_min,num_max,num_sum) );

Submission status: Wrong Answer

Solution code:
# 09-Computation-Min_Max_and_Sum.py

# ????°????????????§??????????¨????
# n ????????´??° ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????

# Input
# ??????????????´??°?????° n ???????????????????????????????????? n ????????´??° ai ????????????????????§?????????????????????
# Output
# ????°????????????§??????????¨????????????????????????§????????????????????????????????????

# Constraints
# 0<n???10000
# ???1000000???ai???1000000
# Sample Input
# 5
# 10 1 5 4 17
# Sample Output
# 1 17 37

num = int(input())
num_min = 100001
num_max = -100001
num_sum = 0

# a = []
# a = [ *map(int,input().split() ) ]
a = input().split()
print(a)
for i in range(num):
	a[i]=int(a[i])

for i in range(num):
	if a[i]<num_min:
		num_min = a[i]

	if a[i]>num_max:
		num_max = a[i]

	num_sum+=a[i]

print("{0} {1} {2}".format(num_min,num_max,num_sum) );

Submission status: Wrong Answer

Solution code:
# 09-Computation-Min_Max_and_Sum.py

# ????°????????????§??????????¨????
# n ????????´??° ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????

# Input
# ??????????????´??°?????° n ???????????????????????????????????? n ????????´??° ai ????????????????????§?????????????????????
# Output
# ????°????????????§??????????¨????????????????????????§????????????????????????????????????

# Constraints
# 0<n???10000
# ???1000000???ai???1000000
# Sample Input
# 5
# 10 1 5 4 17
# Sample Output
# 1 17 37

num_min = 100001
num_max = -100001
num_sum = 0
num = int(input())

# a = []
# a = [ *map(int,input().split() ) ]
a = input().split()
print(a)
for i in range(num):
	a[i]=int(a[i])

for i in range(num):
	if a[i]<num_min:
		num_min = a[i]

	if a[i]>num_max:
		num_max = a[i]

	num_sum+=a[i]

print("{0} {1} {2}".format(num_min,num_max,num_sum) );

Submission status: Wrong Answer

Solution code:
# 09-Computation-Min_Max_and_Sum.py

# ????°????????????§??????????¨????
# n ????????´??° ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????

# Input
# ??????????????´??°?????° n ???????????????????????????????????? n ????????´??° ai ????????????????????§?????????????????????
# Output
# ????°????????????§??????????¨????????????????????????§????????????????????????????????????

# Constraints
# 0<n???10000
# ???1000000???ai???1000000
# Sample Input
# 5
# 10 1 5 4 17
# Sample Output
# 1 17 37

num_min = 100001
num_max = -100001
num_sum = 0
num = int(input())

# a = []
# a = [ *map(int,input().split() ) ]
a = input().split()

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

for i in range(num):
	if a[i]<num_min:
		num_min = a[i]

	if a[i]>num_max:
		num_max = a[i]

	num_sum+=a[i]

print("{0} {1} {2}".format(num_min,num_max,num_sum) );

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
n = map(long, raw_input().split())
max = max(n)
min = min(n)
sum = sum(n)
print "%s %s %s" %(max,min,sum)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = input()
lis = map(int, raw_input().split())
min = 100000
max = - min
sum = 0
for t in lis:
	sum += t
	if min > t:
		min = t
	if max < t:
		max = t

print min, max, sum

Submission status: Wrong Answer

Solution code:
ansa=input().split()
ansb=input().split()

hit = sum((1 for a, b in zip(ansa, ansb) if a == b))
blow = sum((1 for a in ansa if a in ansb))

print(hit, blow-hit)

Submission status: Wrong Answer

Solution code:
while True:
    ansa = input()
    ansb = input()

    if len(ansa) != 0: break 

    ansa = ansa.split()
    ansb = ansb.split()

    hit = sum((1 for a, b in zip(ansa, ansb) if a == b))
    blow = sum((1 for a in ansa if a in ansb))

    print(hit, blow-hit)

Submission status: Wrong Answer

Solution code:
def get_input():
    while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break

while True:
    try: 
        ansa = input()
        ansb = input()
    except EOFError:
        break

    ansa = ansa.split()
    ansb = ansb.split()

    hit = sum((1 for a, b in zip(ansa, ansb) if a == b))
    blow = sum((1 for a in ansa if a in ansb))

    print(hit, blow-hit)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n= int(input())
l= list(map(int,input().split()))
s= 0
for i in range(n-1):
	if(l[i+1]<l[0]):
		l[0],l[i+1]= l[i+1],l[0]
for j in range(n-1):
	if(l[n-1]<l[j]):
		l[n-1],l[j]= l[j],l[n-1]
for k in range(n-1):
	s+= l[i]
print(l[0],l[n-1],s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
'''
ITP-1_4-D
 ????°????????????§??????????¨????
n????????´??° ai(i=1,2,...n)ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????
???Input
??????????????´??°?????° nn ???????????????????????????????????? nn ????????´??° aiai ????????????????????§?????????????????????
???Output
????°????????????§??????????¨????????????????????????§????????????????????????????????????
'''
# import
import sys

# ?????°??????????????????
int(input())
inputData = map(int, input().split())
maxData = 0
minData = 0
totalData = 0

for inputVal in inputData:

    # 0?????´??? ????????????
    if inputVal > maxData:
        maxData = inputVal

    if inputVal < minData:
        minData = inputVal

    totalData += inputVal

    # ????????????
    print(minData, maxData, totalData)

Submission status: Wrong Answer

Solution code:
'''
ITP-1_4-D
 ????°????????????§??????????¨????
n????????´??° ai(i=1,2,...n)ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????
???Input
??????????????´??°?????° nn ???????????????????????????????????? nn ????????´??° aiai ????????????????????§?????????????????????
???Output
????°????????????§??????????¨????????????????????????§????????????????????????????????????
'''
# import
import sys

# ?????°??????????????????
a = int(input())
inputData = map(int, input().split())
maxData = 0
minData = 0
totalData = 0

for inputVal in inputData:

    # 0?????´??? ????????????
    if inputVal > maxData:
        maxData = inputVal

    if inputVal < minData:
        minData = inputVal

    totalData += inputVal

    # ????????????
    print(minData, maxData, totalData)

Submission status: Wrong Answer

Solution code:
'''
ITP-1_4-D
 ????°????????????§??????????¨????
n????????´??° ai(i=1,2,...n)ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????
???Input
??????????????´??°?????° nn ???????????????????????????????????? nn ????????´??° aiai ????????????????????§?????????????????????
???Output
????°????????????§??????????¨????????????????????????§????????????????????????????????????
'''
# import
import sys

# ?????°??????????????????
int(input())
inputData = map(int, input().split())
maxData = 0
minData = 0
totalData = 0

for inputVal in inputData:

    # 0?????´??? ????????????
    if inputVal > maxData:
        maxData = inputVal

    if inputVal < minData:
        minData = inputVal

    totalData += inputVal

# ????????????
print(minData, maxData, totalData)

Submission status: Wrong Answer

Solution code:
'''
ITP-1_4-D
 ????°????????????§??????????¨????
n????????´??° ai(i=1,2,...n)ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????
???Input
??????????????´??°?????° nn ???????????????????????????????????? nn ????????´??° aiai ????????????????????§?????????????????????
???Output
????°????????????§??????????¨????????????????????????§????????????????????????????????????
'''
# import
import sys

# ?????°??????????????????
int(input())
inputData = map(int, input().split())
maxData = 0
minData = -1
totalData = 0

for inputVal in inputData:

    # max value check
    if inputVal > maxData:
        maxData = inputVal

    # minimum value check
    if inputVal < minData:
        minData = inputVal

    # total value add
    totalData += inputVal

# ????????????
print(minData, maxData, totalData)

Submission status: Wrong Answer

Solution code:
'''
ITP-1_4-D
 ????°????????????§??????????¨????
n????????´??° ai(i=1,2,...n)ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????
???Input
??????????????´??°?????° nn ???????????????????????????????????? nn ????????´??° aiai ????????????????????§?????????????????????
???Output
????°????????????§??????????¨????????????????????????§????????????????????????????????????
'''
# import
import sys

# ?????°??????????????????
int(input())
inputData = map(int, input().split())
maxData = 0
minData = 1000000
totalData = 0

for inputVal in inputData:

    # max value check
    if inputVal > maxData:
        maxData = inputVal

    # minimum value check
    if inputVal < minData:
        minData = inputVal

    # total value add
    totalData += inputVal

# ????????????
print(minData, maxData, totalData)

Submission status: Wrong Answer

Solution code:
'''
ITP-1_4-D
 ????°????????????§??????????¨????
n????????´??° ai(i=1,2,...n)ai(i=1,2,...n)?????\?????????????????????????°????????????§??????????¨????????±???????????????°????????????????????????????????????
???Input
??????????????´??°?????° nn ???????????????????????????????????? nn ????????´??° aiai ????????????????????§?????????????????????
???Output
????°????????????§??????????¨????????????????????????§????????????????????????????????????
'''
# import
import sys

# ?????°??????????????????
n = int(input())
inputData = map(int, input().split())
maxData = 0
minData = 1000000
totalData = 0

for inputVal in inputData:

    # max value check
    if inputVal > maxData:
        maxData = inputVal

    # minimum value check
    if inputVal < minData:
        minData = inputVal

    # total value add
    totalData += inputVal

# ????????????
print(minData, maxData, totalData)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!usr/bin/env python3

import sys


def string_to_list_spliter():
    lst = [int(i) for i in sys.stdin.readline().split()]
    return lst


def main():
    lst = string_to_list_spliter()
    print(min(lst), max(lst), sum(lst))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=[]
for i in range(2):
    m=input().split()
    a.append(m)

list_1=[int(l) for l in a[0]]
list_2=[int(l) for l in a[1]]
total=0
largest=list_2[0]
smallest=list_2[0]


for x in range(list_1[0]):
    if largest<list_2[x]:
        largest=list_2[x]
    if smallest>list_2[x]:
        smallest=list_2[x]

for x in list_2:
    total+=x

print(largest,smallest,total)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(mx,mn,sm)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding : utf-8
'''
????°????????????§??????????¨????
'''
a = int(input())
n1 = input().split()
n1 = [float(i) for i in n1]
print(min(n1), max(n1), sum(n1))

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
min_a = 1000000
max_a = 0
sum_a = 0
for i in range(n):
    if min_a > a[i]:
        min_a = a[i]
    
    if max_a < a[i]:
        max_a = a[i]

    sum_a += a[i]

print(min_a, max_a, sum_a)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
n = int(input().strip())
a = list(map(lambda x: int(x), input().strip().split()))
min = 1000000
max = 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("{0} {1} {2}".format(min, max, sum))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(m,M,s)