Degree of two
#5050
Sign in
Statement
Discussion
Degree of two
1 second
128 megabytes
Very easy
(≈850)
Topics
English
Bitwise Operations
Print the number
2^n
using bit operations only.
Input
One number
n
(
0 \leq n \leq 30
).
Output
Print the number
2^n
using bit operations only.
Examples
Example 1
Loading
Loading
Example 2
Loading
Loading
2
n
0
≤
n
≤
30
2
n