Pro.ID22839 TitlePowers Title链接http://10.20.2.8/oj/exercise/problem?problem_id=22839 AC102 Submit116 Ratio87.93% 时间&空间限制描述Powers of two are just so easy to calculate. To find the Nth power of 2, just multiply 2 by itself N times (where 2 to the 0th power is 1 and 2 to the 1st power is 2). Thus, we have a power table: N 2 to the N-th power Write a program that reads N ( 1 ≤ N ≤ 30 ) and prints 2 to the N-th power. Do not use a table of precalculated numbers in your program. 输入A single line with integer N. 输出Description Powers of two are just so easy to calculate. To find the Nth power of 2, just multiply 2 by itself N times (where 2 to the 0th power is 1 and 2 to the 1st power is 2). Thus, we have a power table: N 2 to the N-th power Write a program that reads N ( 1 ≤ N ≤ 30 ) and prints 2 to the N-th power. Do not use a table of precalculated numbers in your program. Input A single line with integer N. Output A single line with 2 to the N-th power. Sample Input 10 Sample Output 1024 Source 样例输入10 样例输出1024 作者 |