HDU 2013 蟠桃记

地址: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 }

posted on 2012-08-18 09:46  mycapple  阅读(434)  评论(0编辑  收藏  举报

导航