HDOJ 2178 猜数字(水题)

来源:互联网 发布:河北网站seo 编辑:程序博客网 时间:2024/06/08 16:51

HDACM 2178

import java.util.Scanner;public class Main{    public static void main(String[] args) {        Scanner sc = new Scanner(System.in);        int t = sc.nextInt();        while(t-->0){            int n = sc.nextInt();            System.out.println((int)Math.pow(2, n)-1);        }        sc.close();    }}