ZhenlongDai/ACPR huggingface dataset:
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):



def func():
    try:
        line=input().rstrip()
        numbers=line.split(" ")
        for i,item in enumerate(numbers):
            numbers[i]=int(item)
    except:
        print("input error")
        return -1
    
    numbers.sort()
    print(numbers)

func()

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):



def func():
    try:
        line=input().rstrip()
        numbers=line.split(" ")
        for i,item in enumerate(numbers):
            numbers[i]=int(item)
    except:
        print("input error")
        return -1
    
    numbers.sort()
    
    result=""
    for num in numbers:
        result+=str(num)+" "
    
    print(result.rstrip(" "))

func()

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
d = list(map(int,input().split()))
print(d.sort())



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
None


Fixed submission (verdict: Accepted):
d = list(map(int,input().split()))
d.sort()
print(d[0],d[1],d[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a = list(map(int, input().split()))
 
a.sort
print(*a)


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1


Fixed submission (verdict: Accepted):
a = list(map(int, input().split()))
a.sort()
print(*a)

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
if a <= b <= c:
    print('a, b, c')
elif a <= c <= b:
    print('a, c, b')
elif b <= a <= c:
    print('b, a, c')
elif b <= c <= a:
    print('b, c, a')
elif c <= a <= b:
    print('c, a, b')
else:
    print('c, b, a')

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
c, a, b


Fixed submission (verdict: Accepted):
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
if a <= b <= c:
    print(a, b, c)
elif a <= c <= b:
    print(a, c, b)
elif b <= a <= c:
    print(b, a, c)
elif b <= c <= a:
    print(b, c, a)
elif c <= a <= b:
    print(c, a, b)
else:
    print(c, b, a)

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
A=list(map(int, input().split()))
A.sort()
print(A)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
A=list(map(int, input().split()))
A.sort()
print(A[0],A[1],A[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
num = list(map(int, input().split()))
num.sort()
print(num)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
num = list(map(int, input().split()))
num.sort()
print(' '.join(map(str,num)))
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a,b,c= map(int, input().split())
i=0
while i<3:
 if a>b:
     x=a
     a=b
     b=x
 elif b>c:
     x=b
     b=c
     c=x
 i=i+1

 print (a,b,c)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 1 8
1 3 8
1 3 8


Fixed submission (verdict: Accepted):
a,b,c= map(int, input().split())
i=0
while i<3:
 if a>b:
     x=a
     a=b
     b=x
 elif b>c:
     x=b
     b=c
     c=x
 i=i+1

print (a,b,c)

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a = list(map(int, input().split()))
def check(in_list):
    flag = True
    for i in in_list:
        if 1 <= i <= 10000:
            continue
        flag = False
    return flag
if check(a):
    print(sorted(a))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
def check(in_list):
    flag = True
    for i in in_list:
        if 1 <= i <= 10000:
            continue
        flag = False
    return flag
a = list(map(int, input().split()))
if check(a):
    print(" ".join(map(str, sorted(a))))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a = [int(i) for i in input().split()]
print(sorted(a))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
a = [int(i) for i in input().split()]
print(" ".join(map(str,sorted(a))))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
Arr = []
Arr = input().split()
for i in range(2):
    Arr[i] = int(Arr[i])
for j in range(1):
    for i in range(1-j):
        if(Arr[i] > Arr[i+1]):
            buf = Arr[i]
            Arr[i] = Arr[i+1]
            Arr[i+1]=buf
print("{} {} {}".format(Arr[0],Arr[1],Arr[2]))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1


Fixed submission (verdict: Accepted):
Arr = []
Arr = input().split()
for i in range(3):
    Arr[i] = int(Arr[i])
for j in range(0, 2, 1):
    for i in range(0 , 2-j , 1):
        if(Arr[i] > Arr[i+1]):
            buf = Arr[i]
            Arr[i] = Arr[i+1]
            Arr[i+1]=buf
print("{} {} {}".format(Arr[0],Arr[1],Arr[2]))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
abc = input ()
num_abc = abc.split()
print(num_abc.sort())

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
None


Fixed submission (verdict: Accepted):
abc = input ()
num_abc = abc.split()
num_abc.sort()
print(num_abc[0],num_abc[1],num_abc[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
l = list(map(int, input().split()))
sorted_list = sorted(l)
print('{} {} {}'.format(l[0], l[1], l[2]))



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1


Fixed submission (verdict: Accepted):
l = list(map(int, input().split()))
sorted_list = sorted(l)
print('{} {} {}'.format(sorted_list[0], sorted_list[1], sorted_list[2]))
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
data = input().split()
data.sort
print(str(data[0]) + " " + str(data[1]) + " " + str(data[2]))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1


Fixed submission (verdict: Accepted):
data = input().split()
data.sort()
print(str(data[0]) + " " + str(data[1]) + " " + str(data[2]))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
def bubble_sort(l):
    N = len(l)
    isChange = True
    while isChange:
        isChange = False
        for i in range(N-1):
            if(l[i] > l[i+1]):
                l[i], l[i+1] = l[i+1], l[i]
                isChange = True
    return l

l = input().split()
out = bubble_sort(l)
print(out)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1, 3, 8

Fixed submission (verdict: Accepted):
def bubble_sort(l):
    N = len(l)
    isChange = True
    while isChange:
        isChange = False
        for i in range(N-1):
            if(l[i] > l[i+1]):
                l[i], l[i+1] = l[i+1], l[i]
                isChange = True
    return l

l = input().split()
out = bubble_sort(l)
print("{} {} {}".format(out[0], out[1], out[2]))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a = list(map(int,input().split()))
a.sort()
print(a)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
a = list(map(int,input().split()))
a.sort()
print(a[0],a[1],a[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
print(sorted(input().split()))


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1, 3, 8

Fixed submission (verdict: Accepted):
print(*sorted(input().split()))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a,b,c=map(int, input().split())
if a>b:
 i=a
 a = b
 b = i
if b>c:
 i=b
 b=c
 c=b
if a>b:
 i=a
 a=b
 b=i

str="{d} {e} {f}"
print(str.format(d=a, e=b, f=c))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1 3 1


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

str="{d} {e} {f}"
print(str.format(d=a, e=b, f=c))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a = input()
b = list(map(int, a.split()))
b.sort()
print(str(b[0])+" " + str(b[1])+ " " +str([2]))


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1 3 [2]


Fixed submission (verdict: Accepted):
a = input()
b = list(map(int, a.split()))
b.sort()
print(str(b[0])+" " + str(b[1])+ " " +str(b[2]))
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a, b, c = map(int, input().split())

d = 0
if a > b:
  d = a
  a = b
  b = d
else: pass

d = 0
if b > c:
  d = b
  b = c
  c = d
  
d = 0
if a > c:
  d = a
  a = c
  c = d

print(a, b, c)


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 1 8


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

d = 0
if a > b:
  d = a
  a = b
  b = d
else: pass

d = 0
if b > c:
  d = b
  b = c
  c = d
else: pass

d = 0
if a > b:
  d = a
  a = b
  b = d
else: pass

print(a, b, c)

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
x = input()

a = [int(n) for n in x.split()]
a.sort()
print(a)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
x = input()

a = [n for n in x.split()]
a.sort()
print(' '.join(a))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
nums = input().split()

a = int(nums[0])
b = int(nums[1])
c = int(nums[2])

if a <= b <= c:
    print('a, b, c')
elif a <= c <= b:
    print('a, c, b')
elif b <= a <= c:
    print('b, a, c')
elif b <= c <= a:
    print('b, c, a')
elif c <= a <= b:
    print('c, a, b')
else:
    print('c, b, a')

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
c, a, b


Fixed submission (verdict: Accepted):
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
if a <= b <= c:
    print(a, b, c)
elif a <= c <= b:
    print(a, c, b)
elif b <= a <= c:
    print(b, a, c)
elif b <= c <= a:
    print(b, c, a)
elif c <= a <= b:
    print(c, a, b)
else:
    print(c, b, a)

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a, b, c = map(int, input().split())

li = sorted([a, b, c])
print(f"%(li[0])s %(li[1])s %(li[2])s")


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
%(li[0])s %(li[1])s %(li[2])s


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

li = sorted([a, b, c])
print(f"{li[0]} {li[1]} {li[2]}")

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
print(sorted([int(i) for i in input().split()]))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
print(*sorted([int(i) for i in input().split()]))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
input_str = input().split(' ')
input_int = []

for value in input_str:
	input_int.append(int(value))

input_int.sort();
	
print(input_int);

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
input_str = input().split(' ')
input_int = []

for value in input_str:
	input_int.append(int(value))

input_int.sort();
	
print('%d %d %d'%(input_int[0],input_int[1],input_int[2]));

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a = list(map(int,input().split()))

a.sort()
print(a)


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
a = list(map(int, input().split()))
a.sort()
print(*a)
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
x = input().split()
i = list(map(int,x))
a = i[0]
b = i[1]
c = i[2]

print('{} {} {}'.format(c,b,a))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1 8 3


Fixed submission (verdict: Accepted):
x = input().split()
i = list(map(int,x))
 
i.sort()
print('{} {} {}'.format(i[0],i[1],i[2]))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
nums = input().split()
a = int( nums[0])
b = int( nums[1])
c = int( nums[2])

if a > b:
    tmp = a
    a = b
    b = tmp
if b > c:
    tmp = b
    b = c
    c = tmp

print( a, b, c)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 1 8


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

if a > b:
    tmp = a
    a = b
    b = tmp
if b > c:
    tmp = b
    b = c
    c = tmp
if a > b:
    tmp = a
    a = b
    b = tmp

print( a, b, c)

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
number = [int(i) for i in input().split()]
number.sort()
print(number)


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
number = [i for i in input().split()]
number.sort()
print(' '.join(number))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
abc = input().split()
for n in abc:
	n = int(n)
	
a,b,c = abc[0],abc[1], abc[2]
print(a,b,c)

low = min(abc)
high = max(abc)

abc.remove(low)
abc.remove(high)

print (low, abc.pop(), high)


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1
1 3 8


Fixed submission (verdict: Accepted):
abc = input().split()
for n in abc:
	n = int(n)
	
a,b,c = abc[0],abc[1], abc[2]


low = min(abc)
high = max(abc)

abc.remove(low)
abc.remove(high)

print (low, abc.pop(), high)

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a,b,c=input().split()
a = int(a)
b = int(b)
c = int(c)
if a<b<c:
	print("a b c")
elif a<c<b:
	print("a c b")
elif b<a<c:
	print("b a c")
elif b<c<a:
	print("b c a")
elif c<a<b:
	print("c a b")
else:
	print("c b a")


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
c a b


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

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a = [int(i) for i in input().split()]
a.sort()
" ".join(map(str,a))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:

Fixed submission (verdict: Accepted):
a = [int(i) for i in input().split()]
print(" ".join(map(str,sorted(a))))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
l = list(map(int, input().split()))
sorted(l)
print(l[0], l[1], l[2])

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1


Fixed submission (verdict: Accepted):
l = list(map(int, input().split()))
l.sort()
print(l[0], l[1], l[2])
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
x =[int(i) for i in input().split()]

x.sort()
print (x)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


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

x.sort()

print (x[0] , x[1] , x[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
I = input().split()
for i in[0, 1, 2]:
    I[i] = int(I[i])
for i in[0, 1, 2]:
    j = i + 1
    while j <= 2:
        if I[i] > I[j]:
            w = I[i]
            I[i] = I[j]
            I[j] = w
        j += 1
print(I)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
I = input().split()
for i in[0, 1, 2]:
    I[i] = int(I[i])
for i in[0, 1, 2]:
    j = i + 1
    while j <= 2:
        if I[i] > I[j]:
            w = I[i]
            I[i] = I[j]
            I[j] = w
        j += 1
print(str(I[0]) + ' ' + str(I[1]) + ' ' + str(I[2]))

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


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

for i in range(len(a)):
  print(str(a[i]), end = ' ' if i != len(a)-1 else '\b\n')

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1 3 8


Fixed submission (verdict: Accepted):


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

for i in range(len(a)):
  print(str(a[i]), end = ' ' if i != len(a)-1 else '\n')

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
x=input().split()
y=list(map(int,x))
a=y[0]
b=y[1]
c=y[2]
d=sorted([a,b,c])
print(d)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
x=input().split()
y=list(map(int,x))
a=y[0]
b=y[1]
c=y[2]
d=sorted([a,b,c])
print("{0} {1} {2}".format(d[0],d[1],d[2]))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a,b,c = map(int,input().split())
x=[a,b,c]
x.sort()

print("x[0]""x[1]""x[2]")


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
x[0]x[1]x[2]


Fixed submission (verdict: Accepted):
x=list(map(int,input().split()))
x.sort()

print(x[0],x[1],x[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a=list(map(int,input().split()))
a.sort()
print(a)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
a=list(map(int,input().split()))
a.sort()
print(a[0],a[1],a[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
d = list(map(int,input().split()))
d.sort
print(d[0],d[1],d[2])



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1


Fixed submission (verdict: Accepted):
d = list(map(int,input().split()))
d.sort()
print(d[0],d[1],d[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
xs=map(int,input().split())
' '.join(map(str, sorted(xs)))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:

Fixed submission (verdict: Accepted):
xs=map(int,input().split())
print(' '.join(map(str, sorted(xs))))
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a, b, c= map(int, input().split())
if a >= b:
    big = a
    mid = b
else:
    big = b
    mid = a
if c >= big:
    small = big
    big = c
else:
    small = c
if small >= mid:
    small_1 = mid
    mid = small
    small = small_1

print("{0} {1} {2}".format(big, mid, small))



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
8 3 1


Fixed submission (verdict: Accepted):
a, b, c= map(int, input().split())
if a >= b:
    big = a
    mid = b
else:
    big = b
    mid = a
if c >= big:
    small = big
    big = c
else:
    small = c
if small >= mid:
    small_1 = mid
    mid = small
    small = small_1

print("{0} {1} {2}".format(small, mid, big))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
A = input().split()
B = sorted(A)
C = map(str, B)
print(C)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
<map object at 0x7fe6f9fd1270>


Fixed submission (verdict: Accepted):
A = input().split()
B = sorted(A)
C = map(str, B)
print(' '.join(C))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a,b,c=map(int, input().split())
if a>b:
 i=a
 a = b
 b = i
if b>c:
 i=b
 b=c
 c=b
if a>c:
 i=a
 a=c
 c=i

str="{d} {e} {f}"
print(str.format(d=a, e=b, f=c))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1 1 3


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

str="{d} {e} {f}"
print(str.format(d=a, e=b, f=c))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
nums = input().split()

a = int(nums[0])
b = int(nums[1])
c = int(nums[2])

if a < b < c:
    print('a b c')
elif a < c < b:
    print('a c b')
elif b < a < c:
    print('b a c')
elif b < c < a:
    print('b c a')
elif c < a < b:
    print('c a b')
else:
    print('c b a')

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
c a b


Fixed submission (verdict: Accepted):
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
if a <= b <= c:
    print(a, b, c)
elif a <= c <= b:
    print(a, c, b)
elif b <= a <= c:
    print(b, a, c)
elif b <= c <= a:
    print(b, c, a)
elif c <= a <= b:
    print(c, a, b)
else:
    print(c, b, a)

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a, b, c, = map(int, input().split())

if a > b:
    temp = a
    a = b
    b = temp

if b > c:
    temp = b
    b = c
    c = temp

print(str(a) + ' ' + str(b) + ' ' + str(c))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 1 8


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

if a > b:
    temp = a
    a = b
    b = temp

if b > c:
    temp = b
    b = c
    c = temp

if a > b:
    temp = a
    a = b
    b = temp

print(str(a) + ' ' + str(b) + ' ' + str(c))
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a = list(int(i) for i in input().split()) 
a.sort()
print(a)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
a = list(i for i in input().split()) 
a.sort()
b = " ".join(a)
print(b)

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a = list(int(i) for i in input().split()) 
a.sort()
b = " ".join(str(a))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:

Fixed submission (verdict: Accepted):
a = list(i for i in input().split()) 
a.sort()
b = " ".join(a)
print(b)

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
num = list(map(int,input().split()))
num.sort()
print(num)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
num = list(map(int,input().split()))
num.sort()
print(num[0],num[1],num[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
arr = [int(i) for i in input().split()]
print(sorted(arr))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
arr = [int(i) for i in input().split()]
print(*sorted(arr))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
abc_s = input()
abc_a = abc_s.split(" ")
abc = [int(x) for x in abc_a]

sorted = False

while sorted == False:
  sorted = True
  if abc[0] > abc[1]:
    sorted == False
    tmp = abc[0]
    abc[0] = abc[1]
    abc[1] = tmp
  if abc[1] > abc[2]:
    sorted == False
    tmp = abc[1]
    abc[1] = abc[2]
    abc[2] = tmp

print("{0[0]} {0[1]} {0[2]}".format(abc))


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 1 8


Fixed submission (verdict: Accepted):
abc_s = input()
abc_a = abc_s.split(" ")
abc = [int(x) for x in abc_a]
 
sorted = False
 
while sorted == False:
  sorted = True
  if abc[0] > abc[1]:
    sorted = False
    tmp = abc[0]
    abc[0] = abc[1]
    abc[1] = tmp
  if abc[1] > abc[2]:
    sorted = False
    tmp = abc[1]
    abc[1] = abc[2]
    abc[2] = tmp
 
print("{0[0]} {0[1]} {0[2]}".format(abc))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a=input()
b=a.split()
d=list()
for c in b:
    d.append(int(c))
print(d[0],d[1],d[2])


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1


Fixed submission (verdict: Accepted):
a=input()
b=a.split()
d=list()
for c in b:
    d.append(int(c))
d=sorted(d)
print(d[0],d[1],d[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
d = list(map(int,input().split()))
d.sort
print(d)



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[3, 8, 1]


Fixed submission (verdict: Accepted):
d = list(map(int,input().split()))
d.sort()
print(d[0],d[1],d[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
x = list(map(int, input().split()))
print(sorted(x))



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
x = list(map(int, input().split()))
x.sort()
print(x[0], x[1], x[2])
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a = list(map(lambda s:int(s), input().split()))
a.sort()
print(a)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
a = list(map(lambda s:int(s), input().split()))
a.sort()
print(a[0], a[1], a[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a,b,c = map(int,input().split())
if a > b:
    x = a
    a = b
    b = a
elif b > c:
    x = b
    b = c
    c = x
elif a > b:
    x = a
    a = b
    b = x

print(a,b,c,end = " ")
    
    
    
    



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 1 8 

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

print(a,b,c,sep = " ")

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
x = input().split()
i = list(map(int, x))
a = i[0]
b = i[1]
c = i[2]
 
print('{} {} {}'.format(c,b,a))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1 8 3


Fixed submission (verdict: Accepted):
x = input().split()
i = list(map(int,x))
 
i.sort()
print('{} {} {}'.format(i[0],i[1],i[2]))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
array = list(map(int, input().split()))
num = 3
def print_array():
    for i in range(num):
        if i != num-1:
            print(array[i], end=' ')
        else:
            print(array[i])

for i in range(num):
    insert = array[i]
    j = 0
    while array[j] < insert:
        j+=1
    for k in range(i, j, -1):
        array[k] = array[k - 1]
    array[j] = insert
    print_array()



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1
3 8 1
1 3 8


Fixed submission (verdict: Accepted):
array = list(map(int, input().split()))
num = 3
def print_array():
    for i in range(num):
        if i != num-1:
            print(array[i], end=' ')
        else:
            print(array[i])

for i in range(num):
    insert = array[i]
    j = 0
    while array[j] < insert:
        j+=1
    for k in range(i, j, -1):
        array[k] = array[k - 1]
    array[j] = insert
print_array()

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
ary=list(map(int, input().split()))
ary.sort()
print(ary[0])

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1


Fixed submission (verdict: Accepted):
ary=list(map(int, input().split()))
ary.sort()
print("{} {} {}".format(ary[0], ary[1], ary[2]))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
for i, a in enumerate(list(map(lambda a : int(a), input().split(" ")))[::-1]):
	if i == 0:
		print("%d" % a, end ="")
	else:
		print(" %d"% a, end ="")
print()

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1 8 3


Fixed submission (verdict: Accepted):
for i, a in enumerate(sorted(list(map(lambda a : int(a), input().split(" "))))):
	if i == 0:
		print("%d" % a, end ="")
	else:
		print(" %d"% a, end ="")
print()
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
nums = [int(e) for e in input().split()]
for i in range(len(nums)):
    for j in range(i):
        if nums[i]<nums[j]:
            a = nums[i]
            nums[i] = nums[j]
            nums[j] = a
print(nums)


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
nums = [int(e) for e in input().split()]
for i in range(len(nums)):
    for j in range(i):
        if nums[i]<nums[j]:
            a = nums[i]
            nums[i] = nums[j]
            nums[j] = a

nums_2 = " ".join(map(str, nums))
print(nums_2)

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
lis = list(map(int, input().split(" ")))
lis.sort()
print(lis)


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
lis = list(map(int, input().split(" ")))
lis.sort()

print("%s %s %s" % (lis[0], lis[1], lis[2]))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
print(list(sorted(map(int,input().split()))))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
print(*list(sorted(map(int,input().split()))))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a, b, c = map(int, input().split())
if(a > b) :
  a, b = b, a
  if(b > c) :
    b, c = c, b
  else :
    pass
  print(a, b, c)
else :
  if(b > c) :
    b, c = c, b
  else :
    pass
  print(a, b, c)

    
  



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 1 8


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

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
tmp = input()
tmp = tmp.split(" ")
tmp = list(map(int,tmp))
tmp.sort()
print(tmp)
tmp = list(map(str,tmp))
print(" ".join(tmp))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]
1 3 8


Fixed submission (verdict: Accepted):
tmp = input()
tmp = tmp.split(" ")
tmp = list(map(int,tmp))
tmp.sort()
tmp = list(map(str,tmp))
print(" ".join(tmp))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
numbers = list(map(int,input().split()))
numbers .sort()
print(numbers[0],numbers[1],numbers[1])




Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1 3 3


Fixed submission (verdict: Accepted):
numbers = list(map(int,input().split()))
numbers .sort()
print(numbers[0],numbers[1],numbers[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a=input().split()
a.sort
print(a[0],a[1],a[2])



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1


Fixed submission (verdict: Accepted):
a=input().split()
a.sort()
print(a[0],a[1],a[2])
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a,b,c = map(int,input().split())

if a < b and b < c:
    print(a,b,c)
elif a < b and b > c:
    print(a,c,b)
elif a > b and a < c:
    print(b,a,c)
elif a > b and a > c:
    print(b,c,a)
elif c < a and a < b:
    print(c,a,b)
elif c < a and a > b:
    print(c,b,a)



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 1 8


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

if a <= b and b <= c:
    print(a,b,c,sep=' ')
elif a <= c and c <= b:
    print(a,c,b,sep=' ')
elif b <= a and a <= c:
    print(b,a,c,sep=' ')
elif b <= c and c <= a:
    print(b,c,a,sep=' ')
elif c <= a and a <= b:
    print(c,a,b,sep=' ')
elif c <= b and b <= a:
    print(c,b,a,sep=' ')

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a, b, c = map(int, input().split())
print(sorted([a, b, c]))



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
a, b, c = map(int, input().split())
sort = sorted([a, b, c])
print(sort[0], sort[1], sort[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
print(list(map(int, input().split())).sort())

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
None


Fixed submission (verdict: Accepted):
t = list(map(int, input().split()))
t.sort()
print(t[0],t[1],t[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a, b, c= map(int, input().split())
if a >= b:
    big = a
    mid = b
else:
    big = b
    mid = a

if c >= big:
    small = big
    big = c
else:
    small = c

if small >= mid:
    small_1 = mid
    mid = small
    small = small_1

print("{0} {1} {2}".format(big, mid, small))



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
8 3 1


Fixed submission (verdict: Accepted):
a, b, c= map(int, input().split())
if a >= b:
    big = a
    mid = b
else:
    big = b
    mid = a
if c >= big:
    small = big
    big = c
else:
    small = c
if small >= mid:
    small_1 = mid
    mid = small
    small = small_1

print("{0} {1} {2}".format(small, mid, big))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
import sys


def main():
    input_str = sys.stdin.readline()
    list1 = [int(i) for i in input_str.split(' ')]
    list1.sort()
    print(list1)
    return


if __name__ == '__main__':
    main()



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
import sys


def main():
    input_str = sys.stdin.readline()
    list1 = [int(i) for i in input_str.split(' ')]
    list1.sort()
    print('{0[0]} {0[1]} {0[2]}'.format(list1))
    return


if __name__ == '__main__':
    main()
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
lis = [int(x) for x in input().split()]
lis.sort(reverse=True)
for i in range(2):
    print(lis[i],end = " ")
print(lis[-1])


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
8 3 1


Fixed submission (verdict: Accepted):
lis = [int(x) for x in input().split()]
lis.sort()
for i in range(2):
    print(lis[i],end = " ")
print(lis[-1])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a = list(map(int,input().split()))
print(" ".join(map(str, a)))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1


Fixed submission (verdict: Accepted):
a = list(map(int,input().split()))
a.sort()
print(" ".join(map(str, a)))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
x = list(map(int, input().split()))
x.sort()
print(x)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
x = list(map(int, input().split()))
x.sort()
print(x[0], x[1], x[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a = list(map(int, input().split()))
print(sorted(a))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
a = list(map(int, input().split()))
print(' '.join(list(map(str, sorted(a)))))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
numbers = list(map(int,input().split()))
numbers.sort()
print(numbers[0],numbers[1],numbers[1])




Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1 3 3


Fixed submission (verdict: Accepted):
numbers = list(map(int,input().split()))
numbers .sort()
print(numbers[0],numbers[1],numbers[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a=list(map(int,input().split()))
a.sort()
print(a[0]+a[1]+a[2])


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
12


Fixed submission (verdict: Accepted):
a=list(map(int,input().split()))
a.sort()
print(a[0],a[1],a[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
nums = input().split()

a = int(nums[0])
b = int(nums[1])
c = int(nums[2])

if a < b < c:
    print('a,b,c')
elif a < c < b:
    print('a,c,b')
elif b < a < c:
    print('b,a,c')
elif b < c < a:
    print('b,c,a')
elif c < a < b:
    print('c,a,b')
else:
    print('c,b,a')

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
c,a,b


Fixed submission (verdict: Accepted):
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
if a <= b <= c:
    print(a, b, c)
elif a <= c <= b:
    print(a, c, b)
elif b <= a <= c:
    print(b, a, c)
elif b <= c <= a:
    print(b, c, a)
elif c <= a <= b:
    print(c, a, b)
else:
    print(c, b, a)
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
x = input()
split_x = x.split()
split_x_int = [int(i) for i in split_x]
split_x_int.sort()
a = split_x[0]
b = split_x[1]
c = split_x[2]

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

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1


Fixed submission (verdict: Accepted):
x = input()
split_x = x.split()
split_x_int = [int(i) for i in split_x]
split_x_int.sort()
a = split_x_int[0]
b = split_x_int[1]
c = split_x_int[2]

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

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
z = input()

z = z.split( )

list(map(int, z))

z.sort()

print(z)


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1, 3, 8

Fixed submission (verdict: Accepted):
z = input()

z = z.split( )

list(map(int, z))

z.sort()

print(z[0] + ' ' + z[1] + ' ' + z[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
x=list(map(int, input().split()))
x.sort
print(x[0],x[1],x[2])

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1


Fixed submission (verdict: Accepted):
x=list(map(int, input().split()))
x.sort()
print(x[0],x[1],x[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a= list(int(i) for i in input().split())


risuto = ' '.join(map(str,a))
print(risuto)



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1


Fixed submission (verdict: Accepted):
a= list(int(i) for i in input().split())

a.sort()

risuto = ' '.join(map(str,a))
print(risuto)

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a = list(map(int, input().split()))
for i in range(1,len(a)-1):
    v = a[i]
    j = i - 1
    while j >= 0 and a[j] > v:
        a[j+1] = a[j]
        j -= 1
    a[j+1] = v

print("{} {} {}".format(a[0],a[1],a[2]))


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 8 1


Fixed submission (verdict: Accepted):
a = list(map(int, input().split()))
for i in range(1,len(a)):
    v = a[i]
    j = i - 1
    while j >= 0 and a[j] > v:
        a[j+1] = a[j]
        j -= 1
    a[j+1] = v

print("{} {} {}".format(a[0],a[1],a[2]))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
xs = map(int, input().split())
print(sorted(xs))


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
xs = map(int, input().split())
print(*sorted(xs))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
num = list(map(int,input().split()))
num.sort()
for i in range(3):
 print(num[i])

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1
3
8


Fixed submission (verdict: Accepted):
num = list(map(int,input().split()))
num.sort()
print(num[0],num[1],num[2])

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a=list(map(int,input().split()))
a.sort()
print(a)


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
a=list(map(int,input().split()))
a.sort()
print(a[0],a[1],a[2])
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
date = [int(1) for i in input().split()]

date.sort()
print("{0} {1} {2}".format(date[0],date[1],date[2]))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
1 1 1


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

data.sort()
print("{0} {1} {2}".format(data[0],data[1],data[2]))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a= [int(x) for x in input().split()]
if a[0]>a[1]:
    a[0],a[1]=a[1],a[0]
if a[1]>a[2]:
    a[1],a[2]=a[2],a[1]
if a[0]>a[1]:
    a[0],a[1]=a[1],a[0]
print(a)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


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

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
x = list(map(int, input().split()))
x.sort()
print(x)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
x = list(map(int, input().split()))
x.sort()
print(*x)

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a = [int(i) for i in "3 8 1".split()]
a.sort()
" ".join(map(str,a))

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:

Fixed submission (verdict: Accepted):
a = [int(i) for i in input().split()]
print(" ".join(map(str,sorted(a))))

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
a, b, c = map(int, input().split())

li = sorted([a, b, c])
print("%(li[0])s %(li[1])s %(li[2])s ")


Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
%(li[0])s %(li[1])s %(li[2])s 


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

li = sorted([a, b, c])
print(f"{li[0]} {li[1]} {li[2]}")

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
nums = input().split()
a = int(nums[0])
b = int(nums[0])
c = int(nums[0])

if a < b < c:
    print(a, b, c)

elif a < c < b:
    print(a, c, b)

elif b < a < c:
    print(b, a, c)

elif b < c < a:
    print(b, c, a)

elif c < a < b:
    print(c, a, b)

else:
    print(c, b, a)

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
3 3 3


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

if a <= b <= c:
    print(a, b, c)

elif a <= c <= b:
    print(a, c, b)

elif b <= a <= c:
    print(b, a, c)

elif b <= c <= a:
    print(b, c, a)

elif c <= a <= b:
    print(c, a, b)

else:
    print(c, b, a)

Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
list = [int(x) for x in input().split()]
print(list)
list.sort()
print(list[0], list[1], list[2])

Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[3, 8, 1]
1 3 8


Fixed submission (verdict: Accepted):
list = [int(x) for x in input().split()]
list.sort()
print(list[0], list[1], list[2])
Problem: p02393
Buggy submission (Python3, verdict: Wrong Answer):
d = list(map(int,input().split()))
d.sort()
print(d)



Failing test case input:
3 8 1

Expected output:
1 3 8

Actual output:
[1, 3, 8]


Fixed submission (verdict: Accepted):
d = list(map(int,input().split()))
d.sort()
print(d[0],d[1],d[2])
Problem: p03311
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
a=list(map(int,input().split()))
aa=[a[i-1]-i for i in range(1,n+1)]
ave=sum(aa)
ans1,ans2=0,0
for i in aa:
    ans1+=abs(i-ave)
    ans2+=abs(i-(ave+1))
print(min(ans1,ans2))

Failing test case input:
5
2 2 3 5 5

Expected output:
2

Actual output:
8


Fixed submission (verdict: Accepted):
n=int(input())
a=list(map(int,input().split()))
aa=[a[i-1]-i for i in range(1,n+1)]


aaa=sorted(aa)
if len(aaa)%2==0:
    m1=aaa[len(aaa)
    m2=aaa[len(aaa)
else:
    m1=aaa[len(aaa)
    m2=m1
ans1,ans2=0,0
for i in aa:
    ans1+=abs(i-m1)
    ans2+=abs(i-m2)
print(min(ans1,ans2))

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

A = [A[i]-(i+1) for i in range(N)]

ave1 = sum(A)
ave2 = (sum(A)+N)

ans1 = 0
for i in range(N):
    ans1 +=abs(A[i]-ave1)

ans2 = 0
for j in range(N):
    ans2 += abs(A[i]-ave2)

print (min(ans1, ans2))

Failing test case input:
5
2 2 3 5 5

Expected output:
2

Actual output:
8


Fixed submission (verdict: Accepted):


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

A = [A[i]-(i+1) for i in range(N)]

A.sort()

center1 = A[N
if N == 1:
    center2 = 10 ** 9
else:
    center2 = A[(N+2)

ans1 = 0
for i in range(N):
    ans1 +=abs(A[i]-center1)
    
ans2 = 0
for j in range(N):
    ans2 += abs(A[j]-center2)
    
print (min(ans1, ans2))

Problem: p03311
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
a=list(map(int,input().split()))
for i in range(n):
    a[i]-=i+1
s=sum(a)
ans_1=0
ans_2=0
for i in range(n):
    ans_1+=abs(a[i]-s)
    ans_2+=abs(a[i]-s-1)
ans=min(ans_1,ans_2)
print(ans)

Failing test case input:
5
2 2 3 5 5

Expected output:
2

Actual output:
8


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

for i in range(n):
    a[i]-=i+1

a.sort()

if n%2==1:
    b=a[(n-1)
else:
    b=a[n

ans=0
for i in range(n):
    ans+=abs(a[i]-b)

print(ans)

Problem: p03311
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
A=list(map(int,input().split()))
for i in range(n):
    A[i]-=(i+1)
num=sum(A)
for i in range(n):
    A[i]-=num
    A[i]=abs(A[i])
print(sum(A))



Failing test case input:
5
2 2 3 5 5

Expected output:
2

Actual output:
8


Fixed submission (verdict: Accepted):
n=int(input())
A=list(map(int,input().split()))
for i in range(n):
    A[i]-=(i+1)

A.sort()
if len(A)%2==1:
    num = A[len(A)
else:
    num = (A[len(A)
for i in range(n):
    A[i]-=num
for i in range(n):
    A[i]=abs(A[i])

print(sum(A))

Problem: p03311
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
A = list(map(int, input().split()))
S = 0
for i in range(N):
    A[i] -= i + 1
    S += A[i]
S 
ans = 0
for i in range(N):
    ans += abs(S - A[i])
print(ans)

Failing test case input:
5
2 2 3 5 5

Expected output:
2

Actual output:
8


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int, input().split()))
for i in range(N):
    A[i] -= i + 1
A = sorted(A)
if N % 2:
    M = A[N 
else:
    M = (A[N 
S = 0
for i in range(N):
    S += abs(A[i] - M)
print(S)
Problem: p03311
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=int(input())
A=list(map(int,input().split()))
tot=sum(A)-n*(n+1)
b=0
if tot%n<n/2:
  b=tot
else:
  b=tot
ans=0
for i in range(n):
  ans+=abs(A[i]-b-(i+1))
print(ans)

Failing test case input:
5
2 2 3 5 5

Expected output:
2

Actual output:
67


Fixed submission (verdict: Accepted):
n=int(input())
A=list(map(int,input().split()))
for i in range(n):
  A[i]-=i
A.sort()
b=A[n
ans=0
for i in range(n):
  ans+=abs(A[i]-b)
print(ans)

Problem: p03311
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))

a = [ai - i for i, ai in enumerate(a)]
ave = sum(a) 
print(sum(abs(ai-ave) for ai in a))


Failing test case input:
5
2 2 3 5 5

Expected output:
2

Actual output:
28


Fixed submission (verdict: Accepted):
from statistics import median_low

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

a = [ai - i for i, ai in enumerate(a)]
med = median_low(a)
print(sum(abs(ai - med) for ai in a))

Problem: p03311
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
*A,=map(int,input().split())
B=[A[i]-(i+1) for i in range(N)]
b=sum(B)
ans=sum(abs(B[i]-b)for i in range(N))
print(ans)

Failing test case input:
5
2 2 3 5 5

Expected output:
2

Actual output:
8


Fixed submission (verdict: Accepted):
N=int(input())
*A,=map(int,input().split())
B=[A[i]-(i+1) for i in range(N)]
B.sort()
b=B[N
print(sum(abs(bb-b)for bb in B))

Problem: p03311
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = int(input())
A = list(map(int,input().split()))
for i in range(N):
  A[i] -= i+1


def calc(b):
  res = 0
  for i in range(N):
    res += abs(A[i]-b)
  return res

m = sum(A)
print(min(calc(m),calc(m+1),calc(m-1)))


Failing test case input:
5
2 2 3 5 5

Expected output:
2

Actual output:
3


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int,input().split()))
for i in range(N):
  A[i] -= i+1
A.sort()


def calc(b):
  res = 0
  for i in range(N):
    res += abs(A[i]-b)
  return res

if N % 2 == 1:
  print(calc(A[N
else:
  print(min(calc(A[N

Problem: p03311
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
As = list(map(int, input().split()))
A = [As[i] - (i+1) for i in range(N)]
b1 = sum(A) 
b2 = b1+1
ans1 = 0
ans2 = 0
for i in range(N):
    ans1 += abs(A[i] -b1)
    ans2 += abs(A[i] - b2)
print(min(ans1, ans2))



Failing test case input:
5
2 2 3 5 5

Expected output:
2

Actual output:
8


Fixed submission (verdict: Accepted):
N = int(input())
As = list(map(int, input().split()))
A = [As[i] - (i+1) for i in range(N)]
A.sort()
b1 = A[N
b2 = A[N
ans1 = 0
ans2 = 0
for i in range(N):
    ans1 += abs(A[i] -b1)
    ans2 += abs(A[i] - b2)
print(min(ans1, ans2))