mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
ddd34a4f1c
2000-2099
20 lines
310 B
C++
20 lines
310 B
C++
#include <stdio.h>
|
|
__int64 a[100]={0};
|
|
int main()
|
|
{
|
|
int n;
|
|
a[1]=1,a[2]=2;
|
|
for(int i=3;i<51;i++)
|
|
{
|
|
a[i]=a[i-1]+a[i-2];
|
|
}
|
|
scanf("%d",&n);
|
|
while(n--)
|
|
{
|
|
int c,b;
|
|
scanf("%d%d",&c,&b);
|
|
printf("%I64d\n",a[b-c]);
|
|
}
|
|
return 0;
|
|
}
|