OJ-Problems-Source/HDOJ/1995_autoAC.cpp
2016-08-19 10:57:19 +08:00

12 lines
181 B
C++

#include <stdio.h>
int main()
{
int t,n,k;
scanf("%d",&t);
while(t--){
scanf("%d%d",&n,&k);
printf("%I64d\n",1LL<<n-k);
}
return 0;
}