Max6700 @ 2023-05-23 22:09:20
#include<bits/stdc++.h>
using namespace std;
int a[1000000];
int n;
int main(){
cin>>n;
a[0]=a[1]=1;
for(int i=2;i<=n;i++)
a[i]=a[i-1]+a[i-2];
cout<<a[n];
return 0;
}
(简洁明了的50分代码
by FGgirl @ 2023-05-23 22:10:57
那,你想表达什么?是想要学习高精度写法还是单纯想发一个无意义帖子?
by GWBailang @ 2023-05-23 22:11:08
@Max6700 (为啥我没用高精是60分……)
by Max6700 @ 2023-05-23 22:12:18
@FGgirl 前者(我才50分a,当然是请教问题啊……
by Max6700 @ 2023-05-23 22:12:57
@GWBailang (大无语时间,还有人没有高精度40分,就是楼下那帖子
by Max6700 @ 2023-05-23 22:14:01
@FGgirl
不理解题解大大的高精度二维数组的含义a
标题已经把问题说明白了啊……
by GWBailang @ 2023-05-23 22:14:18
@Max6700 6
by Max6700 @ 2023-05-23 22:15:01
@GWBailang ,,,,所以……咋做[哭死在厕所的max.png]
by GWBailang @ 2023-05-23 22:15:37
@Max6700 你手算是怎么算加法的然后用计算机来模拟你手算的呗
by Max6700 @ 2023-05-23 22:16:47
@GWBailang
(大雾
正常高精度+我知道,但是用string装数的嘛,可这个数……不好用string啊……
by Max6700 @ 2023-05-23 22:17:39
@GWBailang
(顺便一踩)