submission_id string | problem_id string | status string | code string | input string | output string | problem_description string |
|---|---|---|---|---|---|---|
s688417445 | p00018 | Accepted | ls = map(int,raw_input().split())
ls.sort(reverse=True)
print " ".join(map(str,ls)) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s821318688 | p00018 | Accepted | L=map(int,raw_input().split(" "))
print " ".join(map(str,sorted(L,reverse=True))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s492186456 | p00018 | Accepted | def int_sort(num1, num2):
return cmp(int(num1), int(num2))
n = raw_input()
a = n.split()
a = sorted(a, cmp=int_sort)
a = a[::-1]
print " ".join(a) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s329629088 | p00018 | Accepted | ls = sorted(map(int, raw_input().split()))
for i in ls[::-1]:
print i, | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s782463471 | p00018 | Accepted | for i in sorted(map(int,raw_input().split()))[::-1]:print i, | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s937409685 | p00018 | Accepted | import sys
for input_line in sys.stdin:
input_line = input_line.split()
input_line = [int(char) for char in input_line]
input_line.sort(reverse=True)
input_line = [str(num) for num in input_line]
print ' '.join(input_line) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s465526766 | p00018 | Accepted | import sys
a = input()
n = list(map(int, a.strip().split()))
n.sort()
n.reverse()
for i in range(len(n)):
print(n[i], end="")
if i < len(n)-1:
print(" ", end="")
print() | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s027918335 | p00018 | Accepted | x = map(int, raw_input().split())
x.sort()
x.reverse()
output = ''
for num in x:
output += str(num) + ' '
print output.strip() | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s167173431 | p00018 | Accepted | l=map(int,raw_input().split())
l.sort()
for i in l[::-1]:
print i,
print | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s327958315 | p00018 | Accepted | l = [int(i) for i in input().split()]
l.sort()
l.reverse()
print(' '.join([str(i) for i in l])) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s721059630 | p00018 | Accepted | from math import *
PI = 3.1415926535898
while True:
try:
n = map(int, raw_input().strip().split(' '))
n.sort()
ans = ""
c = False
for x in reversed(n):
if c:
ans += ' '
c = True
ans += str(x)
print ans
except EOFError:
break | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s858066147 | p00018 | Accepted | print(' '.join(map(str, sorted(map(int, input().split()), reverse=True)))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s239751949 | p00018 | Accepted | def sort(num):
l = len(num)
for i in range(0,l):
for j in range(0,l-i-1):
if num[j] < num[j+1]:
temp = num[j]
num[j] = num[j+1]
num[j+1]=temp
print(num[0],end='')
for i in range(1,len(num)-1):
print('',num[i],end='')
print('',num[i+1])
a , b , c , d , e = map(int,input().split())
num = []
num.append(a)
num.append(b)
num.append(c)
num.append(d)
num.append(e)
sort(num) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s237644109 | p00018 | Accepted | import sys
line = sys.stdin.readline()
line = line.split(" ")
inp = []
for i in line:
inp.append(int(i))
inp.sort()
inp.reverse()
for i in range(len(inp)):
if i<len(inp)-1:
print (inp[i], end=" ")
else:
print (inp[i]) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s404685197 | p00018 | Accepted | #!/usr/bin/env python
# -*- coding: utf-8 -*-
a = map(int, raw_input().split(" "))
a.sort(reverse = True)
for val in a:
print val, | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s897509354 | p00018 | Accepted | l = [int(s) for s in raw_input().split()]
l = [str(s) for s in sorted(l, reverse=True)]
print ' '.join(l) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s255804954 | p00018 | Accepted | print(*sorted(map(int, input().split()), reverse=True)) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s850538243 | p00018 | Accepted | #! -*- coding:utf-8 -*-
nums = map(int, raw_input().split())
nums_sort = sorted(nums,reverse=True)
ans = " ".join(map(str,nums_sort))
print ans | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s444605304 | p00018 | Accepted | #coding:utf-8
l = map(int, raw_input(). split())
l = sorted(l)
print l[4],l[3],l[2],l[1],l[0] | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s395044634 | p00018 | Accepted | print(' '.join(map(str,sorted(list(map(int,input().split())))[::-1]))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s051681325 | p00018 | Accepted | a=sorted(map(int,raw_input().split()))[::-1]
print("%d %d %d %d %d"%tuple(a)) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s252403100 | p00018 | Accepted | #coding:utf-8
l = map(int, raw_input(). split())
l = sorted(l, reverse=True)
print("%d %d %d %d %d" % (l[0], l[1], l[2], l[3], l[4])) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s990022690 | p00018 | Accepted | A=[int(i) for i in input().split()]
A.sort(reverse=True)
print(" ".join(map(str,A))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s922310415 | p00018 | Accepted | #encoding=utf-8
num = map(int, raw_input().split())
num.sort()
num = num[::-1]
for i in xrange(len(num)):
print num[i], | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s353611439 | p00018 | Accepted | #coding:utf-8
l = map(int, raw_input(). split())
l.sort()
l.reverse()
for i in xrange(len(l)):
print(l[i]), | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s907628891 | p00018 | Accepted | A=list(map(int, input().split()))
A.sort()
A.reverse()
print(*A) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s549138680 | p00018 | Accepted | # -*- coding: utf-8 -*-
import sys
def merge(A, left, mid, right):
n1 = mid-left
n2 = right-mid
L = [0]*(n1+1)
R = [0]*(n2+1)
for i in range(n1):
L[i] = A[left+i]
for i in range(n2):
R[i] = A[mid+i]
L[n1] = R[n2] = sys.maxint
i = j = 0
for k in range(left, right):
if L[i] <= R[j]:
A[k] = L[i]
i += 1
else:
A[k] = R[j]
j += 1
def mergeSort(A, left, right):
if left+1 < right:
mid = (left+right)/2
mergeSort(A, left, mid)
mergeSort(A, mid, right)
merge(A, left, mid, right)
A = map(int, raw_input().split())
mergeSort(A, 0, 5)
print " ".join(map(str, A[::-1])) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s663604060 | p00018 | Accepted | numbers = list(map(int, input().split()))
numbers.sort()
numbers.reverse()
print(' '.join(map(str, numbers))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s023026787 | p00018 | Accepted | a = list(map(int, input().split()))
a.sort()
print(*a[::-1]) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s003944826 | p00018 | Accepted | n=map(int,raw_input().split())
n.sort()
n.reverse()
n=map(str,n)
print(" ".join(n)) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s885944640 | p00018 | Accepted | l = list(map(int, input().split()))
l.sort()
l.reverse()
sl = list(map(str, l))
print(" ".join(sl)) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s245096271 | p00018 | Accepted | print(" ".join(map(str, reversed(sorted(map(int, input().split())))))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s154504685 | p00018 | Accepted | s = input().split()
arr = [int(s[i]) for i in range(5)]
arr.sort(reverse=True)
for i in range(len(arr)):
if i != len(arr)-1:
print(arr[i], end=" ")
else:
print(arr[i]) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s282590924 | p00018 | Accepted | print(' '.join(map(str, sorted(list(map(int, input().split())), reverse=True)))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s602580218 | p00018 | Accepted | data = raw_input().split(' ')
data = map(str, sorted(map(int, data))[::-1])
print ' '.join(data) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s530438208 | p00018 | Accepted | # -*- coding: utf-8 -*-
l = [int(e) for e in input().split()]
print(' '.join(str(e) for e in sorted(l, reverse=True))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s321552386 | p00018 | Accepted | l = sorted(map(int, input().split()), reverse=True)
print(' '.join(map(str, l))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s740644055 | p00018 | Accepted | x = map(int, raw_input().split(" "))
x.sort()
for i in range(5):
print x[4-i], | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s924481105 | p00018 | Accepted | numlist = [eval(item) for item in input().split()]
numlist.sort()
numlist.reverse()
for i in range(len(numlist)):
print(numlist[i], end = '')
if i != len(numlist) - 1:
print(end = ' ')
print() | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s484369158 | p00018 | Accepted | numlist = [eval(item) for item in input().split()]
numlist.sort()
numlist.reverse()
for i in range(len(numlist)):
print(numlist[i], end = '')
if i != len(numlist) - 1:
print(end = ' ')
print() | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s795294878 | p00018 | Accepted | n = [int(x) for x in input().split()]
print(*sorted(n, reverse=True)) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s437892477 | p00018 | Accepted | print " ".join(map(str, sorted(map(int, raw_input().split()), reverse=True))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s715312613 | p00018 | Accepted | print(' '.join(map(str, reversed(sorted(map(int, input().split())))))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s321035387 | p00018 | Accepted | a = list(map(int,input().split()))
a.sort(reverse = True);
print(*a) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s511247919 | p00018 | Accepted | print ' '.join(map(str, sorted(map(int, raw_input().split()))[::-1])) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s143537124 | p00018 | Accepted | line = input().split()
print(' '.join(sorted(line, key=int, reverse=True))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s475826300 | p00018 | Accepted | Num = list(map(int,input().split()))
Num.sort()
Num = Num[::-1]
for i in range(len(Num)):
if i == len(Num)-1:
print(Num[i])
else:
print(Num[i],end = ' ') | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s572662344 | p00018 | Accepted | print(" ".join(list(map(str, sorted(list(map(int, input().split())), reverse=True))))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s395730627 | p00018 | Accepted | if __name__ == '__main__':
# ??????????????\???
data = [int(x) for x in input().split(' ')]
# ??´????????????
data.sort(reverse=True)
# ???????????????
print(*data) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s202377907 | p00018 | Accepted | a=sorted([int(i) for i in input().split()],reverse=True)
print(" ".join(map(str,a))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s169340098 | p00018 | Accepted | # -*- coding: utf-8 -*-
A=[int(i) for i in input().split()]
A.sort()
print("{} {} {} {} {}".format(A[4],A[3],A[2],A[1],A[0])) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s357497785 | p00018 | Accepted | # -*- coding:utf-8 -*-
data = input()
n = [0]*5
n[0],n[1],n[2],n[3],n[4] = map(int,data.split(' '))
count = 0
while True:
for i in range(len(n)-1):
if n[i] < n[i+1]:
tmp = n[i]
n[i] = n[i+1]
n[i+1] = tmp
count += 1
if count == 5:
break
for i in range(len(n)-1):
print(n[i],end=' ')
print(n[len(n)-1]) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s310492553 | p00018 | Accepted | a=sorted([int(i) for i in input().split()],reverse=True)
print(" ".join([str(i) for i in a])) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s849028088 | p00018 | Accepted | a=sorted([int(i) for i in input().split()],reverse=True)
print(*a) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s170303070 | p00018 | Accepted | print(*sorted([int(i) for i in input().split()],reverse=True)) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s679896771 | p00018 | Accepted | def to_i(e):
return int(e)
l = map(to_i, raw_input().rstrip().split(" "))
l.sort()
l.reverse()
print "{} {} {} {} {}".format(l[0], l[1], l[2], l[3], l[4]) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s771532430 | p00018 | Accepted | print(*sorted(map(int,input().split()))[::-1]) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s166202402 | p00018 | Accepted | nums = list(map(int, input().split()))
nums.sort()
nums.reverse()
print(*nums) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s727327060 | p00018 | Accepted | m=map(int,input().split())
s = sorted(m)
s.reverse()
print(*s) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s385669609 | p00018 | Accepted | import sys
import math as mas
a=list(map(int,input().split()))
a.sort()
a.reverse()
print(*a)
#for i in sys.stdin:
# a,b=map(int,i.split())
# print(gcd(a,b),lcm(a,b)) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s343127068 | p00018 | Accepted | import sys
import math as mas
print(*reversed(sorted(list(map(int,input().split())))))
#for i in sys.stdin:
# a,b=map(int,i.split())
# print(gcd(a,b),lcm(a,b)) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s313510312 | p00018 | Accepted | # -*- coding: utf-8 -*-
import sys
import os
lst = list(map(int, input().split()))
lst.sort(reverse=True)
print(*lst) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s153816500 | p00018 | Accepted | a = [int(temp) for temp in input().split()]
a.sort(reverse = True)
a = [str(temp) for temp in a]
print(' '.join(a)) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s394942334 | p00018 | Accepted |
list = list(map(int,input().split(' ')))
list.sort(reverse = True);
print(*list) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s393205939 | p00018 | Accepted | import sys
from functools import reduce
l = sorted(map(int,sys.stdin.readline().rstrip().split(' ')))[::-1]
print(' '.join(map(str,l))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s377259339 | p00018 | Accepted | def main():
numbers = map(int, input().split())
numbers = sorted(numbers, reverse=True)
print(*numbers)
if __name__ == "__main__":
main() | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s094860536 | p00018 | Accepted | print(" ".join(map(str,sorted(map(int,input().split()))[::-1]))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s832074292 | p00018 | Accepted | l = list(map(int,input().split()))
l.sort(reverse=True)
l = [str(i) for i in l]
print(' '.join(l)) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s482800358 | p00018 | Accepted | def sort(A):
N=len(A)
for i in range(N):
for j in range(N-i-1):
if A[j] < A[j+1]:
temp=A[j+1]
A[j+1]=A[j]
A[j]=temp
return A
A=list(map(int,input().split()))
print(" ".join(list(map(str,sort(A))))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s630246093 | p00018 | Accepted | ls = list(map(int,input().split()))
ls.sort()
ls.reverse()
print(*ls) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s005366876 | p00018 | Accepted | print(" ".join(map(str, sorted(list(map(int, input().split())), reverse=True)))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s141114408 | p00018 | Accepted | ls = list(map(int, input().split()))
ls.sort()
ls.reverse()
print(*ls) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s130282252 | p00018 | Accepted | a = [int(i) for i in input().split()]
sort = sorted(a, reverse=True)
for i in range(5):
if i == 4:
print(sort[i])
else:
print(sort[i], end = " ")
| 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s566333259 | p00018 | Accepted | user = input()
a = []
b = []
b = user.split()
for i in range(5):
a.append(int(b[i]))
for j in range(4):
for k in range(j+1, 5): # j<k
if a[j] < a[k]:
tmp = a[j]
a[j] = a[k]
a[k] = tmp
for j in range(5):
if j == 4:
print(a[j])
else:
print(str(a[j]), end=" ") | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s855200525 | p00018 | Accepted | def main():
a = list(map(int, input().split()))
a.sort(reverse = True)
for x in range(len(a)):
if x == len(a) - 1:
print(a[x])
else:
print(a[x], end = " ")
if __name__ == "__main__":
main() | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s455004004 | p00018 | Accepted | # Aizu Problem 0018: Sorting Five Numbers
#
import sys, math, os
# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
sys.stdin = open("sample-input.txt", "rt")
print(' '.join([str(_) for _ in sorted([int(__) for __ in input().split()], reverse=True)])) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s075134562 | p00018 | Accepted | import sys
def SortingFiveNumbers():
for line in sys.stdin:
num=list(map(int,line.split()))
num.sort()
num.reverse()
print(' '.join(map(str,num)))
SortingFiveNumbers() | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s921282172 | p00018 | Accepted |
if __name__ == '__main__':
a = list(map(int,input().split()))
a.sort(reverse = True)
print(*a) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s908391614 | p00018 | Accepted | # coding=utf-8
number_list = list(map(int, input().split()))
number_list.sort()
number_list.reverse()
print(' '.join(map(str, number_list))) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s805473304 | p00018 | Accepted | x=map(int,input().split())
y=sorted(x,reverse=True)
print(*y) | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s057751053 | p00018 | Accepted | # -*- coding:utf-8 -*-
a=map(int,raw_input().split(" "))
a.sort(reverse=True)
for val in a:
print val, | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s084880241 | p00018 | Accepted | line = [int(i) for i in input().split()]
line.sort(reverse=True)
for i in range(5):
print(line[i], end=" " if i != 4 else "\n") | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s731321905 | p00018 | Accepted | def main():
A = list(map(int,input().split()))
A.sort()
A.reverse()
print(*A)
if __name__ == '__main__':
main() | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s151256097 | p00018 | Accepted | a = list(map(int, input().split()))
a.sort()
a.reverse()
print(*a)
| 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s118176601 | p00018 | Accepted | l = map(int,raw_input().split())
l.sort()
l.reverse()
l = list(map(str, l))
output = ' '.join(l)
print output
| 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s865719022 | p00018 | Accepted | print(*sorted(map(int, input().split()))[::-1])
| 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s029050476 | p00018 | Accepted | a=[int(i) for i in input().split()]
a.sort(reverse=True)
print(*a)
| 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s447883124 | p00018 | Accepted | A = [int(i) for i in input().split()]
A.sort()
A.reverse()
print(A[0],A[1],A[2],A[3],A[4])
| 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s331300795 | p00018 | Accepted | print(*sorted(map(int,input().split()))[::-1])
| 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s498396980 | p00018 | Accepted | print(*reversed(sorted(map(int,input().split()))))
| 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s621386061 | p00018 | Accepted | print(*sorted(list(map(int,input().split())))[::-1])
| 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s721267475 | p00018 | Accepted | print(" ".join(map(str,sorted([int(i) for i in input().split()],reverse=True))))
| 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s358529667 | p00018 | Accepted | print(" ".join(map(str, sorted(list(map(int, input().split())), reverse = True))))
| 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s440980669 | p00018 | Accepted | print(" ".join(map(str,sorted(list(map(int, input().split())), reverse=True))))
| 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s643964924 | p00018 | Accepted | print(" ".join(map(str,sorted(map(int,input().split()),reverse=True))))
| 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s401575938 | p00018 | Accepted | # AOJ 0018 Sorting Five Numbers
# Python3 2018.6.11 bal4u
a = list(map(int, input().split()))
a.sort()
print(*a[::-1])
| 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s555191069 | p00018 | Accepted | a = map(int,raw_input().split())
a.sort()
a.reverse()
for i in range(len(a)):
print a[i], | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s724785039 | p00018 | Accepted | list = map(int, raw_input().split())
list.sort(reverse=True)
for i in list:
print i, | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s629233225 | p00018 | Accepted | lst = map(int,raw_input().split())
lst.sort()
lst.reverse()
print lst[0],lst[1],lst[2],lst[3],lst[4] | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
s156636837 | p00018 | Accepted | for i in sorted(map(int,raw_input().split()),reverse=True):
print i, | 3 6 9 7 5
| 9 7 6 5 3
|
<H1>Sorting Five Numbers</H1>
<p>
Write a program which reads five numbers and sorts them in descending order.
</p>
<H2>Input</H2>
<p>
Input consists of five numbers <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var> and <var>e</var> (-100000 ≤ <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> ≤ 100000). The five numbers are separeted by a space.
</p>
<H2>Output</H2>
<p>
Print the ordered numbers in a line. Adjacent numbers should be separated by a space.
</p>
<H2>Sample Input</H2>
<pre>
3 6 9 7 5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
9 7 6 5 3
</pre>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.