http://acm.hdu.edu.cn/showproblem.php?pid=2178
#include <bits/stdc++.h>
using namespace std;
int main() {
int T;
scanf("%d", &T);
while(T --) {
int x;
scanf("%d", &x);
int num = pow(2, x) - 1;
printf("%d\n", num);
}
return 0;
}
原文:https://www.cnblogs.com/zlrrrr/p/9417369.html