HDOJ  2178   猜数字

来源:互联网 发布:js 按字母排序 编辑:程序博客网 时间:2024/06/03 15:06

题目:http://acm.hdu.edu.cn/showproblem.php?pid=2178

题目很很不清楚的一道水题,没有为什么这样,但这样就过了
#include <stdio.h>
#include <math.h>
int main()
{
    intt,n;
   scanf("%d",&t);
   while(t--)
       scanf("%d",&n),printf("%d\n",(int)pow(2,n)-1);
    return0;
}

0 0
原创粉丝点击