이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <stdlib.h>
#include <stdio.h>
#define FOR(variable, start, end) for(int variable=(start); variable<=(end); ++variable)
#define LL long long
using namespace std; // 700B
LL a, b, c, nf[4];
void pi(){
nf[0] = 0;
nf[1] = 0;
nf[2] = 1;
nf[3] = 1;
FOR(i,1,a){
nf[2] = nf[3];
nf[0] = nf[1];
nf[1] = nf[2];
nf[3] = (nf[0] + nf[1]) % 1000000007;
}
}
int main(){
scanf("%lld%lld", &a, &b);
pi();
printf("%lld %lld\n", nf[1], nf[0]);
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |