题解 | #2的n次方计算#
2的n次方计算
http://www.nowcoder.com/practice/35a1e8b18658411388bc1672439de1d9
#include <stdio.h>
#include <math.h>
int main() {
int a = 0;
while(scanf("%d", &a) != EOF) {
printf("%.0f\n", pow(2,a));
}
return 0;
}