제출 #9583

#제출 시각아이디문제언어결과실행 시간메모리
9583dolpang2Phibonacci (kriii2_P)C++14
0 / 4
1000 ms1084 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...