#include <iostream>
#include <cstdio>
using namespace std;
typedef __int64 LL;
LL fu(int n,int k)
{
if(n==k) return 1;
if(n==k+1) return 2;
LL re = fu(n-1,k);
return re+re;
}
int main()
{
int test;
cin>>test;
int a,b;
while(test--)
{
cin>>a>>b;
printf("%I64d\n",fu(a,b));
}
return 0;
}
hdu 1995
最新推荐文章于 2024-08-10 14:00:01 发布