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 <cstdio>
const int kModulo = 1000000007;
int main() {
long long n = 0;
int k = 0;
scanf("%lld%d", &n, &k);
int a = 0;
int b = 1;
for (long long i = 2; i <= n; ++i) {
int ret = (a % kModulo + b % kModulo) % kModulo;
a = b;
b = ret;
}
printf("%d %d", b, a);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |