不用高精度的话......

P1255 数楼梯

牛瓜瓜 @ 2019-08-13 09:31:25

最多可以得60分


by gongcharlie @ 2019-08-13 09:32:26

_int128??


by BinDir0 @ 2019-08-13 09:32:46

@gongcharlie 捕捉qwq


by gongcharlie @ 2019-08-13 09:33:45

@恨妹不成穹 捕捉我干嘛


by Frozencode @ 2019-08-13 09:42:01

@牛瓜瓜 py


by 牛瓜瓜 @ 2019-08-13 09:58:34

include<bits/stdc++.h>

using namespace std; int main() { unsigned long long a,b,c;int n; cin>>n; a=1,b=1,c=0; if(n==1) { cout<<1<<endl; return 0; } for(int i=2;i<=n;i++) { c=a+b; a=b; b=c; } cout<<c<<' '; return 0; } 60分


by VTloBong @ 2019-08-13 10:18:24

So$$?

by juruojjl_ @ 2019-08-13 10:44:15

@牛瓜瓜 人生虽短,我用Python


by gongcharlie @ 2019-08-13 12:19:49

@恨妹不成穹 捕捉我干嘛


by 水痘活疫苗 @ 2019-08-13 16:35:23

wa


by BinDir0 @ 2019-08-13 18:47:39

@gongcharlie qwq您强


| 下一页