delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#include<cstdio>
using namespace std;
int answer(int n)
{
int a,b,c;
c=a=b=1;
for(int i=3;i<=n;i++)
{
c=(a+b)%1000;
a=b;
b=c;
}
return c;
}
int main()
{
int n;
scanf("%d",&n);
int sr[n];
for(int i=0;i<n;i++) scanf("%d",sr+i);
for(int i=0;i<n;i++) printf("%d\n",answer(sr[i]));
return 0;
}