submission_id
string
problem_id
string
status
string
code
string
input
string
output
string
problem_description
string
s538291959
p00018
Accepted
x = map(int, raw_input().split(' ')) x.sort() for i in range(len(x)): print x[-(i+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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s777417670
p00018
Accepted
#!/usr/bin/python def datasets(): s = raw_input().strip() yield [int(w) for w in s.split()] def main(): for ds in datasets(): print ' '.join([str(n) for n in sorted(ds, reverse=True)]) 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s532205696
p00018
Accepted
print ' '.join(map(str,list(reversed(sorted(map(int,raw_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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s069243065
p00018
Accepted
print " ".join(map(str, sorted(map(int, raw_input().strip().split()), lambda x, y: y - x)))
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s635014477
p00018
Accepted
for a in reversed(sorted(map(int,raw_input().split()))):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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s926961776
p00018
Accepted
print " ".join(map(str, sorted(map(int, raw_input().strip().split(" ")), lambda x , y: y - x)))
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s235015391
p00018
Accepted
l = map(int, raw_input().strip().split(" ")); print " ".join(map(str, sorted(l, lambda x, y: y - x)));
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s552578934
p00018
Accepted
from __future__ import (absolute_import, division, print_function, unicode_literals) from sys import stdin gen = (int(s) for s in stdin.readline().split()) print(' '.join(str(i) for i in sorted(gen, 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s458398038
p00018
Accepted
x = map(int,raw_input().split(' ')) x.sort() x.reverse() output = '' for val in x: output += str(val) + ' ' 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s497556185
p00018
Accepted
''' Created on Mar 22, 2013 @author: wukc ''' from sys import stdin a=map(int,stdin.readline().split()) a.sort() 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s492069081
p00018
Accepted
import sys #input_file = open(sys.argv[1], "r") #for line in input_file: for line in sys.stdin: nums = map(int, line.split(' ')) nums.sort(lambda x, y: cmp(y, x)) # print ' '.join(map((lambda x: str(x)), nums)) print ' '.join(map(str, 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s754956136
p00018
Accepted
if __name__ == "__main__": a = map(int,raw_input().split()) a.sort() a.reverse() for i in a: 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s778581153
p00018
Accepted
x = sorted(map(int, raw_input().split()), reverse=True) for e in x: print e, 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s418905700
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s024188733
p00018
Accepted
#!/usr/bin/python line = raw_input() l = map(int, line.strip().split()) l.sort() l.reverse() l = map(str, l) out = ' '.join(l) print out
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s845315128
p00018
Accepted
x=sorted(map(int, raw_input().split())) for e in x[::-1]: print e, 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s357362930
p00018
Accepted
x=sorted(map(int,raw_input().split()))[::-1] for e in x: print e, 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s259710823
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s264784654
p00018
Accepted
for e in sorted(map(int,raw_input().split()))[::-1]: print e,
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s493104511
p00018
Accepted
x=sorted(map(int,raw_input().split()))[::-1] for e in x: print e,
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s154236701
p00018
Accepted
x=sorted(map(int,raw_input().split()))[::-1] for e in x:print e,
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s406605840
p00018
Accepted
x=sorted(map(int,raw_input().split()))[::-1] for e in x: print e,
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s489180699
p00018
Accepted
import sys lineNumber = 0 #for line in ["3 6 9 7 5"]: for line in sys.stdin.readlines(): lineNumber += 1 # get data List = map(int, line.strip().split(" ")) List.sort() print "%d %d %d %d %d" % (List[4], List[3], List[2], List[1], List[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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s000815105
p00018
Accepted
a = map(int, raw_input().split()) a.sort() a.reverse() 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s519288504
p00018
Accepted
print reduce(lambda x,y:x+y, map(lambda x:str(x)+' ', sorted(map(int, raw_input().split()))[::-1])).rstrip()
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s905273076
p00018
Accepted
nums = map(int, raw_input().split()) nums.sort(reverse=True) print " ".join(map(str, 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s767316210
p00018
Accepted
import string print string.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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s033304725
p00018
Accepted
import string print string.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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s801248324
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s955644466
p00018
Accepted
print ' '.join([str(x) for x in sorted([int(x) for x in 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s640950322
p00018
Accepted
ns = map(int, raw_input().split(" ")) count = 0 for loop in xrange(4): for i in xrange(4): if ns[i] < ns[i+1]: ns[i] , ns[i+1] = ns[i+1] , ns[i] print ns[0],ns[1],ns[2],ns[3],ns[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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s404012695
p00018
Accepted
import sys for s in sys.stdin: arr = map(int, s.split(' ')) arr = sorted(arr, reverse=True) arr = map(str, arr) print " ".join(arr)
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s100678697
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s449663272
p00018
Accepted
l = input().split(' ') for i in range(5): l[i] = int(l[i]) l.sort(reverse = True) print(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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s638029919
p00018
Accepted
# -*- coding: utf-8 -*- import math 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s641053973
p00018
Accepted
s = list(map(int, input().split())) print(" ".join(map(str, sorted(s, 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s331206285
p00018
Accepted
s = list(map(int, input().split())) s.sort(reverse = True) 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s224071799
p00018
Accepted
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s034259531
p00018
Accepted
int_list = sorted(list(map(int,input().split()))) #標準入力してリスト化して小さい順に並べる int_list.reverse() #リストの順番を逆にする l = [str(a) for a in int_list] #リストのタイプをstr化する s = ' '.join(l) #リストを連結する 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s253693813
p00018
Accepted
*S, = map(int, input().split()) S.sort(reverse=1) 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s976901360
p00018
Accepted
numList = list(map(int, input().split())) numList.sort(reverse=True) print(' '.join(map(str, numList)))
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s290336187
p00018
Accepted
s = list(map(int,input().split())) print(*sorted(s)[::-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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s645722319
p00018
Accepted
a = list(map(int,input().split())) a.sort(reverse = True) 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s520197895
p00018
Accepted
a = [ int(x) for x in input().strip().split() ] a = sorted(a, reverse=True) for i in range(len(a)): if i > 0: print(" ", end='') print(a[i], 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s438851132
p00018
Accepted
while 1: try: n = (int(x) for x in input().split()) except:break n = sorted(n,reverse=True) for i in range(5): if i : print(" ", end="") print(n[i],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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s792115529
p00018
Accepted
N = list(map(int, input().split())) N.sort() for i in range(5) : if(i != 4) : print(N[4 - i], end = " ") else : print(N[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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s783550438
p00018
Accepted
L = [int(x) for x in input().split()] L.sort(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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s709044076
p00018
Accepted
l = list(map(int, input().split())) l.sort(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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s374092996
p00018
Accepted
s = list(map(int, input().split())) s.sort(reverse=1) for i in range(4): print(s[i], end=" ") print(s[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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s502072109
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s044011329
p00018
Accepted
a,b,c,d,e=map(int,input().split()) list=[a,b,c,d,e] list.sort() list.reverse() s = list 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s202444699
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s433660053
p00018
Accepted
# coding=utf-8 ### ### for atcorder program ### import sys import math # math class class mymath: ### pi pi = 3.14159265358979323846264338 ### Prime Number def pnum_eratosthenes(self, n): ptable = [0 for i in range(n+1)] plist = [] for i in range(2, n+1): if ptable[i]==0: plist.append(i) for j in range(i+i, n+1, i): ptable[j] = 1 return plist ### GCD def gcd(self, a, b): if b == 0: return a return self.gcd(b, a%b) ### LCM def lcm(self, a, b): return (a*b)//self.gcd(a,b) ### Mat Multiplication def mul(self, A, B): ans = [] for a in A: c = 0 for j, row in enumerate(a): c += row*B[j] ans.append(c) return ans mymath = mymath() ### output class class output: ### list def list(self, l): l = list(l) #print(" ", end="") for i, num in enumerate(l): print(num, end="") if i != len(l)-1: print(" ", end="") print() output = output() ### input sample #i = input() #N = int(input()) #A, B, C = [x for x in input().split()] #N, K = [int(x) for x in input().split()] #inlist = [int(w) for w in input().split()] #R = float(input()) #A.append(list(map(int,input().split()))) #for line in sys.stdin.readlines(): # x, y = [int(temp) for temp in line.split()] #abc list #abc = [chr(ord('a') + i) for i in range(26)] ### output sample #print("{0} {1} {2:.5f}".format(A//B, A%B, A/B)) #print("{0:.6f} {1:.6f}".format(R*R*math.pi,R*2*math.pi)) #print(" {}".format(i), end="") def get_input(): N = [] while True: try: #N.append(input()) N.append(int(input())) except EOFError: break return N N = [int(x) for x in input().split()] N = sorted(N) S = '' for i in N[::-1]: S += str(i)+' ' print(S[:-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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s788037843
p00018
Accepted
input_list = list(map(int, input().split())) input_list.sort(reverse=True) print(' '.join(map(str, input_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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s392206424
p00018
Accepted
if __name__ == '__main__': 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s179527078
p00018
Accepted
a = list(map(int, input().split())) a.sort() a.reverse() for i in range(5): if i == 4: print(a[i]) else: print(a[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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s721384690
p00018
Accepted
a,b,c,d,e = map(int, input().split()) while True: if a < b: b,a = a,b elif b < c: c,b = b,c elif c < d: d,c = c,d elif d < e: e,d = d,e else: print(a,b,c,d,e) 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s464137395
p00018
Accepted
lst = map(int, raw_input().split()) lst.sort() lst.reverse() ans = str(lst[0]) for i in range(1, 5): ans = ans + ' ' + str(lst[i]) 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s792637775
p00018
Accepted
num_lst = list(map(int,input().split())) print(*reversed(sorted(num_lst)),sep=' ')
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s902410204
p00018
Accepted
lst = sorted(list(map(int, input().split())), reverse=True) for i in range(len(lst)): if i != len(lst) - 1: print(lst[i], end = " ") else: print(lst[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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s573959871
p00018
Accepted
a = [] a = [int(i) for i in input().split()] a.sort(reverse=True) b = " ".join([str(i) for i in a]) print(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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s002800167
p00018
Accepted
a = list(map(int,(input().split()))) a = sorted(a,reverse=True) for i in range(0,4): print(a[i],end=' ') print(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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s148280009
p00018
Accepted
print(*sorted([int(x) for x in 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s168284569
p00018
Accepted
num = list(map(int, input().split())) num.sort(reverse=True) for i, n in enumerate(num): if i == len(num) - 1: print(n) else: print(str(n) + " ", 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s389084735
p00018
Accepted
a = sorted(list(map(int, 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s161722951
p00018
Accepted
if __name__ == '__main__': a = list(map(int, input().split())) print(*sorted(a, 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s882049850
p00018
Accepted
xs = sorted( [int(x) for x in input().split()] )[::-1] print( ' '.join( [str(x) for x in xs] ) )
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s339514005
p00018
Accepted
print(" ".join(str(e) for e in 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s302346652
p00018
Accepted
def run(): numbers = sorted(list(map(int, input().split())), reverse=True) print(' '.join([str(n) for n in numbers])) if __name__ == '__main__': run()
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s601705868
p00018
Accepted
print(*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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s080445918
p00018
Accepted
# Sorting Five Numbers s = list(map(int, input().split())) print(*sorted(s,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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s610786558
p00018
Runtime Error
n = map(int, raw_input().split()) n.sort(revers=True) for i in n: 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s966415834
p00018
Runtime Error
while True: a = list(map(int, (input().split()))) a = sorted(a, reverse=True) for i in range(4): print(a[i],end=' ') print(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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s604514956
p00018
Runtime Error
s=list(map(int, input().split())) s.sort() s.reverse() for i in s: print(i, end="") if i != s[-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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s430771345
p00018
Runtime Error
import sys for input_line in sys.stdin: input_line = raw_input().split() input_line.sort(reverse=True) 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s240986079
p00018
Runtime Error
a=sorted(map(int,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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s192916890
p00018
Runtime Error
a=map(int,input().split()) a.sort() a=a[::-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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s811998685
p00018
Runtime Error
n=map(str,raw_imput().split()) n.sort() n.reverse() 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s912171315
p00018
Runtime Error
n=map(int,raw_imput().split()) ans=[] n.sort() n.reverse() for i in n: ans.append(str(i)) print(' '.join(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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s733073956
p00018
Runtime Error
l = list(map(int, input().split)) l.sort() l.reverse() 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s187808381
p00018
Runtime Error
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s640993559
p00018
Runtime Error
l = list(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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s738794311
p00018
Runtime Error
data = raw_input().split(' ') data = 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s606484759
p00018
Runtime Error
# -*- coding: utf-8 -*- print(' '.join(sorted([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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s882941527
p00018
Runtime Error
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s719781772
p00018
Runtime Error
a=sorted([int(i) for i in input().split()],reverse=True) 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s242244710
p00018
Runtime Error
print(" ".join(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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s371735785
p00018
Runtime Error
print(*sorted(map(int, input().spilt()))[::-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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s177926464
p00018
Runtime Error
print(*reversed(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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s721529353
p00018
Runtime Error
import sys a = map(int, sys.stdin.readline().strip().split()) a.sort() a.reverse() 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s016721112
p00018
Runtime Error
" ".join(map(str, sorted(map(int, raw_input().strip().sprit(" ")), lambda x , y: y - x)))
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s874688006
p00018
Runtime Error
print " ".join(map(str, sorted(map(int, raw_input().strip().sprit(" ")), lambda x , y: y - x)))
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s203746699
p00018
Runtime Error
l = map(int, raw_input().strip().split(" ")); print " ".join(sorted(l, lambda x, y: y - x));
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s665291406
p00018
Runtime Error
''' Created on Mar 22, 2013 @author: wukc ''' from sys import stdin a=map(int,stdin.readline().split()) a.sort() print(" ".join(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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s592394521
p00018
Runtime Error
#!/usr/bin/python line = raw_input() l = map(int, line.strip().split()) l.sort() l.reverse() out = ' '.join(l) print out
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s212785537
p00018
Runtime Error
for e in sorted(map(int,input().split()))[::-1]: print e, 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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s960017297
p00018
Runtime Error
import sys lineNumber = 0 #for line in [ "xlmw mw xli tmgxyvi xlex m xsso mr xli xvmt." ]: for line in sys.stdin.readlines(): lineNumber += 1 # get data List = map(int, line.strip().split(",")) List = List.sort().reverse() print "%d %d %d %d %d" % (List[0], List[1], List[2], List[3], List[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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s664875570
p00018
Runtime Error
import sys lineNumber = 0 #for line in [ "xlmw mw xli tmgxyvi xlex m xsso mr xli xvmt." ]: for line in sys.stdin.readlines(): lineNumber += 1 # get data List = map(int, line.strip().split()) List = List.sort().reverse() print "%d %d %d %d %d" % (List[0], List[1], List[2], List[3], List[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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s250283134
p00018
Runtime Error
print(' '.join(map(str, sorted(map(int, input())))))
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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>
s697375727
p00018
WA: Presentation Error
s = input() s = s.split() n = [] for i in s: n.append(int(i)) isSorted = False while(not isSorted): isSorted = True for i in range(4): if n[i] < n[i + 1]: temp = n[i] n[i] = n[i + 1] n[i + 1] = temp isSorted = False for i in n: print(i,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 &le; <var>a</var>, <var>b</var>, <var>c</var>, <var>d</var>,<var>e</var> &le; 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>