[恢]hdu 1995

2011-12-17 06:44:26

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

题意:中文。

mark:其实越小的盘子移动次数越多。每个盘子是以前的盘子的2倍。1、2、4、8……

代码:

# include <stdio.h>


int main ()
{
int T, n, num ;
scanf ("%d", &T) ;
while (T--)
{
scanf ("%d%d", &n, &num) ;
printf ("%I64d\n", 1LL << (n-num)) ;
}
return 0 ;
}



原文地址:https://www.cnblogs.com/lzsz1212/p/2315206.html