s_id
stringlengths 10
10
| p_id
stringlengths 6
6
| u_id
stringlengths 10
10
| date
stringlengths 10
10
| language
stringclasses 1
value | original_language
stringclasses 11
values | filename_ext
stringclasses 1
value | status
stringclasses 1
value | cpu_time
int64 0
100
| memory
stringlengths 4
6
| code_size
int64 15
14.7k
| code
stringlengths 15
14.7k
| problem_id
stringlengths 6
6
| problem_description
stringlengths 358
9.83k
| input
stringlengths 2
4.87k
| output
stringclasses 807
values | __index_level_0__
int64 1.1k
1.22M
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s024188733
|
p00018
|
u523886269
|
1381369163
|
Python
|
Python
|
py
|
Accepted
| 20
|
4204
| 138
|
#!/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
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,702
|
s576793022
|
p00018
|
u093607836
|
1382333933
|
Python
|
Python
|
py
|
Accepted
| 10
|
4192
| 105
|
l = [int(s) for s in raw_input().split()]
l = [str(s) for s in sorted(l, reverse=True)]
print ' '.join(l)
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,703
|
s845315128
|
p00018
|
u912237403
|
1389473907
|
Python
|
Python
|
py
|
Accepted
| 20
|
4188
| 76
|
x=sorted(map(int, raw_input().split()))
for e in x[::-1]:
print e,
print
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,704
|
s357362930
|
p00018
|
u912237403
|
1389474100
|
Python
|
Python
|
py
|
Accepted
| 10
|
4188
| 75
|
x=sorted(map(int,raw_input().split()))[::-1]
for e in x:
print e,
print
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,705
|
s259710823
|
p00018
|
u912237403
|
1389475043
|
Python
|
Python
|
py
|
Accepted
| 20
|
4184
| 67
|
print " ".join(map(str,sorted(map(int,raw_input().split()))[::-1]))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,706
|
s264784654
|
p00018
|
u912237403
|
1389475736
|
Python
|
Python
|
py
|
Accepted
| 20
|
4188
| 65
|
for e in sorted(map(int,raw_input().split()))[::-1]:
print e,
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,707
|
s493104511
|
p00018
|
u912237403
|
1389475850
|
Python
|
Python
|
py
|
Accepted
| 10
|
4188
| 69
|
x=sorted(map(int,raw_input().split()))[::-1]
for e in x:
print e,
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,708
|
s154236701
|
p00018
|
u912237403
|
1389475993
|
Python
|
Python
|
py
|
Accepted
| 20
|
4188
| 64
|
x=sorted(map(int,raw_input().split()))[::-1]
for e in x:print e,
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,709
|
s406605840
|
p00018
|
u912237403
|
1389476146
|
Python
|
Python
|
py
|
Accepted
| 10
|
4188
| 65
|
x=sorted(map(int,raw_input().split()))[::-1]
for e in x: print e,
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,710
|
s489180699
|
p00018
|
u230836528
|
1392306823
|
Python
|
Python
|
py
|
Accepted
| 20
|
4200
| 266
|
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])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,711
|
s000815105
|
p00018
|
u633068244
|
1393365288
|
Python
|
Python
|
py
|
Accepted
| 20
|
4188
| 82
|
a = map(int, raw_input().split())
a.sort()
a.reverse()
print " ".join(map(str, a))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,712
|
s519288504
|
p00018
|
u858885710
|
1393945620
|
Python
|
Python
|
py
|
Accepted
| 20
|
4288
| 108
|
print reduce(lambda x,y:x+y, map(lambda x:str(x)+' ', sorted(map(int, raw_input().split()))[::-1])).rstrip()
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,713
|
s905273076
|
p00018
|
u193025715
|
1395392912
|
Python
|
Python
|
py
|
Accepted
| 20
|
4192
| 91
|
nums = map(int, raw_input().split())
nums.sort(reverse=True)
print " ".join(map(str, nums))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,714
|
s767316210
|
p00018
|
u023846178
|
1395817929
|
Python
|
Python
|
py
|
Accepted
| 20
|
4372
| 94
|
import string
print string.join(map(str, sorted(map(int, raw_input().split()), reverse=True)))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,715
|
s033304725
|
p00018
|
u023846178
|
1395818129
|
Python
|
Python
|
py
|
Accepted
| 20
|
4372
| 86
|
import string
print string.join(map(str, sorted(map(int, raw_input().split())))[::-1])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,716
|
s801248324
|
p00018
|
u023846178
|
1395818191
|
Python
|
Python
|
py
|
Accepted
| 20
|
4188
| 69
|
print ' '.join(map(str, sorted(map(int, raw_input().split())))[::-1])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,717
|
s955644466
|
p00018
|
u023846178
|
1395818445
|
Python
|
Python
|
py
|
Accepted
| 10
|
4188
| 85
|
print ' '.join([str(x) for x in sorted([int(x) for x in raw_input().split()])[::-1]])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,718
|
s078608211
|
p00018
|
u246033265
|
1396615943
|
Python
|
Python
|
py
|
Accepted
| 10
|
4188
| 69
|
print ' '.join(map(str, sorted(map(int, raw_input().split()))[::-1]))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,719
|
s640950322
|
p00018
|
u881567576
|
1398149408
|
Python
|
Python
|
py
|
Accepted
| 20
|
4212
| 186
|
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]
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,720
|
s404012695
|
p00018
|
u708217907
|
1398382896
|
Python
|
Python
|
py
|
Accepted
| 10
|
4192
| 140
|
import sys
for s in sys.stdin:
arr = map(int, s.split(' '))
arr = sorted(arr, reverse=True)
arr = map(str, arr)
print " ".join(arr)
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,721
|
s100678697
|
p00018
|
u491763171
|
1400482521
|
Python
|
Python
|
py
|
Accepted
| 20
|
4188
| 77
|
print ' '.join(map(str, sorted(map(int, raw_input().split()), reverse=True)))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,722
|
s286023697
|
p00018
|
u436634575
|
1401141367
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6724
| 74
|
print(' '.join(map(str, sorted(map(int, input().split()), reverse=True))))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,723
|
s449663272
|
p00018
|
u618672141
|
1403749177
|
Python
|
Python3
|
py
|
Accepted
| 40
|
6724
| 121
|
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])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,724
|
s638029919
|
p00018
|
u986283797
|
1596616923
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5644
| 103
|
# -*- coding: utf-8 -*-
import math
a=list(map(int, input().split()))
a.sort()
a.reverse()
print(*a)
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,725
|
s641053973
|
p00018
|
u525366883
|
1596108269
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 87
|
s = list(map(int, input().split()))
print(" ".join(map(str, sorted(s, reverse=True))))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,726
|
s331206285
|
p00018
|
u240091169
|
1594512979
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5576
| 69
|
s = list(map(int, input().split()))
s.sort(reverse = True)
print(*s)
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,727
|
s224071799
|
p00018
|
u187074069
|
1594213257
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5576
| 73
|
lst = list(map(int, input().split()))
lst.sort(reverse=True)
print(*lst)
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,728
|
s034259531
|
p00018
|
u842461513
|
1589248601
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 294
|
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) #出力
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,729
|
s253693813
|
p00018
|
u260980560
|
1588730993
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5576
| 61
|
*S, = map(int, input().split())
S.sort(reverse=1)
print(*S)
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,730
|
s976901360
|
p00018
|
u490578380
|
1585498104
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 107
|
numList = list(map(int, input().split()))
numList.sort(reverse=True)
print(' '.join(map(str, numList)))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,731
|
s290336187
|
p00018
|
u808372529
|
1583832572
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 59
|
s = list(map(int,input().split()))
print(*sorted(s)[::-1])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,732
|
s645722319
|
p00018
|
u153447291
|
1579427788
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 91
|
a = list(map(int,input().split()))
a.sort(reverse = True)
print(a[0],a[1],a[2],a[3],a[4])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,733
|
s520197895
|
p00018
|
u668489394
|
1579071852
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 173
|
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()
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,734
|
s438851132
|
p00018
|
u630911389
|
1576474627
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 221
|
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()
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,735
|
s792115529
|
p00018
|
u037441960
|
1570691613
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 149
|
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])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,736
|
s783550438
|
p00018
|
u803862921
|
1570622551
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 88
|
L = [int(x) for x in input().split()]
L.sort(reverse=True)
print(" ".join(map(str,L)))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,737
|
s709044076
|
p00018
|
u511231264
|
1566342077
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5580
| 89
|
l = list(map(int, input().split()))
l.sort(reverse = True)
print(' '.join(map(str, l)))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,738
|
s374092996
|
p00018
|
u824708460
|
1566225083
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 111
|
s = list(map(int, input().split()))
s.sort(reverse=1)
for i in range(4):
print(s[i], end=" ")
print(s[4])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,739
|
s502072109
|
p00018
|
u427219397
|
1564895870
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 62
|
a = list(map(int, input().split()))
a.sort()
print(*a[::-1])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,740
|
s044011329
|
p00018
|
u108130680
|
1564800011
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 98
|
a,b,c,d,e=map(int,input().split())
list=[a,b,c,d,e]
list.sort()
list.reverse()
s = list
print(*s)
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,741
|
s188673496
|
p00018
|
u013648252
|
1563752665
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5580
| 47
|
print(*sorted(map(int,input().split()))[::-1])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,742
|
s202444699
|
p00018
|
u313600138
|
1562857331
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 61
|
a = list(map(int, input().split()))
a.sort()
print(*a[::-1])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,743
|
s433660053
|
p00018
|
u314166831
|
1562080638
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5680
| 2,008
|
# 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])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,744
|
s788037843
|
p00018
|
u963397340
|
1561218736
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5580
| 113
|
input_list = list(map(int, input().split()))
input_list.sort(reverse=True)
print(' '.join(map(str, input_list)))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,745
|
s392206424
|
p00018
|
u548252256
|
1560177598
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5580
| 85
|
if __name__ == '__main__':
print(*sorted(map(int,input().split()),reverse=True))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,746
|
s179527078
|
p00018
|
u506537276
|
1560148141
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5592
| 144
|
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 = "")
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,747
|
s721384690
|
p00018
|
u625806423
|
1557110370
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 199
|
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
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,748
|
s632531443
|
p00018
|
u647694976
|
1555491539
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 61
|
a = list(map(int, input().split()))
a.sort()
print(*a[::-1])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,749
|
s464137395
|
p00018
|
u406093358
|
1555486673
|
Python
|
Python
|
py
|
Accepted
| 10
|
4632
| 142
|
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
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,750
|
s792637775
|
p00018
|
u350155409
|
1553218877
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5576
| 83
|
num_lst = list(map(int,input().split()))
print(*reversed(sorted(num_lst)),sep=' ')
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,751
|
s902410204
|
p00018
|
u689047545
|
1547189061
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 177
|
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])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,752
|
s380084541
|
p00018
|
u158979022
|
1544447107
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 61
|
a = list(map(int, input().split()))
a.sort()
print(*a[::-1])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,753
|
s573959871
|
p00018
|
u563075864
|
1542610862
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 109
|
a = []
a = [int(i) for i in input().split()]
a.sort(reverse=True)
b = " ".join([str(i) for i in a])
print(b)
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,754
|
s002800167
|
p00018
|
u011621222
|
1542383859
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 121
|
a = list(map(int,(input().split())))
a = sorted(a,reverse=True)
for i in range(0,4):
print(a[i],end=' ')
print(a[4])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,755
|
s148280009
|
p00018
|
u067299340
|
1542172939
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 56
|
print(*sorted([int(x) for x in input().split()])[::-1])
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,756
|
s168284569
|
p00018
|
u717526540
|
1541651827
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 181
|
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="")
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,757
|
s389084735
|
p00018
|
u219940997
|
1537452538
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5576
| 87
|
a = sorted(list(map(int, input().split())), reverse=True)
print(' '.join(map(str, a)))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,758
|
s161722951
|
p00018
|
u536280367
|
1537016502
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 103
|
if __name__ == '__main__':
a = list(map(int, input().split()))
print(*sorted(a, reverse=True))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,759
|
s882049850
|
p00018
|
u252700163
|
1534324143
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 98
|
xs = sorted( [int(x) for x in input().split()] )[::-1]
print( ' '.join( [str(x) for x in xs] ) )
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,760
|
s339514005
|
p00018
|
u319725914
|
1534225857
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 78
|
print(" ".join(str(e) for e in sorted(list(map(int,input().split())))[::-1]))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,761
|
s302346652
|
p00018
|
u995990363
|
1533782760
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 166
|
def run():
numbers = sorted(list(map(int, input().split())), reverse=True)
print(' '.join([str(n) for n in numbers]))
if __name__ == '__main__':
run()
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,762
|
s601705868
|
p00018
|
u539753516
|
1533385032
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5580
| 61
|
print(*sorted(list(map(int, input().split())),reverse=True))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,763
|
s080445918
|
p00018
|
u079141094
|
1467422636
|
Python
|
Python3
|
py
|
Accepted
| 20
|
7648
| 90
|
# Sorting Five Numbers
s = list(map(int, input().split()))
print(*sorted(s,reverse=True))
|
p00018
|
<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>
|
3 6 9 7 5
|
9 7 6 5 3
| 6,764
|
s167442920
|
p00019
|
u231369830
|
1531118045
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5576
| 77
|
n = int(input())
base = 1
for i in range(n):
base *= i + 1
print(base)
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,765
|
s078584869
|
p00019
|
u896746547
|
1532097631
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5648
| 54
|
import math
n = int(input())
print(math.factorial(n))
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,766
|
s399552637
|
p00019
|
u525366883
|
1535541472
|
Python
|
Python
|
py
|
Accepted
| 10
|
4620
| 74
|
tmp = 1
n = int(raw_input())
for i in range(1, n+1):
tmp*=i
print tmp
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,767
|
s477339806
|
p00019
|
u990228206
|
1551338722
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5576
| 60
|
n=int(input())
F=1
for i in range(1,n+1):
F*=i
print(F)
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,768
|
s759578720
|
p00019
|
u888548672
|
1555895201
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5580
| 101
|
def Factorial(n):
if n <= 1: return 1
return n*Factorial(n-1)
print(Factorial(int(input())))
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,769
|
s244354214
|
p00019
|
u450407555
|
1409304939
|
Python
|
Python
|
py
|
Accepted
| 10
|
4184
| 64
|
n = input()
ans = 1
for i in xrange(0,n):
ans *= i+1
print ans
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,770
|
s376682216
|
p00019
|
u579833671
|
1410766144
|
Python
|
Python
|
py
|
Accepted
| 20
|
4188
| 69
|
n = input()
ans = 1
for i in range(1, n + 1):
ans *= i
print(ans)
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,771
|
s649367166
|
p00019
|
u855866586
|
1412165534
|
Python
|
Python
|
py
|
Accepted
| 10
|
4192
| 143
|
def fac(x):
if x<=1: return 1
return fac(x-1)*x
while True:
try:
n=input()
print fac(n)
except EOFError: break
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,772
|
s122180407
|
p00019
|
u506132575
|
1416122975
|
Python
|
Python
|
py
|
Accepted
| 20
|
4320
| 131
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import math
for s in sys.stdin:
d = int(s)
print math.factorial(d)
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,773
|
s386044364
|
p00019
|
u150414576
|
1417357093
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6720
| 136
|
def fact(n):
if(n==0):
return 1
return n * fact(n-1)
if __name__ == '__main__':
n = int(input())
print(fact(n))
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,774
|
s348783967
|
p00019
|
u014849532
|
1420211393
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6724
| 275
|
print(["1","1","2","6","24","120","720","5040","40320","362880","3628800","39916800","479001600","6227020800","87178291200","1307674368000","20922789888000","355687428096000","6402373705728000","121645100408832000","2432902008176640000","51090942171709440000"][int(input())])
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,775
|
s986068626
|
p00019
|
u014849532
|
1420211766
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6724
| 62
|
def f(x): return 1 if x<2 else x*f(x-1)
print(f(int(input())))
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,776
|
s267889806
|
p00019
|
u342537066
|
1420712328
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6720
| 105
|
def func(num):
if num<=1:
return 1
return num*func(num-1)
n=int(input())
print(func(n))
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,777
|
s096997609
|
p00019
|
u846356981
|
1420766071
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6792
| 131
|
__author__ = 'hayato.osanai'
import sys
import math
for line in sys.stdin:
n = int(line)
print(math.factorial(n))
break
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,778
|
s287758963
|
p00019
|
u567380442
|
1422620688
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6716
| 68
|
ret = 1
for i in range(2, int(input()) + 1):
ret *= i
print(ret)
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,779
|
s754545490
|
p00019
|
u879226672
|
1424352932
|
Python
|
Python
|
py
|
Accepted
| 10
|
4192
| 139
|
def factorial(n):
if n==1:
return 1
else:
return n * factorial(n-1)
n = int(raw_input())
print factorial(n)
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,780
|
s387743086
|
p00019
|
u540744789
|
1425884279
|
Python
|
Python
|
py
|
Accepted
| 10
|
4184
| 58
|
fact=1
for i in range(2,input()+1):
fact*=i
print fact
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,781
|
s000940003
|
p00019
|
u744114948
|
1425902703
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6720
| 68
|
s=int(input())
ans=1
for i in range(1,s+1):
ans *= i
print(ans)
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,782
|
s134380169
|
p00019
|
u162387221
|
1431177374
|
Python
|
Python
|
py
|
Accepted
| 10
|
4312
| 60
|
from math import factorial
print factorial(int(raw_input()))
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,783
|
s450545663
|
p00019
|
u976860528
|
1431700296
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6852
| 98
|
# -*- coding:shift-jis -*-
x=input()
def f(n):
if n==0:return 1
return f(n-1)*n
print(f(int(x)))
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,784
|
s952703253
|
p00019
|
u358879127
|
1432032722
|
Python
|
Python
|
py
|
Accepted
| 20
|
4188
| 78
|
def fact(a):
if a == 0:
return 1
return fact(a-1) * a
print fact(input())
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,785
|
s712488644
|
p00019
|
u505648358
|
1432032768
|
Python
|
Python
|
py
|
Accepted
| 10
|
4184
| 66
|
res = 1
for i in range(int(raw_input())):
res *= i+1
print res
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,786
|
s412268711
|
p00019
|
u067299340
|
1433242824
|
Python
|
Python
|
py
|
Accepted
| 10
|
4316
| 41
|
import math
print math.factorial(input())
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,787
|
s394248481
|
p00019
|
u873482706
|
1434523811
|
Python
|
Python
|
py
|
Accepted
| 10
|
4192
| 81
|
n = int(raw_input())
answer = 1
for i in range(n):
answer *= i+1
print answer
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,788
|
s329938569
|
p00019
|
u379956761
|
1434881669
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6716
| 99
|
from functools import reduce
print(reduce(lambda x, y: x*y, [x for x in range(1, int(input())+1)]))
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,789
|
s237924047
|
p00019
|
u211905117
|
1435814279
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6792
| 47
|
import math
print(math.factorial(int(input())))
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,790
|
s763402726
|
p00019
|
u452212317
|
1436151897
|
Python
|
Python
|
py
|
Accepted
| 10
|
4184
| 62
|
n = input()
ans = 1
for x in range(n):
ans *= x + 1
print ans
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,791
|
s122263944
|
p00019
|
u883062308
|
1438589924
|
Python
|
Python3
|
py
|
Accepted
| 40
|
6724
| 73
|
def f(n):
return f(n - 1) * n if n > 0 else 1
print(f(int(input())))
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,792
|
s494470912
|
p00019
|
u140201022
|
1444539254
|
Python
|
Python
|
py
|
Accepted
| 10
|
6204
| 64
|
ans=1
for i in range(1,int(raw_input())+1):
ans*=i
print ans
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,793
|
s149192631
|
p00019
|
u071010747
|
1445248262
|
Python
|
Python3
|
py
|
Accepted
| 20
|
7564
| 190
|
# -*- coding:utf-8 -*-
def main():
n=int(input())
count=n
a=1
while count!=1:
a*=count
count-=1
print(a)
if __name__ == '__main__':
main()
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,794
|
s725702486
|
p00019
|
u802625365
|
1447593495
|
Python
|
Python
|
py
|
Accepted
| 20
|
6424
| 98
|
import sys
import math
n = (int)(input())
res = 1
for i in range(1,n+1):
res *= i
print(res)
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,795
|
s296006633
|
p00019
|
u775586391
|
1448331727
|
Python
|
Python3
|
py
|
Accepted
| 20
|
7576
| 94
|
def f(x):
if x == 0:
return 1
else:
return x * f(x-1)
n = int(input())
print(f(n))
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,796
|
s230799061
|
p00019
|
u461370825
|
1449741622
|
Python
|
Python
|
py
|
Accepted
| 10
|
6360
| 157
|
from math import *
PI = 3.1415926535898
while True:
try:
n = input()
ans = 1
for i in range(1, n+1):
ans *= i
print ans
except EOFError:
break
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,797
|
s481900776
|
p00019
|
u747479790
|
1449858149
|
Python
|
Python3
|
py
|
Accepted
| 20
|
7672
| 49
|
import math as m
print(m.factorial(int(input())))
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,798
|
s478979268
|
p00019
|
u560214129
|
1450434842
|
Python
|
Python3
|
py
|
Accepted
| 20
|
7604
| 107
|
number = int(input())
i = 1
product = 1
for i in range(1,number+1):
product = product * i
print(product)
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,799
|
s044220254
|
p00019
|
u825618558
|
1451572061
|
Python
|
Python3
|
py
|
Accepted
| 20
|
7556
| 198
|
import sys
def fact(n):
ret = 1
if n<1:
return -1
elif n==1:
return 1
else:
return n*fact(n-1)
line = sys.stdin.readline()
inp = int(line)
print (fact(inp))
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,800
|
s755195551
|
p00019
|
u749493116
|
1452521894
|
Python
|
Python
|
py
|
Accepted
| 10
|
6216
| 123
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
n = int(raw_input())
ans = 1
for i in range(1, n + 1):
ans *= i
print ans
|
p00019
|
<H1>Factorial</H1>
<p>
Write a program which reads an integer <var>n</var> and prints the factorial of <var>n</var>. You can assume that <var>n</var> ≤ 20.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (1 ≤ <var>n</var> ≤ 20) in a line.
</p>
<H2>Output</H2>
<p>
Print the factorial of <var>n</var> in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
120
</pre>
|
5
|
120
| 6,801
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.