This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
#include <string.h>
int main(){
int i,n,k;
long long p[2];
scanf("%d %d",&n,&k);
p[0]=0;
p[1]=1;
for(i=2;i<=n;i++){
p[i%2] = p[i%2]+p[(i+1)%2];
}
printf("%lld %lld\n",p[(i+1)%2]%1000000007,p[i%2]%1000000007);
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |