ZhenlongDai/ACPR huggingface dataset:
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B=map(int,input().split())
print(min(N*A,N*B))

Failing test case input:
-13 -2 3

Expected output:
3


Actual output:
-39


Fixed submission (verdict: Accepted):
N,A,B=map(int,input().split())
print(min(N*A,B))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())

answer = 0
if A * N >= B:
	answer = B
else:
	answer = A
print(answer)

Failing test case input:
14 -8 0

Expected output:
-112


Actual output:
-8


Fixed submission (verdict: Accepted):
N,A,B = map(int,input().split())

answer = 0
if A * N >= B:
	answer = B
else:
	answer = A * N
print(answer)

Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a,b,c=map(int,input().split())
print(a*min(b,c))

Failing test case input:
12 2 20

Expected output:
20


Actual output:
24


Fixed submission (verdict: Accepted):
a,b,c=map(int,input().split())
print(min(a*b,c))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int, input().split())
if N*A >= B:
  print(B)
else:
  print(A)

Failing test case input:
20 -6 3

Expected output:
-120


Actual output:
-6


Fixed submission (verdict: Accepted):
N,A,B = map(int, input().split())
if N*A >= B:
  print(B)
else:
  print(N*A)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int, input().split())
if n*a >=b:
  print(b)
else:
  print(a)


Failing test case input:
3 -1 4

Expected output:
-3


Actual output:
-1


Fixed submission (verdict: Accepted):
n,a,b=map(int, input().split())
if n*a >=b:
  print(b)
else:
  print(n*a)

Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N, A, B = map(int, input().split())
cost = min(A,B)
ans = cost * N
print(ans)

Failing test case input:
13 -13 -48

Expected output:
-169


Actual output:
-624


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
ans = min(A * N,B)
print(ans)

Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n,a,b = map(int,input().split())
print(min(n*a,int(b/n)))

Failing test case input:
-13 -2 3

Expected output:
3


Actual output:
0


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
print(min(n*a,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input().split()
 
N = int(a[0])
A = int(a[1])
B = int(a[2])
 
if A * N  >= B * N:
  print (B * N)
else:
  print (A * N)

Failing test case input:
5 2 5

Expected output:
5


Actual output:
10


Fixed submission (verdict: Accepted):
a = input().split()
 
N = int(a[0])
A = int(a[1])
B = int(a[2])
 
if A * N  >= B:
  print (B)
else:
  print (A * N)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
nab = input().split()
n = int(nab[0])
a = int(nab[1])
b = int(nab[2])

if n*a > b:
  print(n*a)
else:
  print(b)

Failing test case input:
-96 2 -1

Expected output:
-192


Actual output:
-1


Fixed submission (verdict: Accepted):
nab = input().split()
n = int(nab[0])
a = int(nab[1])
b = int(nab[2])

if n*a > b:
  print(b)
else:
  print(n*a)
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin
li = list(map(int,stdin.readline().rstrip().split()))
if li[1] > li[2]:
    print(li[0]*li[2])
else:
    print(li[0]*li[1])

Failing test case input:
-18 4 0

Expected output:
-72


Actual output:
0


Fixed submission (verdict: Accepted):
from sys import stdin
li = list(map(int,stdin.readline().rstrip().split()))
if li[1]*li[0] > li[2]:
    print(li[2])
else:
    print(li[0]*li[1])

Problem: p02981
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if a * b <= c:
  print(b)
else:
  print(c)

Failing test case input:
45 -1 -2

Expected output:
-45


Actual output:
-1


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if a * b <= c:
  print(a * b)
else:
  print(c)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print(n*a if a<b else n*b)

Failing test case input:
19 -7 -107

Expected output:
-133


Actual output:
-2033


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
print(n*a if a*n<=b else b)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int, input().split())

print(min(a*b, a*c))

Failing test case input:
-7 3 5

Expected output:
-21


Actual output:
-35


Fixed submission (verdict: Accepted):
a,b,c = map(int, input().split())

print(min(a*b, c))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
str = input().split()

train = int(str[0]) * int(str[1])
taxi = int(str[2])

if (train >= taxi):
	print(train)
else:
	print(taxi)


Failing test case input:
-7 3 5

Expected output:
-21


Actual output:
5


Fixed submission (verdict: Accepted):
str = input().split()

train = int(str[0]) * int(str[1])
taxi = int(str[2])

if (train <= taxi):
	print(train)
else:
	print(taxi)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N ,A ,B = map(int, input().split())
print(max(N*A,B))


Failing test case input:
10 0 -18

Expected output:
-18


Actual output:
0


Fixed submission (verdict: Accepted):

N ,A ,B = map(int, input().split())
print(min(N*A,B))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split(' '))
print(min(N*A,N*B))

Failing test case input:
6 2 7

Expected output:
7


Actual output:
12


Fixed submission (verdict: Accepted):
N,A,B = map(int,input().split(' '))
print(min(N*A,B))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int, input().split())
if n*a >b:
  print(b)
else:
  print(a)


Failing test case input:
118 -2 -2

Expected output:
-236


Actual output:
-2


Fixed submission (verdict: Accepted):
n,a,b=map(int, input().split())
if n*a >=b:
  print(b)
else:
  print(n*a)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = list(map(int, input().split()))
print(N*A + B)

Failing test case input:
-39 1 -1

Expected output:
-39


Actual output:
-40


Fixed submission (verdict: Accepted):
N, A, B = list(map(int, input().split()))
if N*A < B:
  print(N*A)
else:
  print(B)
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    n,a,b=INTM()
    print(n*a,b)
if __name__ == '__main__':
    do()

Failing test case input:
5 -5 1

Expected output:
-25


Actual output:
-25 1


Fixed submission (verdict: Accepted):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    n,a,b=INTM()
    print(min(n*a,b))
if __name__ == '__main__':
    do()

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print(min(n*a,n*b))

Failing test case input:
50 0 -2

Expected output:
-2


Actual output:
-100


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
print(min(n*a,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
print(n * min(a, b))

Failing test case input:
-121 4 -1

Expected output:
-484


Actual output:
121


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
print(min(n * a, b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,n = map(int,input().split())
print(min([n*a,b]))

Failing test case input:
2 -6 -4

Expected output:
-12


Actual output:
-8


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
print(min([n*a,b]))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

N, A, B = map(int, input().split())

print(max(N * A, B))

Failing test case input:
-145 2 -1

Expected output:
-290


Actual output:
-1


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())

print(min(N * A, B))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b,c = map(int, input().split())
print(min(a*b,a*c))

Failing test case input:
4 4 9

Expected output:
9


Actual output:
16


Fixed submission (verdict: Accepted):
a,b,c = map(int, input().split())
print(min(a*b,c))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())
T = N*A
print(max(T,B))

Failing test case input:
11 -5 1

Expected output:
-55


Actual output:
1


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())
T = N*A
print(min(T,B))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    N, A, B = map(int, input().split())
    print(min(N*A, N*B))


if __name__ == '__main__':
    main()


Failing test case input:
10 -2 -162

Expected output:
-162


Actual output:
-1620


Fixed submission (verdict: Accepted):
def main():
    N, A, B = map(int, input().split())
    print(min(N*A, B))


if __name__ == '__main__':
    main()
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def minimizer(n,a,b):
  first=n*a
  second=n*b
  if first>second:
    return second
  elif first<second:
    return first
  else:
    return first
inputing=input("enter your value")
input_sep=inputing.split(" ")
input_sep=[int(i) for i in input_sep]
print(minimizer(int(input_sep[0]),int(input_sep[1]),int(input_sep[2])))


Failing test case input:
-9 1 0

Expected output:
-9


Actual output:
enter your value-9


Fixed submission (verdict: Accepted):
def minimizer(n,a,b):
  first=n*a
  second=b
  if first>second:
    return second
  else: 
    return first

inputing=input()
input_sep=inputing.split(" ")
input_sep=[int(i) for i in input_sep]
print(minimizer(int(input_sep[0]),int(input_sep[1]),int(input_sep[2])))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
num = input().split()
a = int(num[0]) * int(num[1])
b = int(num[0]) * int(num[2])
print(min(a,b))

Failing test case input:
6 2 7

Expected output:
7


Actual output:
12


Fixed submission (verdict: Accepted):
num = input().split()
a = int(num[0]) * int(num[1])
b = int(num[2])
print(min(a,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b=map(int,input().split())
print(max(n*a,b))

Failing test case input:
7 -1 -4

Expected output:
-7


Actual output:
-4


Fixed submission (verdict: Accepted):
n,a,b=map(int,input().split())
print(min(n*a,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())


if n+a<b:
    print(n*a)
else:
    print(b)

Failing test case input:
51 -2 -2

Expected output:
-102


Actual output:
-2


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())


if n*a<=b:
    print(n*a)
else:
    print(b)

Problem: p02981
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n,a,b = map(int,input().split())
print(min(a,n*b))

Failing test case input:
20 -2 2

Expected output:
-40


Actual output:
-2


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
print(min(a*n,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())
if n+a<b:
    print(a)
else:
    print(b)

Failing test case input:
87 -1 -2

Expected output:
-87


Actual output:
-2


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())


if n*a<=b:
    print(n*a)
else:
    print(b)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int,input().split())

if a < b*n:
  print(a)
else:
  print(b*n)

Failing test case input:
12 2 20

Expected output:
20


Actual output:
2


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
 
if b < a*n:
  print(b)
else:
  print(a*n)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())
if N*A < N*B:
    print(N*A)
else:
    print(N*B)

Failing test case input:
50 0 -2

Expected output:
-2


Actual output:
-100


Fixed submission (verdict: Accepted):
N,A,B = map(int,input().split())
if N*A < B:
    print(N*A)
else:
    print(B)
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int,input().split())
if n*a >= b:
    print(b)
else:
    print(a)

Failing test case input:
-10 2 1

Expected output:
-20


Actual output:
2


Fixed submission (verdict: Accepted):
n, a, b = map(int,input().split())
if n*a >= b:
    print(b)
else:
    print(n*a)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b= map(int, input().split())
if n*a<b:
   print(b)
else:
   print(n*a)


Failing test case input:
-54 2 -1

Expected output:
-108


Actual output:
-1


Fixed submission (verdict: Accepted):
n, a, b= map(int, input().split())
if n*a<=b:
   print(n*a)
else:
   print(b)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())
print(n * min(a, b))

Failing test case input:
-1719 1 -2

Expected output:
-1719


Actual output:
3438


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
print(min(n * a, b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())

if(N*A <= B):
    print(A)
else:
    print(B)

Failing test case input:
51 -2 -2

Expected output:
-102


Actual output:
-2


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())

if(N*A <= B):
    print(N*A)
else:
    print(B)

Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b, c = list(map(int, input().split(' ')))
print(max(a*b, c))

Failing test case input:
10 0 -32

Expected output:
-32


Actual output:
0


Fixed submission (verdict: Accepted):
a, b, c = list(map(int, input().split(' ')))
print(min(a*b, c))

Problem: p02981
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, a, b = map(int, input().split())
print(max(n*a, b))

Failing test case input:
14 -1 0

Expected output:
-14


Actual output:
0


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())
print(min(n*a, b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())
print(max(N*A,B))

Failing test case input:
20 -2 2

Expected output:
-40


Actual output:
2


Fixed submission (verdict: Accepted):
N,A,B = map(int,input().split())
print(min(N*A,B))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())

tak = int(a) * int(b)
rail = int(c)

if tak > rail: 
	print( "%d" % tak )
else :
  	print( "%d" % rail )

Failing test case input:
-104 2 -1

Expected output:
-208


Actual output:
-1


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())

tak = int(a) * int(b)
rail = int(c)

if tak < rail: 
	print( "%d" % tak )
else :
  	print( "%d" % rail )

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,a,b = map(int, input().split())
print(max(n*a,b))

Failing test case input:
-145 2 -1

Expected output:
-290


Actual output:
-1


Fixed submission (verdict: Accepted):
n,a,b = map(int, input().split())
print(min(n*a,b))
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


N,A,B=map(int,input().split())
if N*B>A:
    print(N*B)
else:
    print(A)

Failing test case input:
4 2 7

Expected output:
7

Actual output:
28


Fixed submission (verdict: Accepted):


N,A,B=map(int,input().split())
if N*A>B:
    print(B)
else:
    print(N*A)

Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N,A,B=map(int,input().split())
s=max(N*A,B)
print(s)

Failing test case input:
51 -2 -2

Expected output:
-102


Actual output:
-2


Fixed submission (verdict: Accepted):
N,A,B=map(int,input().split())
s=min(N*A,B)
print(s)

Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n,a,b = map(int,input().split())
print(min(n*a,b/n))

Failing test case input:
4 2 8

Expected output:
8

Actual output:
2.0


Fixed submission (verdict: Accepted):
n,a,b = map(int,input().split())
print(min(n*a,b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A,B,N = map(int,input().split())
print(min([A * N,B]))

Failing test case input:
-1719 1 -2

Expected output:
-1719


Actual output:
1


Fixed submission (verdict: Accepted):
N,A,B = map(int,input().split())
print(min([A * N,B]))

Problem: p02981
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N, A, B = map(int, input().split())

if N*A > B:
  print(N*A)
else:
  print(B)

Failing test case input:
87 -1 -2

Expected output:
-87


Actual output:
-2


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())

if N*A > B:
  print(B)
else:
  print(N*A)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, A, B = map(int, input().split())
print(n*A if n*A > B else B)

Failing test case input:
42 -1 -2

Expected output:
-42


Actual output:
-2


Fixed submission (verdict: Accepted):
n, A, B = map(int, input().split())
print(n*A if n*A < B else B)

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())

if (n*a) > b:
    print(n*a)
else:
    print(b)

Failing test case input:
56 -1 -2

Expected output:
-56


Actual output:
-2


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())

if (n*a) > b:
    print(b)
else:
    print(n*a)

Problem: p02981
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N, A, B = map(int,input().split())
print(N*A,B)

Failing test case input:
-121 4 -1

Expected output:
-484


Actual output:
-484 -1


Fixed submission (verdict: Accepted):
N, A, B = map(int,input().split())
print(min(N*A,B))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, A, B = map(int, input().split())

result = N*A
print(result if N*A > B else B)

Failing test case input:
14 -2 1

Expected output:
-28


Actual output:
1


Fixed submission (verdict: Accepted):
N, A, B = map(int, input().split())

result = N*A
print(result if N*A < B else B)
Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, a, b = map(int, input().split())

print(max(n*a, b))

Failing test case input:
14 -8 0

Expected output:
-112


Actual output:
0


Fixed submission (verdict: Accepted):
n, a, b = map(int, input().split())

print(min(n*a, b))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,A,B = map(int,input().split())
c=[N*A,N*B]
print(min(c))

Failing test case input:
-7 3 5

Expected output:
-21


Actual output:
-35


Fixed submission (verdict: Accepted):
N,A,B = map(int,input().split())
c=[N*A,B]
print(min(c))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def minimizer(n,a,b):
  first=n*a
  second=n*b
  if first>second:
    return second
  elif first<second:
    return first
  else:
    return first
inputing=input()
input_sep=inputing.split(" ")
input_sep=[int(i) for i in input_sep]
print(minimizer(int(input_sep[0]),int(input_sep[1]),int(input_sep[2])))

Failing test case input:
38 -2 -4

Expected output:
-76


Actual output:
-152


Fixed submission (verdict: Accepted):
def minimizer(n,a,b):
  first=n*a
  second=b
  if first>second:
    return second
  else: 
    return first

inputing=input()
input_sep=inputing.split(" ")
input_sep=[int(i) for i in input_sep]
print(minimizer(int(input_sep[0]),int(input_sep[1]),int(input_sep[2])))

Problem: p02981
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b, c = map(int, input().split())
if a*b > c:
  print(a*b)
else:
  print(c)

Failing test case input:
20 -6 3

Expected output:
-120


Actual output:
3


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
if a*b >= c:
  print(c)
elif a*b == c:
  print(c)
else:
  print(a*b)
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
input()
s = 0
a = input()
b = a.split(" ")
c = map(int,b)
for u in c:
    s=s+u

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


Failing test case input:
5
1 0 0 -1 -2

Expected output:
-2 1 -2


Actual output:
-1 1 -2


Fixed submission (verdict: Accepted):
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)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input())
l = input().split()
l.sort()
sum = 0
for i in range(n):
    sum = sum+int(l[i])
print(l[0],l[-1],sum)


Failing test case input:
5
23 0 0 7 17

Expected output:
0 23 47


Actual output:
0 7 47


Fixed submission (verdict: Accepted):
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)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):


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

Failing test case input:
5
42 1 -2 4 0

Expected output:
-2 42 45


Actual output:
-2.0 42.0 45.0


Fixed submission (verdict: Accepted):


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

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
input()
a = list(map(int, input().split()))
print(max(a), min(a), sum(a))


Failing test case input:
5
1 0 0 -3 -2

Expected output:
-3 1 -4


Actual output:
1 -3 -4


Fixed submission (verdict: Accepted):
input()
a = list(map(int, input().split()))
print(min(a), max(a), sum(a))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):





















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

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

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

Failing test case input:
5
42 1 -2 4 0

Expected output:
-2 42 45


Actual output:
42 -2 45


Fixed submission (verdict: Accepted):





















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

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

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

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):

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


Failing test case input:
5
7 0 0 -1 -2

Expected output:
-2 7 4


Actual output:
5 5 5


Fixed submission (verdict: Accepted):
n = input()
x = list(map(int,input().split()))
x.sort()
print('%s %s %s'%(min(x),max(x),sum(x)))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
input()
num = [int(i) for i in input().split()]
print (min(num),max(num),min(num))

Failing test case input:
5
22 1 -2 0 0

Expected output:
-2 22 21


Actual output:
-2 22 -2


Fixed submission (verdict: Accepted):
input()
num = [int(i) for i in input().split()]
print (min(num),max(num),sum(num))
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input())
A = list(map(int,input().split()))
print(max(A), min(A), sum(A))


Failing test case input:
5
43 1 -1 4 0

Expected output:
-1 43 47


Actual output:
43 -1 47


Fixed submission (verdict: Accepted):
n = int(input())
A = list(map(int,input().split()))
print(min(A), max(A), sum(A))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
def numinput():
    a = input().split()
    for i in range(len(a)):
        a[i] = int(a[i])
    return a

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

if __name__ == "__main__":
    main()


Failing test case input:
5
1 0 -1 -3 -2

Expected output:
-3 1 -5


Actual output:
5 5 5


Fixed submission (verdict: Accepted):
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()

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
a = list(map(int,input().split()))
print(min(a),max(a),sum(a))

Failing test case input:
5
17 0 -3 2 1

Expected output:
-3 17 17


Actual output:
5 5 5


Fixed submission (verdict: Accepted):
input()
a = list(map(int, input().split()))
print(min(a) ,max(a) ,sum(a))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):


import sys


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

for inputVal in inputData:

    
    if inputVal > maxData:
        maxData = inputVal

    if inputVal < minData:
        minData = inputVal

    totalData += inputVal

    
    print(minData, maxData, totalData)

Failing test case input:
5
2 0 -14 -6 -1

Expected output:
-14 2 -19


Actual output:
0 2 2
0 2 2
-14 2 -12
-14 2 -18
-14 2 -19


Fixed submission (verdict: Accepted):


import sys


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

for inputVal in inputData:

    
    if inputVal > maxData:
        maxData = inputVal

    
    if inputVal < minData:
        minData = inputVal

    
    totalData += inputVal


print(minData, maxData, totalData)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
x = input()
a = x.split()
b = list(map(int,a))
print("{} {} {}".format(min(b),max(b),sum(b)))


Failing test case input:
5
1 0 0 -3 -2

Expected output:
-3 1 -4


Actual output:
5 5 5


Fixed submission (verdict: Accepted):
input()
x = input()
a = x.split()
b = list(map(int,a))
print("{} {} {}".format(min(b),max(b),sum(b)))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n=list(map(int,input().split()))
a=min(n)
b=max(n)
c=sum(n)
print(a,b,c)


Failing test case input:
5
12 2 -2 4 0

Expected output:
-2 12 16


Actual output:
5 5 5


Fixed submission (verdict: Accepted):
k=input()
n=list(map(int,input().split()))
a=min(n)
b=max(n)
c=sum(n)
print(a,b,c)
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
def main():
    n = int(input())
    a = set(map(int,input().split()))
    print('%d %d %d' % (min(a), max(a), sum(a)))
    
main()

Failing test case input:
5
1 0 -9 -1 -1

Expected output:
-9 1 -10


Actual output:
-9 1 -9


Fixed submission (verdict: Accepted):
def main():
    n = int(input())
    a = list(map(int,input().split()))
    print('%d %d %d' % (min(a), max(a), sum(a)))
    
main()

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
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(num_1[cnt])
    cnt += 1

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

Failing test case input:
5
12 3 -2 4 1

Expected output:
-2 12 18


Actual output:
-2 4 18


Fixed submission (verdict: Accepted):
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)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input())
a = input().split()

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

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



Failing test case input:
5
54 0 -8 -2 1

Expected output:
-8 54 45


Actual output:
54 -8 45


Fixed submission (verdict: Accepted):
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)))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
num = int(input())
data = [int(i) for i in input().split()]
print(max(data),min(data),sum(data))

Failing test case input:
5
13 0 7 7 17

Expected output:
0 17 44


Actual output:
17 0 44


Fixed submission (verdict: Accepted):
num = int(input())
data = [int(i) for i in input().split()]
print(min(data),max(data),sum(data))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):

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


Failing test case input:
5
147 1 -7 -2 2

Expected output:
-7 147 141


Actual output:
5 5 5


Fixed submission (verdict: Accepted):
n = input()
x = list(map(int,input().split()))
x.sort()
print('%s %s %s'%(min(x),max(x),sum(x)))
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):

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)


Failing test case input:
5
27 0 -15 2 1

Expected output:
-15 27 15


Actual output:
-15 2 15


Fixed submission (verdict: Accepted):

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

max = nums1[1][0]
min = nums1[1][0]
sum = 0

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

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
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()

Failing test case input:
5
54 1 -8 -2 1

Expected output:
-8 54 46


Actual output:
54 -8 46


Fixed submission (verdict: Accepted):
def main():

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






if __name__=="__main__":
    main()

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
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}")



Failing test case input:
5
23 0 0 7 17

Expected output:
0 23 47


Actual output:
0 23 17


Fixed submission (verdict: Accepted):
n = int(input())
i = 0

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

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
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



Failing test case input:
5
59 0 -15 3 2

Expected output:
-15 59 49


Actual output:

Fixed submission (verdict: Accepted):
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)
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
nums = list(map(int, input().split()))
print("{0} {1} {2}".format(min(nums), max(nums), sum(nums)))

Failing test case input:
5
38 0 -15 2 1

Expected output:
-15 38 26


Actual output:
5 5 5


Fixed submission (verdict: Accepted):
num = input()
nums = list(map(int, input().split()))
print("{0} {1} {2}".format(min(nums), max(nums), sum(nums)))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input())
table = [i for i in range(n)]
print("{} {} {}".format(min(table),max(table),sum(table)))


Failing test case input:
5
113 1 -7 -1 2

Expected output:
-7 113 108


Actual output:
0 4 10


Fixed submission (verdict: Accepted):
n = input()
table = list(map(int,input().split()))
print("{} {} {}".format(min(table),max(table),sum(table)))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
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)

Failing test case input:
5
4 1 0 -6 -1

Expected output:
-6 4 -2


Actual output:
4 -6 -2


Fixed submission (verdict: Accepted):
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(smallest,largest,total)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input())
a = input().split()
for i in range(n):
    a[i] = int(a[i])
print("{} {} {}".format(max(a), min(a), sum(a)))

Failing test case input:
5
112 -1 -15 -1 2

Expected output:
-15 112 97


Actual output:
112 -15 97


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

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
def main():
    nums = list(map(int, input().split()))
    print(min(nums), max(nums), sum(nums))

if __name__ == "__main__":
    main()

Failing test case input:
5
1 0 0 -1 -2

Expected output:
-2 1 -2


Actual output:
5 5 5


Fixed submission (verdict: Accepted):
def main():
    n = input()
    nums = list(map(int, input().split()))
    print(min(nums), max(nums), sum(nums))

if __name__ == "__main__":
    main()
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
size = input()
list = list(map(int, input().split()))
list_min = min(list)
list_max = max(list)
list_sum = sum(list)

print(list_min)
print(list_max)
print(list_sum)



Failing test case input:
5
43 0 -1 4 17

Expected output:
-1 43 63


Actual output:
-1
43
63


Fixed submission (verdict: Accepted):
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=' ')

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = input()
integer = list(map(int, input().split()))

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

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

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

Failing test case input:
5
147 2 -8 -2 2

Expected output:
-8 147 141


Actual output:
[147, 2, -8, -2, 2]
-8 147 141


Fixed submission (verdict: Accepted):
n = input()
integer = list(map(int, input().split()))

min = integer[0]
max = integer[0]
sum = 0
for i in integer:
    if max<i:
        max = i
    if i < min:
        min = i
    sum += i

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

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):


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
    elif number > maximum:
        maximum = number
    total += number

print(minimum, maximum, total)



Failing test case input:
5
38 0 -15 2 1

Expected output:
-15 38 26


Actual output:
-15 2 26


Fixed submission (verdict: Accepted):


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)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input())
i = 0

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

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

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

Failing test case input:
5
1 0 -9 -1 -1

Expected output:
-9 1 -10


Actual output:
<built-in function min> 1 -10


Fixed submission (verdict: Accepted):
n = int(input())
i = 0

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

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

while i < n:
    sum = sum + x[i]
    i += 1
    
print(mn, mx, sum)
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):



















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



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

Failing test case input:
5
261 1 -8 -2 2

Expected output:
-8 261 254


Actual output:
['261', '1', '-8', '-2', '2']
-8 261 254


Fixed submission (verdict: Accepted):



















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



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

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
a = list(map(int, input().split()))
print(min(a),max(a),sum(a))


Failing test case input:
5
1 0 -9 -1 -2

Expected output:
-9 1 -11


Actual output:
5 5 5


Fixed submission (verdict: Accepted):
input()
a = list(map(int, input().split()))
print(min(a),max(a),sum(a))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
input()
nums = [int(i) for i in input().split()]

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

print(maximium, minimium, sums)

Failing test case input:
5
59 0 -15 -1 2

Expected output:
-15 59 45


Actual output:
59 -15 45


Fixed submission (verdict: Accepted):
input()
nums = [int(i) for i in input().split()]

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

print(minimum, maximum, total)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):


import sys


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

for inputVal in inputData:

    
    if inputVal > maxData:
        maxData = inputVal

    if inputVal < minData:
        minData = inputVal

    totalData += inputVal


print(minData, maxData, totalData)

Failing test case input:
5
13 1 5 4 17

Expected output:
1 17 40


Actual output:
0 17 40


Fixed submission (verdict: Accepted):


import sys


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

for inputVal in inputData:

    
    if inputVal > maxData:
        maxData = inputVal

    
    if inputVal < minData:
        minData = inputVal

    
    totalData += inputVal


print(minData, maxData, totalData)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n=int(input())
num=[int(i) for i in input().split()]

M=max(num)
m=min(num)
s=sum(num)
print("{0} {1} {2}".format(M,m,s))

Failing test case input:
5
4 0 0 -6 -1

Expected output:
-6 4 -3


Actual output:
4 -6 -3


Fixed submission (verdict: Accepted):
n=int(input())
num=[int(i) for i in input().split()]

M=max(num)
m=min(num)
s=sum(num)
print("{0} {1} {2}".format(m,M,s))
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n=int(input())
numbers=input().split()
sorted(numbers, key=int)
print(numbers[0], numbers[-1], sum(map(int, numbers)))

Failing test case input:
5
23 0 7 7 17

Expected output:
0 23 54


Actual output:
23 17 54


Fixed submission (verdict: Accepted):
n=int(input())
numbers=input().split()
numbers = sorted(numbers, key=int)
print(numbers[0], numbers[-1], sum(map(int, numbers)))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):



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' % (mx, mn, sm))

if __name__ == '__main__':
    main()

Failing test case input:
5
185 1 -8 -2 2

Expected output:
-8 185 178


Actual output:
185 -8 178


Fixed submission (verdict: Accepted):



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

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
input_data = [int(i) for i in input().split()]
print(max(input_data),min(input_data),sum(input_data)/len(input_data))

Failing test case input:
5
13 0 7 7 17

Expected output:
0 17 44


Actual output:
5 5 5.0


Fixed submission (verdict: Accepted):
num = int(input())
data = [int(i) for i in input().split()]
print(min(data),max(data),sum(data))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
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))

Failing test case input:
5
22 1 -2 -1 0

Expected output:
-2 22 20


Actual output:
22 -2 20


Fixed submission (verdict: Accepted):
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(min, max, sum))

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):



















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



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

Failing test case input:
5
22 1 -2 0 0

Expected output:
-2 22 21


Actual output:
['22', '1', '-2', '0', '0']
-2 22 21


Fixed submission (verdict: Accepted):



















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



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) );
Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):


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

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

print(minimum, maximum, total)



Failing test case input:
5
147 1 -8 -2 1

Expected output:
-8 147 139


Actual output:
-8 1 139


Fixed submission (verdict: Accepted):


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)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
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}")


Failing test case input:
5
0 0 0 -1 -2

Expected output:
-2 0 -3


Actual output:
-1 0 -3


Fixed submission (verdict: Accepted):
n = int(input())
l = list(map(int,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}")

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
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)))

Failing test case input:
5
113 1 -7 -1 2

Expected output:
-7 113 108


Actual output:
113 -7 108


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

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):


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)


Failing test case input:
5
51 1 -2 -2 1

Expected output:
-2 51 49


Actual output:
5 5 5


Fixed submission (verdict: Accepted):

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)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
hoge = int(input())
l = [int(i) for i in input().split()]

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

print(mx,mn,sm)

Failing test case input:
5
1 0 -5 -1 -1

Expected output:
-5 1 -6


Actual output:
1 -5 -6


Fixed submission (verdict: Accepted):
hoge = int(input())
l = [int(i) for i in input().split()]

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

print(mn,mx,sm)

Problem: p02402
Buggy submission (Python3, verdict: Wrong Answer):
n = int(input())
table = [i for i in range(n)]
print("{} {} {}".format(max(table),min(table),sum(table)))


Failing test case input:
5
54 1 -8 -2 2

Expected output:
-8 54 47


Actual output:
4 0 10


Fixed submission (verdict: Accepted):
n = input()
table = list(map(int,input().split()))
print("{} {} {}".format(min(table),max(table),sum(table)))