题解 | #2的n次方计算#
2的n次方计算
http://www.nowcoder.com/practice/35a1e8b18658411388bc1672439de1d9
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); System.out.println((int)(Math.pow(2,n))); } }