上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
摘要: #include <iostream> #include <cmath> using namespace std; double f(double x,double n){ if(n==1){ return x/(1+x); } return x/(n+f(x,n-1)); } int main() 阅读全文
posted @ 2024-06-22 09:53 最后一个还有我 阅读(35) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int s(int n){ int x=1; if(n==1){ return 1; }else{ for(int i=1;i<=n;i++){ x*=i; } } return x+s(n-1); } int mai 阅读全文
posted @ 2024-06-22 08:33 最后一个还有我 阅读(11) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int s(int n){ if(n<=2){ return n; } return n*s(n-1); } int main(){ int n; cin>>n; cout<<s(n); return 0; } 阅读全文
posted @ 2024-06-22 08:19 最后一个还有我 阅读(11) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ int a,b[100],i=0,c=0; cin>>a; for(int i=0;a!=0;i++){ b[i]=a%2; a/=2; c++; } for(int j=c-1;j> 阅读全文
posted @ 2024-06-02 09:50 最后一个还有我 阅读(11) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ string a; cin>>a; int b[a.size()],c; for(int i=a.size()-1,d=0;i>=0;i--){ b[i]=a[i]-'0'; c+=b 阅读全文
posted @ 2024-06-02 09:30 最后一个还有我 阅读(19) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(){ int a[10],max; for(int i=0;i<10;i++){ cin>>a[i]; } for(int i=0;i<10;i++){ for(int j=9;j>i;j--){ i 阅读全文
posted @ 2024-06-02 08:35 最后一个还有我 阅读(9) 评论(0) 推荐(0)
摘要: 宋阳 ggb 1 0 付书恒 男 12 29.1 张湛谦 男 14 520 郭立恒 男 14 1.1 王硕 男 15 132 王华立 女 13 1.2 李寅睿 男 13 1.3 #include <iostream> using namespace std; struct r{ string nam 阅读全文
posted @ 2024-05-31 20:11 最后一个还有我 阅读(20) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(){ int a,c=0,b; cin>>a>>b; for(int i=a;i<b;i++){ while(a!=1){ if(a%2!=0){ //cout<<a<<"*3+1="<<a*3+1< 阅读全文
posted @ 2024-05-05 08:23 最后一个还有我 阅读(10) 评论(0) 推荐(0)
摘要: https://www.meipian.cn/25lugugg 阅读全文
posted @ 2024-04-24 19:26 最后一个还有我 阅读(11) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ //保留3位有效数字?(四舍五入)-> cout cout<<setprecision(3)<<3.004<<endl; //精确小数点后三位(四舍五入) -> cout cout<< 阅读全文
posted @ 2024-04-21 09:40 最后一个还有我 阅读(7) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页