submission_id string | problem_id string | status string | code string | input string | output string | problem_description string |
|---|---|---|---|---|---|---|
s668276330 | p00019 | Accepted | n=int(input())
ans=1
for i in range(1,n+1):
ans *=i
print(ans)
| 5
| 120
|
<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>
|
s392597800 | p00019 | Accepted | n = int(input())
ans = 1
for i in range(2, n+1) :
ans *= i
print(ans)
| 5
| 120
|
<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>
|
s148719799 | p00019 | Accepted | import math
if __name__ == '__main__':
n = int(input())
print(math.factorial(n))
| 5
| 120
|
<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>
|
s402167359 | p00019 | Accepted | def fact(n):
if n == 1:
return 1
else:
return n * fact(n - 1)
n = int(input())
print(fact(n))
| 5
| 120
|
<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>
|
s135359332 | p00019 | Accepted | def factorial(n):
if n == 1:
return 1
else:
return n*factorial(n-1)
n = int(input())
print(factorial(n))
| 5
| 120
|
<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>
|
s527745769 | p00019 | Accepted | N=int(input())
ans=1
for i in range(1,N+1):
ans=ans*i
print(ans)
| 5
| 120
|
<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>
|
s531776490 | p00019 | Accepted | n = int(raw_input())
ans = 1
for i in range(1, n+1):
ans = ans * i
print ans
| 5
| 120
|
<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>
|
s128594025 | p00019 | Accepted | n = int(input())
ans = 1
for i in range(1, n + 1):
ans *= i
print(ans)
| 5
| 120
|
<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>
|
s687416470 | p00019 | Accepted | def fact(n):
return 1 if n == 1 else n*fact(n-1)
print(fact(int(input())))
| 5
| 120
|
<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>
|
s913997426 | p00019 | Accepted | n = int(input())
f = 1
for i in range(n):
f = f*(i+1)
print(f)
| 5
| 120
|
<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>
|
s825782921 | p00019 | Accepted | import math;print(math.factorial(int(input())))
| 5
| 120
|
<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>
|
s042859035 | p00019 | Accepted | n = int(input())
def f(n):
if n == 0 : return 1
else : return f(n - 1) * n
print(f(n))
| 5
| 120
|
<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>
|
s037222082 | p00019 | Accepted | import math
a=int(input())
print(math.factorial(a))
| 5
| 120
|
<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>
|
s084379207 | p00019 | Accepted | # coding: utf-8
# coding: Shift_JIS
# coding: EUC-JP
# coding: cp932
import math
n = int(input())
print(math.factorial(n))
| 5
| 120
|
<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>
|
s033492210 | p00019 | Accepted | n = int(input())
k = 1
for j in range(1,n+1):
k *= j
print(k)
| 5
| 120
|
<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>
|
s777978264 | p00019 | Accepted | print reduce(lambda a, b: a*b, range(1, input()+1))
| 5
| 120
|
<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>
|
s094294009 | p00019 | Accepted | n = int(input())
ans = 1
for i in range(1, n+1):
ans *= i
print(ans)
| 5
| 120
|
<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>
|
s020570947 | p00019 | Accepted | n = int(input())
def fact(n):
ans = 1
for n in range(n,1,-1):
ans *= n
return ans
print(fact(n))
| 5
| 120
|
<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>
|
s482873207 | p00019 | Accepted | import math
print(math.factorial(int(input())))
| 5
| 120
|
<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>
|
s672511761 | p00019 | Accepted | # import math
# print(math.factorial(int(input())))
def f(a):
if a == 1:
return a
return a * f(a - 1)
print(f(int(input())))
| 5
| 120
|
<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>
|
s420771289 | p00019 | Accepted | from functools import reduce
n = int(input())
factional = reduce(lambda x,y:y*x, [i for i in range(1, n+1)])
print(factional)
| 5
| 120
|
<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>
|
s315364392 | p00019 | Accepted | print([0,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368000,20922789888000,355687428096000,6402373705728000,121645100408832000,2432902008176640000][int(input())])
| 5
| 120
|
<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>
|
s167993003 | p00019 | Accepted | import math
def run():
n = int(input())
print(math.factorial(n))
if __name__ == '__main__':
run()
| 5
| 120
|
<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>
|
s902377336 | p00019 | Accepted | # Factorial
def f(n):
if n == 1: return 1
return f(n-1) * n
n = int(input())
print(f(n))
| 5
| 120
|
<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>
|
s739622137 | p00019 | Runtime Error | def f(x):return 1if x<2else x*f(x-1)
print(f(int(input()))) | 5
| 120
|
<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>
|
s329864511 | p00019 | Runtime Error | s=int(input())
ans=1
for i in range(1,s+1)
ans*=i
print(ans) | 5
| 120
|
<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>
|
s445304830 | p00019 | Runtime Error | x=input()
def f(n):
if n==0:return 1
return f(n-1)*n
print(f(int(n))) | 5
| 120
|
<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>
|
s044394888 | p00019 | Runtime Error | # -*- coding:shift-jis -*-
x=input()
def f(n):
if n==0:return 1
return f(n-1)*n
print(f(int(n))) | 5
| 120
|
<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>
|
s143973247 | p00019 | Runtime Error | ans=1
for i in range(1,int(raw_input()+1):
ans*=i
print ans | 5
| 120
|
<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>
|
s980644448 | p00019 | Runtime Error | from math import factorical
print(factorical(int(input()))) | 5
| 120
|
<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>
|
s836796537 | p00019 | Runtime Error | from math import factorical
print(factorical(int(input())) | 5
| 120
|
<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>
|
s541255645 | p00019 | Runtime Error | from math import factorial
print(factorial(int(input())) | 5
| 120
|
<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>
|
s740882874 | p00019 | Runtime Error |
import math
num = int(input)
print(math.factorial(num)) | 5
| 120
|
<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>
|
s084905249 | p00019 | Runtime Error | from math import factorial
n = int(input())
print factorial(n) | 5
| 120
|
<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>
|
s542647178 | p00019 | Runtime Error | def factorial(n):
if n == 1:
return 1
else:
return n * factorial(n-1)
n=input()
print(factorial(n)) | 5
| 120
|
<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>
|
s523404453 | p00019 | Runtime Error | n = input()
answer = 1
while != 1:
answer *= n
n -= 1
print answer | 5
| 120
|
<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>
|
s704831568 | p00019 | Runtime Error | '''
Created on Mar 22, 2013
@author: wukc
'''
from numpy import product
from sys import stdin
n=int(stdin.readline())
print(product(range(1,n+1))) | 5
| 120
|
<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>
|
s514702887 | p00020 | Wrong Answer | raw_input().upper() | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s731136722 | p00020 | Wrong Answer | print(input().capitalize()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s752368903 | p00020 | Wrong Answer |
def Capitalize():
for i in sys.stdin:
print(i.upper())
| this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s615831866 | p00020 | Wrong Answer | # coding=utf-8
sentence = input()
sentence.capitalize()
print(sentence) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s775877505 | p00020 | Wrong Answer | # coding=utf-8
sentence = input()
sentence.upper()
print(sentence) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s341663226 | p00020 | Wrong Answer | #!/usr/bin/python
def datasets():
s = raw_input().strip()
yield s
def main():
for s in datasets():
print s.lower()
if __name__ == '__main__':
main() | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s644964116 | p00020 | Wrong Answer | a = raw_input()
print a.upper | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s415621307 | p00020 | Wrong Answer | s = raw_input().lower()
print s | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s583153860 | p00020 | Wrong Answer | while True:
try:
print raw_input().lower
except EOFError:
break | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s668403529 | p00020 | Wrong Answer | while True:
try:
print raw_input().upper
except EOFError:
break | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s581339416 | p00020 | Wrong Answer | while True:
try:
s = raw_input()
print s.upper
except EOFError:
break | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s821229595 | p00020 | Wrong Answer | s = raw_input()
print s.upper | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s565902397 | p00020 | Accepted | n = input().rstrip()
print(n.upper())
| this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s009469424 | p00020 | Accepted | print raw_input().swapcase()
| this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s267749119 | p00020 | Accepted | print(input().upper())
| this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s419809680 | p00020 | Accepted | w=str(input())
ans=""
for c in w:
if 96<ord(c)<123:c=c.upper()
ans+=c
print(ans)
| this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s558599915 | p00020 | Accepted | print(raw_input().upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s118502846 | p00020 | Accepted | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
for s in sys.stdin:
d = s.upper()
print d[:-1] | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s226046385 | p00020 | Accepted | print(input().upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s093705905 | p00020 | Accepted | s=input()
print(s.upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s473842815 | p00020 | Accepted | ls = raw_input().split(" ")
for k in range(len(ls)):
ls[k] = ls[k].upper()
print " ".join(map(str,[k for k in ls])) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s507545703 | p00020 | Accepted | print raw_input().upper() | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s418257051 | p00020 | Accepted | s=input()
for i in range(len(s)):
s=list(s)
if ord(s[i]) <= ord("z") and ord(s[i]) >= ord("a"):
s[i] = chr(ord(s[i])-32)
s="".join(s)
print(s) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s441919939 | p00020 | Accepted | def toupper(c):
if c in 'abcdefghijklmnopqrstuvwxyz':
return chr(ord(c)-32)
else:
return c
upperstrings=""
for c in raw_input():
upperstrings += toupper(c)
print upperstrings | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s835993752 | p00020 | Accepted | input_line = raw_input()
answer = ''
for char in input_line:
if char == ' ':
answer += ' '
elif char == '.':
answer += '.'
else:
answer += char.upper()
print answer | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s622777239 | p00020 | Accepted | x = raw_input().upper()
print x | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s973331587 | p00020 | Accepted | # -*- coding:utf-8 -*-
def main():
IN=input()
IN.upper()
print(IN.upper())
if __name__ == '__main__':
main() | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s131575508 | p00020 | Accepted | l =input()
a =l.upper()
print(a) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s857244623 | p00020 | Accepted | from math import *
PI = 3.1415926535898
while True:
try:
s = str(raw_input())
res = ""
for a in s:
if a.isalpha():
c = chr(ord(a) + ord('A') - ord ('a'))
if ord(c) > ord('Z'):
c = chr(ord(c) - 26)
elif ord(c) < ord('A'):
c = chr(ord(c) + 26)
res += c
else:
res += a
print res
except EOFError:
break | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s165238324 | p00020 | Accepted | print(input().swapcase()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s219435266 | p00020 | Accepted | string=input()
print(string.upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s107852676 | p00020 | Accepted | import sys
line = sys.stdin.readline()
ret = ""
for s in line:
ret += s.upper()
print (ret, end="") | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s473603594 | p00020 | Accepted | #!/usr/bin/env python
# -*- coding: utf-8 -*-
ans = raw_input()
print ans.upper() | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s827174413 | p00020 | Accepted | print(''.join(str.upper(c) for c in input())) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s514126435 | p00020 | Accepted | #coding:utf-8
s = raw_input()
print(s.upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s519603713 | p00020 | Accepted | # -*- coding: utf-8 -*-
print str(raw_input()).upper() | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s017782209 | p00020 | Accepted | text = input()
print(text.upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s597602550 | p00020 | Accepted | print(input().upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s907016594 | p00020 | Accepted | # -*- coding: utf-8 -*-
def main(_text: str):
print(_text.upper())
while True:
try:
text = input()
except:
break
main(text) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s528680321 | p00020 | Accepted | s = input()
print(s.upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s965501318 | p00020 | Accepted | # ??¢??????????????????????°????????????§?????????????????????????????°??????
import sys
data = sys.stdin.readline().strip()
print(data.upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s497094197 | p00020 | Accepted | s = raw_input()
print s.upper() | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s079438096 | p00020 | Accepted | import sys
if __name__ == '__main__':
# ??????????????\???
for line in sys.stdin:
print(line.strip().upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s485340820 | p00020 | Accepted | x=input().upper()
print(x) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s319792741 | p00020 | Accepted | s = str(input())
print(s.upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s125972444 | p00020 | Accepted | print(raw_input().rstrip().upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s090221134 | p00020 | Accepted | print(input().rstrip().upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s067175017 | p00020 | Accepted | line = input()
print(line.upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s159506714 | p00020 | Accepted | import sys
import math as mas
print(str.upper(input()))
#for i in sys.stdin:
# a,b=map(int,i.split())
# print(gcd(a,b),lcm(a,b)) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s780308590 | p00020 | Accepted | from functools import reduce
from operator import add
print(reduce(add, map(str.capitalize, input()[:]), '')) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s951847141 | p00020 | Accepted | # -*- coding: utf-8 -*-
import sys
import os
print(input().upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s628434837 | p00020 | Accepted | from string import ascii_lowercase
case, test, result = ascii_lowercase, input(), ''
for _ in test :
if _ in case : result += _.upper()
else : result += _
print(result) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s370402487 | p00020 | Accepted |
print(input().upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s900384924 | p00020 | Accepted | sentence = input()
ans = ""
a = ord("a")
z = ord("z")
for s in sentence:
if a <= ord(s) <= z:
ans += s.upper()
else:
ans += s
print(ans) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s108976552 | p00020 | Accepted | print(''.join(list(map(lambda i: i.upper(),input())))) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s368020518 | p00020 | Accepted | str=input()
print(str.upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s218569374 | p00020 | Accepted | s = input()
s = s.upper()
print(s) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s087514793 | p00020 | Accepted | print("".join(list(map(str.upper, input())))) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s151182928 | p00020 | Accepted | s = input().upper()
print(s) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s505130707 | p00020 | Accepted | # Aizu Problem 0020: Capitalize
#
import sys, math, os
# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
sys.stdin = open("sample-input.txt", "rt")
print(input().upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s647398561 | p00020 | Accepted | str = input()
print(str.upper()) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s581225989 | p00020 | Accepted | print(input().upper()); | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
s238271441 | p00020 | Accepted | # coding=utf-8
sentence = input()
sentence = sentence.upper()
print(sentence) | this is a pen.
| THIS IS A PEN.
|
<H1>Capitalize</H1>
<p>
Write a program which replace all the lower-case letters of a given text with the corresponding captital letters.
</p>
<H2>Input</H2>
<p>
A text including lower-case letters, periods, and space is given in a line. The number of characters in the text is less than or equal to 200.
</p>
<H2>Output</H2>
<p>
Print the converted text.
</p>
<H2>Sample Input</H2>
<pre>
this is a pen.
</pre>
<H2>Output for the Sample Input</H2>
<pre>
THIS IS A PEN.
</pre>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.