没学高精度怎么办
查看原帖
没学高精度怎么办
1113716
a20111127楼主2024/8/20 20:00

#include<bits/stdc++.h> using namespace std; int main(){ int n,s=0,t=1; cin>>n; for(int i=1;i<=n;i++){ int t=1; for(int j=i;j>=1;j--){ t=tj; } s=s+t; } cout<<s; }```c #include<bits/stdc++.h> using namespace std; int main(){ int n,s=0,t=1; cin>>n; for(int i=1;i<=n;i++){ int t=1; for(int j=i;j>=1;j--){ t=tj; } s=s+t; } cout<<s; }

2024/8/20 20:00
加载中...