http://acm.hdu.edu.cn/showproblem.php?pid=2044
#include <iostream>
using namespace std;
int main()
{
int N;
cin>>N;
int a,b;
__int64 res[50];
for(int i=1;i<50;i++){
if(i==1) res[i]=1;
else if(i==2) res[i]=2;
else res[i]=res[i-1]+res[i-2];
}
while(N--){
cin>>a>>b;
int j=b-a;
cout<<res[j]<<endl;
}
return 0;
}