地址:http://acm.hdu.edu.cn/showproblem.php?pid=2013

思路:没啥说的。。。

 1 #include<stdio.h>
 2 int main()
 3 {
 4     int m,x;
 5     while(scanf("%d",&m)!=EOF)
 6     {
 7         x=1;
 8         while(--m)
 9         x=(x+1)<<1;
10         printf("%d\n",x);
11     }
12     return 0;
13 }

相关文章:

  • 2021-09-01
  • 2022-12-23
  • 2021-07-07
  • 2021-11-24
  • 2021-08-10
  • 2021-10-10
  • 2022-12-23
  • 2022-03-08
猜你喜欢
  • 2021-06-02
  • 2021-04-19
  • 2021-09-27
  • 2021-08-05
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
相关资源
相似解决方案