| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79775 | 张黄源 | 斐波那契数列 | C++ | Wrong Answer | 0 MS | 272 KB | 280 | 2024-07-10 13:26:03 |
#include<bits/stdc++.h> using namespace std; int main(){ int k; cin >> k; int a=1,b=1, c; if(k == 1){ cout <<1; }else if( k == 2){ cout<< 1; }else{ for(int i= 1; i<=k-2; i++){ c = a+b; a = b+a; b = c+a; } } cout<<c<<a<<b; return 0; }
------Input------
36
------Answer-----
14930352
------Your output-----
12869609021286960902-1721045492