标签:
1 #include<stdio.h>//汉诺塔(一)(88) 2 int main(){ 3 int x,m,t=1; 4 scanf("%d",&x); 5 while(x--){ 6 scanf("%d",&m); 7 if(m>10005){ 8 if(m%100000<6){ 9 m=m%10+100000; 10 } 11 else m=m%100000; 12 } 13 while(m--){ 14 t=t*2; 15 t=t%1000000; 16 } 17 printf("%d\n",t-1); 18 t=1; 19 } 20 return 0; 21 }
标签:
原文地址:http://www.cnblogs.com/minimalism/p/4537624.html