摘要: #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 博科元官方号 阅读(2) 评论(0) 推荐(0) 编辑
摘要: https://www.meipian.cn/25lugugg 阅读全文
posted @ 2024-04-24 19:26 博科元官方号 阅读(3) 评论(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 博科元官方号 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; int main(){ int n,a[100]={},x=0,Max=0; cin>>n; for(int i=1;i<=n;i++){ if(n%i==0){ a[x]=i; x++; } } for(i 阅读全文
posted @ 2024-04-21 08:51 博科元官方号 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; int main(){ int a[10]={99,1,2,3,164,5,6,71,8,4}; int max; for(int i=1;i<10;i++){ for(int j=i;j>0;j--){ if(a[j 阅读全文
posted @ 2024-04-05 09:44 博科元官方号 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2024-04-05 09:21 博科元官方号 阅读(0) 评论(1) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; int main(){ int a[10]={99,1,2,3,164,5,6,71,8,4}; int max; for(int i=0;i<9;i++){ for(int j=i+1;j<10;j++){ if(a 阅读全文
posted @ 2024-04-05 08:34 博科元官方号 阅读(2) 评论(0) 推荐(0) 编辑
摘要: int count=0; for(int k=0;k<100;k++){ count++; } cout<<count; //程序执行次数:100 //时间复杂度:O(1) int count=0; for(int k=0;k<*N;k++){ count++; } int M=10; while( 阅读全文
posted @ 2024-03-24 09:38 博科元官方号 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <fstream> #include <string> #include <iomanip> #include <vector> #include <stdlib.h> #include <string.h> using namespace 阅读全文
posted @ 2024-03-17 14:12 博科元官方号 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2024-03-16 10:01 博科元官方号 阅读(1) 评论(0) 推荐(0) 编辑