Problem:


Sorting Three Numbers

  Write a program which reads three integers, and prints them in ascending order.

Input

  Three integers separated by a single space are given in a line.

Output

  Print the given integers in ascending order in a line. Put a single space between two integers.

Constraints

  
 1 ≤ the three integers ≤ 10000

Sample Input 1

3 8 1

Sample Output 1

1 3 8



Sample input:
3 8 1


Sample output:
1 3 8

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

s = input().rstrip().split(' ')
a = int(s[0])
b = int(s[1])
c = int(s[2])

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

Submission status: Wrong Answer

Solution code:
input_str = input().split(' ')
input_int = []

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

input_int.sort();
	
print(input_int);

Submission status: Wrong Answer

Solution code:
print(sorted(list(map(int,input().split()))))

Submission status: Wrong Answer

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

def comp(a,b,c):
	if a<b and b>c:
		temp=c
		c=b
		b=temp
	if a>b and b<c:
		temp=b
		b=a
		a=temp
	if a>b and b>c:
		temp=c
		c=a
		a=temp

	print(a,b,c)

comp(a,b,c)

Submission status: Wrong Answer

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

def comp(a,b,c):
	if a<b and b>=c:
		temp=c
		c=b
		b=temp
	if a>b and b<c:
		temp=b
		b=a
		a=temp
	if a>=b and b>=c:
		temp=c
		c=a
		a=temp

	print(a,b,c)

comp(a,b,c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
print(" ".join(map(str, a)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    n = input().split()
    a = int(n[0])
    b = int(n[1])
    c = int(n[2])

    if (a > c):
        temp = a
        a = c
        c = temp

    if (a > b):
        temp = b
        b = a
        a = temp

    print("{0} {1} {2}".format(a,b,c))

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    n = input().split()
    a = int(n[0])
    b = int(n[1])
    c = int(n[2])

    if (a >= b):
        temp = a
        a = b
        b = temp

    if (b >= c):
        temp = b
        b = c
        c = temp

    if (a >= c):
        temp = a
        a = c
        c = temp

    print("{0} {1} {2}".format(a,b,c))

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    n = input().split()
    a = int(n[0])
    b = int(n[1])
    c = int(n[2])

    if (a >= c):
        temp = a
        a = c
        c = temp

    if (b >= c):
        temp = b
        b = c
        c = temp

    print("{0} {1} {2}".format(a,b,c))

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    n = input().split()

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

    if (a >= b):
        temp = a
        b = a
        a = temp

    if (b >= c):
        temp = b
        b = c
        c = temp

    if (a >= b):
        temp = a
        a = b
        b = temp

    print("{0} {1} {2}".format(a,b,c))
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
def s(x,y):
 if x>y:
  t=x;x=y;y=t
s(a,b)
s(b,c)
print(f'{a} {b} {c}')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
def s(x,y):
 if x>y:
  t=x;x=y;y=t
s(b,c)
s(a,b)
s(b,c)
print(f'{a} {b} {c}')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
def s(x,y):
 if x>y:
  t=x
  x=y
  y=t
s(b,c)
s(a,b)
s(b,c)
print(f'{a} {b} {c}')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
def f(x,y):
 if x>y:
  t=x;x=y;y=t
f(a,b);f(b,c);f(a,b)
print(f'{a} {b} {c}')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
def f(x,y):
  if x>y:
    t=x;x=y;y=t
f(a,b);f(b,c);f(a,b)
print(f'{a} {b} {c}')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
def f(x,y):
 t=x
 x=y
 y=t
f(a,b);f(b,c);f(a,b)
print(f'{a} {b} {c}')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
def f(x,y):
 t=x
 x=y
 y=t
s=f(a,b)
s=f(b,c)
s=f(a,b)
print(f'{a} {b} {c}')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
def f(x,y):
 if x>y:
  t=x
  x=y
  y=t
f(a,b)
f(b,c)
f(a,b)
print(f'{a} {b} {c}')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
def fa(x,y):
 if x>y:
  t=x
  x=y
  y=t
fa(a,b)
fa(b,c)
fa(a,b)
print(f'{a} {b} {c}')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
def f(x,y):
 t=x
 x=y
 y=t
f(a,b)
f(b,c)
f(a,b)
print(f'{a} {b} {c}')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
def f(x,y):
 if x>y:
  t=x
  x=y
  y=t

f(a,b)
f(b,c)
f(a,b)
print(f'{a} {b} {c}')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
def f(x,y):
  t=x
  x=y
  y=t
if a>b:f(a,b)
if b>c:f(b,c)
if a>b:f(a,b)
print(f'{a} {b} {c}')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
def f(x,y):
 t=x
 x=y
 y=t
if a>b:f(a,b)
if b>c:f(b,c)
if a>b:f(a,b)
print(f'{a} {b} {c}')

Submission status: Wrong Answer

Solution code:
print([int(_) for _ in input().split()].sort())

Submission status: Wrong Answer

Solution code:
print([_ for _ in input().split()].sort())

Submission status: Wrong Answer

Solution code:
print(input().split().sort())

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(sorted([int(x) for x in input().split()]))

Submission status: Wrong Answer

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

max_idx = len(nums)
for i in range(1, max_idx):
    for j in range(max_idx-i):
        if nums[j] > nums[j+1]:
            nums[j], nums[j+1] = nums[j+1], nums[j]

print(nums)

Submission status: Wrong Answer

Solution code:
lst = [int(x) for x in input().split()]
min = min(lst)
max = max(lst)
for i in lst:
    if not i==min or i==max:
        lst[1]=i
lst[0]=min
lst[2]=max
print(" ".join(str(x) for x in lst))

Submission status: Wrong Answer

Solution code:
lst = [int(x) for x in input().split()]
min = min(lst)
max = max(lst)
for i in lst:
    if not i==min or i==max:
        lst[1]=i
lst[0]=min
lst[2]=max
print(lst[0],lst[1],lst[2])

Submission status: Wrong Answer

Solution code:
print(sorted([int(i) for i in input().split()]))

Submission status: Wrong Answer

Solution code:
def parseSpaceDivideIntArgs(arg):
    tmpArr = arg.split()
    ret = []
    for s in tmpArr:
        ret.append(int(s))
    return ret


# instr = input()
instr = "3 2 4"

instrSpl = parseSpaceDivideIntArgs(instr)
instrSpl.sort()

print(instrSpl)

Submission status: Wrong Answer

Solution code:
def parseSpaceDivideIntArgs(arg):
    tmpArr = arg.split()
    ret = []
    for s in tmpArr:
        ret.append(int(s))
    return ret


# instr = input()
instr = "3 2 4"

instrSpl = parseSpaceDivideIntArgs(instr)
instrSpl.sort(reverse=True)

print(instrSpl)

Submission status: Wrong Answer

Solution code:
def parseSpaceDivideIntArgs(arg):
    tmpArr = arg.split()
    ret = []
    for s in tmpArr:
        ret.append(int(s))
    return ret


instr = input()
# instr = "3 2 4"

instrSpl = parseSpaceDivideIntArgs(instr)
instrSpl.sort(reverse=True)

print(instrSpl)

Submission status: Wrong Answer

Solution code:
def parseSpaceDivideIntArgs(arg):
    tmpArr = arg.split()
    ret = []
    for s in tmpArr:
        ret.append(int(s))
    return ret


instr = input()
# instr = "10000 1000 100"

instrSpl = parseSpaceDivideIntArgs(instr)
instrSpl.sort()

print(instrSpl)

Submission status: Wrong Answer

Solution code:
def parseSpaceDivideIntArgs(arg):
    tmpArr = arg.split()
    ret = []
    for s in tmpArr:
        ret.append(int(s))
    return ret


def printSpaceDivede(arg):
    isFirst = True
    for s in arg:
        if not isFirst:
            print(' ')
        else:
            isFirst = False
        print(s)
    return


instr = input()
# instr = "10000 1000 100"

instrSpl = parseSpaceDivideIntArgs(instr)
instrSpl.sort()

print(instrSpl)

Submission status: Wrong Answer

Solution code:

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

for s in a:
    print(s)

Submission status: Wrong Answer

Solution code:
a= list(int(i) for i in input().split())


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = raw_input()
x = x.split(" ")
x = map(int,x)
x.sort()
print x

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
while b < c :
    b, c = c, b
    break
while a < b :
    a, b = b, a
    break
while b < c :
    b, c = c, b
    break
print(a, b, c)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 31 19:46:40 2018

@author: Fujiichang
"""

if __name__ == "__main__":

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

    a = x[0]
    b = x[1]
    c = x[2]

    if a < b:
        temp = a
        a = b
        b = temp

    if b < c:
        temp = b
        b = c
        c = temp

    if c < a:
        temp = c
        c = a
        a = temp

    print a, b, c

Submission status: Wrong Answer

Solution code:
l = list(map(int, input().split()))
sorted_list = sorted(l)
print('{} {} {}'.format(l[0], l[1], l[2]))

Submission status: Wrong Answer

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

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)

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

Submission status: Wrong Answer

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

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)

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

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

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

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

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

Submission status: Wrong Answer

Solution code:
z = input()

z = z.split( )

list(map(int, z))

z.sort()

print(z)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

list1 = [a,b,c]
list2 = sorted(list1)
print(list2)

Submission status: Wrong Answer

Solution code:
l=input().split()

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

if a<b and b<c:
    print(str(a)+" "+str(b)+" "+str(c))
elif a<c and b>c:
    print(str(a)+" "+str(c)+" "+str(b))
elif b<a and a<c:
    print(str(b)+" "+str(a)+" "+str(c))
elif b<c and a>c:
    print(str(b)+" "+str(c)+" "+str(a))
elif c<a and a<b:
    print(str(c)+" "+str(a)+" "+str(b))
else:
    print(str(c)+" "+str(b)+" "+str(a))

Submission status: Wrong Answer

Solution code:
lis = [int(x) for x in input().split()]
lis.sort()
lis.reverse()
print(lis)

Submission status: Wrong Answer

Solution code:
lis = [int(x) for x in input().split()]
lis.sort(reverse=True)
for i in range(2):
    print(lis[i],end = " ")
print(lis[-1])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
d = list(map(int,input().split()))
d.sort
print(d[0],d[1],d[2])

Submission status: Wrong Answer

Solution code:
d = list(map(int,input().split()))
d.sort
print(d)

Submission status: Wrong Answer

Solution code:
d = list(map(int,input().split()))
print(d.sort())

Submission status: Wrong Answer

Solution code:
d = list(map(int,input().split()))
d.sort()
print(d)

Submission status: Wrong Answer

Solution code:
#coding: UTF-8

#a,b,c=[int(x) for x in input().split()]

a,b,c=[int(x) for x in input().split()]

numlist = [a,b,c]

print(numlist.sort())

Submission status: Wrong Answer

Solution code:
#coding: UTF-8

a,b,c=[int(x) for x in input('>').split()]

numlist = [a,b,c]

numlist.sort()
print(numlist)

Submission status: Wrong Answer

Solution code:
#coding: UTF-8

a,b,c=[int(x) for x in input().split()]

numlist = [a,b,c]

numlist.sort()
print(numlist)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
### スペース区切りの３つの数値を小さい順にならべかえる。

str_in = raw_input()
int_in = map(int, str_in.split())

### i が0 に到達したらループから抜けるよ
for i in range(2, 0, -1):
	if(int_in[i-1] > int_in[i]):
		swap = int_in[i-1]
		int_in[i-1] = int_in[i]
		int_in[i] = swap
		
		
print(repr(int_in[0])  + ' ' + repr(int_in[1]) + ' ' + repr(int_in[2]))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
### スペース区切りの３つの数値を小さい順にならべかえる。

str_in = raw_input()
int_in = map(int, str_in.split())

### i が0 に到達したらループから抜けるよ
for i in range(2, 0, -1):
	print ('test')
	if(int_in[i-1] > int_in[i]):
		swap = int_in[i-1]
		int_in[i-1] = int_in[i]
		int_in[i] = swap
		
		
print(repr(int_in[0])  + ' ' + repr(int_in[1]) + ' ' + repr(int_in[2]))

Submission status: Wrong Answer

Solution code:
# coding: utf-8

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

print(n)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
list = raw_input().split(" ")
list.sort()

Submission status: Wrong Answer

Solution code:
list = raw_input().split(" ")
list.sort()
print(list)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
print(sorted(input().split()))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=[int(x) for x in input().split()]
if a > b:
    if a > c:
        if b < c:
            print(b,c,a,sep=" ")
        else:
            print(c,b,a,sep=" ")
    elif b < c:
        print(a,b,c,sep=" ")
    else:
        print(a,c,b,sep=" ")

Submission status: Wrong Answer

Solution code:
li=list(map(int,input().split()))
li.sort()
for i in li:
	print("i", sep=" ")

Submission status: Wrong Answer

Solution code:
xs = map(int, input().split())
print(sorted(xs))

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
x=[a,b,c]
x.sort()

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

Submission status: Wrong Answer

Solution code:
#! python3
# sorting_three_numbers.py

nums = [int(x) for x in input().split()]
sorted_nums = []
sorted_nums.append(nums[0])
for x in nums[1:]:
    if sorted_nums[0] >= x:
        sorted_nums.insert(0, x)
    elif sorted_nums[-1] < x:
        sorted_nums.append(x)

print(' '.join([str(x) for x in sorted_nums]))

Submission status: Wrong Answer

Solution code:
nums = list(map(int,input().split()))
nums.sort()
print(nums)

Submission status: Wrong Answer

Solution code:
nums = list(map(int,input().split()))
nums.sort()
print(list(nums))

Submission status: Wrong Answer

Solution code:
a,b,c=[int(x) for x in input().split()]
if a<b<c:
    print(a,b,c,sep=" ")
elif a<c<b:
    print(a,c,b,sep=" ")
elif b<a<c:
    print(b,a,c,sep=" ")
elif b<c<a:
    print(b,c,a,sep=" ")
elif c<a<b:
    print(c,a,b,sep=" ")
elif c<b<a:
    print(c,b,a,sep=" ")

Submission status: Wrong Answer

Solution code:
a,b,c=[int(x) for x in input().split()]
if a<b<c:
    print(a,b,c,sep=" ")
elif a<c<b:
    print(a,c,b,sep=" ")
elif b<a<c:
    print(b,a,c,sep=" ")
elif b<c<a:
    print(b,c,a,sep=" ")
elif c<a<b:
    print(c,a,b,sep=" ")
elif c<b<a:
    print(c,b,a,sep=" ")

Submission status: Wrong Answer

Solution code:
a,b,c=[int(x) for x in input().split()]
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)
elif c<b<a:
    print(c,b,a)

Submission status: Wrong Answer

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

print(sorted([a, b, c]))

Submission status: Wrong Answer

Solution code:
x, y, z = map(int, input().split())

s = [x, y, z]

print(sorted(s))

Submission status: Wrong Answer

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

s = [x, y, z]

print(sorted(s))

Submission status: Wrong Answer

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

print(sorted(s))

Submission status: Wrong Answer

Solution code:
#print(*sorted(map(int, input().split())))

s = map(int, input().split())

print(sorted(s))

Submission status: Wrong Answer

Solution code:
#print(*sorted(map(int, input().split())))

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

print(s.sort())

Submission status: Wrong Answer

Solution code:
a=input().split()
print(a)

Submission status: Wrong Answer

Solution code:
a=input().split()
a.sort
print(a)

Submission status: Wrong Answer

Solution code:
a=input().split()
a.sort
print(a[0],a[1],a[2])

Submission status: Wrong Answer

Solution code:
import sys
y = list()
y = sys.stdin.readline().split()
print(y)
y.sort(key = None,reverse = False)
for i in y :
    print(i)

Submission status: Wrong Answer

Solution code:
import sys
y = list()
y = sys.stdin.readline().split()
print(y)
y.sort(key = None,reverse = False)
for i in y :
    print(i,end = " ")

Submission status: Wrong Answer

Solution code:
import sys
y = list()
y = sys.stdin.readline().split()
print(y)
y.sort(key = None,reverse = False)
for i in y :
    print(i,end = "")
    print(" ",end = "")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if(a<b):
    w=a;a=b;b=w;
if(b<c):
    w=b;b=c;c=w;
if(a<b):
    w=a;a=b;b=w;
print(f"{a},{b},{c}")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if a<b:
    w=a;a=b;b=w;
if b<c:
    w=b;b=c;c=w;
if a<b:
    w=a;a=b;b=w;
print(f"{a},{b},{c}")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
print(sorted([a, b, c]))

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
sort = sorted([a, b, c])
for i in sort:
    print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
target_list=map(int,input().split())
arrangement_list=sorted(target_list)
print(arrangement_list)

Submission status: Wrong Answer

Solution code:
a = input()
b = list(map(int, a.split()))
b.sort()
print(str(b[0])+" " + str(b[1])+ " " +str([2]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print sorted(map(int, raw_input().split()))

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, raw_input().split())
aa = [1, 2, 3]

sorted(aa)

print aa[0],aa[1],aa[2]

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, raw_input().split())
aa = [a, b, c]

sorted(aa)

print aa[0],aa[1],aa[2]

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, raw_input().split())

aa = [1,1,1]
aa[0] = a
aa[1] = b
aa[2] = c

sorted(aa)

print aa[0],aa[1],aa[2]

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    a, b, c = map(int, raw_input().split())
    if a < b:
        if b < c:
            print a, b, c
        elif a < c:
            print a, c, b
        else:
            print c, a, b
    else:
        if a < c:
            print b, a, c
        elif b < c:
            print b, c, a
        else:
            c, b, a

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,raw_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;

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,raw_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 a,b,c ;

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,raw_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 a,b,c

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, raw_input().split())

if a > b:
	a, b = b, a
if b > c:
	b, c = c, b

print a, b, c

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split()) 
if a < b and b < c and a < c:
    print(a, b, c)
if a > b and a > c and b > c:
    print(c, b, a)
if a > b and b < c and a < c:
    print(b, a, c)
if a > b and a > c and b < c:
    print(b, c, a)
if a < b and c < b and b > a:
    print(a, c, b)

Submission status: Time Limit Exceeded

Solution code:
table= list(map(int,input().split()))
for i in range(2,0,-1):
    k=0
    while k < i :
        if table[k] > table[k+1] :
            table[k],table[k+1]=table[k+1],table[k]
            k+=1
print(table[0],table[1],table[2])

Submission status: Time Limit Exceeded

Solution code:
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} {1} {2}".format(abc))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def max(a,b,c):
    if a >= b and a >= c:
        return a
    if b >= a and b >= c:
        return b
    else:
        return c

def min(a,b,c):
    if a <= b and a <= c:
        return a
    if b <= a and b <= c:
        return b
    else:
        return c

def mid(a,b,c):
    if (b-a)*(c-a) <= 0:
        return a
    if (a - b) * (c - b) <= 0:
        return b
    else:
        return c


s = input()
s = s.split()
n = []

for i in s:
    n.append(int(i))

a = n[0]
b = n[1]
c = n[2]

print(min(a,b,c),mid(a,b,c),max(a,b,c))

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
if a[0]>a[1]:
    a[0],a[1]=a[1],a[0]
if a[0]>a[2]:
    a[0],a[2]=a[2],a[0]
if a[1]>a[2]:
    a[2],a[1]=a[1],a[2]
print(*a)

Submission status: Accepted

Solution code:
a = input().split()
v = 2
while int(v) >= 1:
    if int(a[int(v)-1]) < int(a[int(v)]):
        pass
    else:
        b = int(a[int(v)-1])
        a[int(v)-1] = int(a[int(v)])
        a[int(v)] = int(b)
    v = int(v) - 1

if int(a[1]) < int(a[2]):
    pass
else:
    b = int(a[1])
    a[1] = int(a[2])
    a[2] = int(b)
print('%d %d %d' % (int(a[0]),int(a[1]),int(a[2])))

Submission status: Accepted

Solution code:
hoge = list(map(int, input().split()))
ret = sorted(hoge)
print(str(ret[0])+" "+str(ret[1])+" "+str(ret[2]))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
number = [i for i in input().split()]
number.sort()
print(' '.join(number))

Submission status: Accepted

Solution code:
a = sorted(list(map(int, input().split())))
print(a[0], a[1], a[2])

Submission status: Accepted

Solution code:
s = [int(i) for i in input().split()]
s.sort()
a,b,c = s[:3]
print(a,b,c)

Submission status: Accepted

Solution code:
inp = input()
a = inp.split()
a[0] = int(a[0])
a[1] = int(a[1])
a[2] = int(a[2])
a.sort()
print(a[0],a[1],a[2])

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
#ITP1_2_C

N=input().split()
N.sort()
print(" ".join(N))

Submission status: Accepted

Solution code:
s = list(map(int, input().split()))
s.sort()
print(s[0], s[1], s[2])

Submission status: Accepted

Solution code:
inputs = map(int, input().split(' '))
print(' '.join(map(str, sorted(inputs))))

Submission status: Accepted

Solution code:
data = list(map(int,input().split()))
data.sort()
print("{0} {1} {2}".format(data[0],data[1],data[2]))

Submission status: Accepted

Solution code:
x = input().split()

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

a,b,c=x
while a> b or b > c or a > c:
    if a > b:
        a,b = b,a
    if b > c:
        b,c = c,b
    if a>c:
        a,c=c,a
print(a,b,c)

Submission status: Accepted

Solution code:
tmp = map(int, raw_input().split())
tmp.sort()
for i in tmp:
    print i,

Submission status: Accepted

Solution code:
arr = list(map(int, input().split()))
arr.sort()
print(" ".join(map(str, arr)))

Submission status: Accepted

Solution code:
a,b,c=sorted([int(x) for x in input().split()])
print(a,b,c)

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
a.sort()
print('{} {} {}'.format(a[0], a[1], a[2]))

Submission status: Accepted

Solution code:
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])
# insertion sort
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()

Submission status: Accepted

Solution code:
s = list(map(str, sorted(list(map(int, input().split())))))
print(' '.join(s))

Submission status: Accepted

Solution code:
line = list(map(int, input().split()))
print(" ".join(map(str, sorted(line))))

Submission status: Accepted

Solution code:
a = map(int, input().split())
print(*sorted(a))

Submission status: Accepted

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

for i in range(2,0,-1):
    k = 0
    while k < i:
        if table[k] > table[k+1]:
            table[k],table[k+1] = table[k+1],table[k]
        k += 1;


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

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
a.sort()
print(a[0], a[1], a[2])

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
a, b, c = sorted([a, b, c])

print(str(a), str(b), str(c))

Submission status: Accepted

Solution code:
s=input().split()
a=int(s[0])
b=int(s[1])
c=int(s[2])
num=[a,b,c]
num.sort()
print(str(num[0])+" "+str(num[1])+" "+str(num[2]))

Submission status: Accepted

Solution code:
d=raw_input().split(" ")
s=list(map(int,d))
s.sort()
a=str(s[0])
b=str(s[1])
c=str(s[2])
print a+" "+b+" "+c

Submission status: Accepted

Solution code:
abc = input()
list_abc = abc.split(" ")
min = int(list_abc[0])
mid = int(list_abc[1])
max = int(list_abc[2])

for index in range(3):
    cur_num = int(list_abc[index])
    if max < cur_num:
        list_abc[2] = str(cur_num)
        list_abc[index] = str(max)
        max = cur_num
min = int(list_abc[0])
mid = int(list_abc[1])
if mid < min :
    list_abc[0] = str(mid)
    list_abc[1] = str(min)
min = int(list_abc[0])
mid = int(list_abc[1])
print(str(min) + " " + str(mid) + " " + str(max))
max = int(list_abc[2])

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
a.sort()
print(a[0],a[1],a[2])

Submission status: Accepted

Solution code:
vs = sorted(list(map(int, input().split())))
for v in vs:
    end = '\n' if v == vs[-1] else ' '
    print(v, end=end)

Submission status: Accepted

Solution code:
a = input().split(" ")
temp = a[0]
if a[0] > a[1]:
    temp = a[1]
    a[1] = a[0]
    a[0] = temp
if a[1] > a[2]:
    temp = a[2]
    a[2] = a[1]
    a[1] = temp
if a[0] > a[1]:
    temp = a[1]
    a[1] = a[0]
    a[0] = temp
print(str(a[0]) +" " + str(a[1]) + " " + str(a[2]))

Submission status: Accepted

Solution code:
lis = list(map(int, input().split(" ")))
lis.sort()
#print(lis)
print("%s %s %s" % (lis[0], lis[1], lis[2]))