您的位置:首页 > 其它

HDOJ  2178   猜数字

2015-12-18 18:11 246 查看
题目:http://acm.hdu.edu.cn/showproblem.php?pid=2178

题目很很不清楚的一道水题,没有为什么这样,但这样就过了

#include <stdio.h>

#include <math.h>

int main()

{

int
t,n;


scanf("%d",&t);


while(t--)


scanf("%d",&n),printf("%d\n",(int)pow(2,n)-1);

return
0;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: