guozi6

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2023年5月25日

摘要: #include<iostream>using namespace std;int main(){int a[10],max,min,sum=0,s;for(int i=0;i<=9;i++){cin>>a[i];}min=a[0];for(int j=0;j<10;j++){if(a[j]>max 阅读全文
posted @ 2023-05-25 23:50 汀幻 阅读(9) 评论(0) 推荐(0) 编辑

2023年5月24日

摘要: #include<iostream>using namespace std;int main(){long int a,b,c;cin>>a>>b;while(1){if(b%a){c=b/a+1;}else{c=b/a;a=1;}if(a==1){cout<<"1/"<<c;break;}else 阅读全文
posted @ 2023-05-24 21:35 汀幻 阅读(4) 评论(0) 推荐(0) 编辑

2023年5月23日

摘要: #include<iostream>using namespace std;int main(){ int start,end,a,flag=1,count=0; cin>>start; cin>>end; for(int i=start;i<=end;i++) { for(int j=2;j<i; 阅读全文
posted @ 2023-05-23 19:06 汀幻 阅读(90) 评论(0) 推荐(0) 编辑

2023年5月22日

摘要: 三程序流程图 四伪代码实现 #include<iostream>using namespace std;int main(){int m,n;for(int j=0;j<2;j++){cin>>m;cin>>n;for(int i=1;i<=m*n;i++){if(i%m==0&&i%n==0){c 阅读全文
posted @ 2023-05-22 21:08 汀幻 阅读(33) 评论(0) 推荐(0) 编辑

2023年5月21日

摘要: #include<iostream>using namespace std;int main(){int a[10],max,min,sum=0,s;for(int i=0;i<=9;i++){cin>>a[i];}min=a[0];for(int j=0;j<10;j++){if(a[j]>max 阅读全文
posted @ 2023-05-21 23:53 汀幻 阅读(53) 评论(0) 推荐(0) 编辑

摘要: #include<iostream>using namespace std;int main(){long int a,b,c;cin>>a>>b;while(1){if(b%a){c=b/a+1;}else{c=b/a;a=1;}if(a==1){cout<<"1/"<<c;break;}else 阅读全文
posted @ 2023-05-21 23:50 汀幻 阅读(149) 评论(0) 推荐(0) 编辑

2023年5月19日

摘要: #include<iostream>using namespace std;int main(){int a[10],max,min,sum=0,s;for(int i=0;i<=9;i++){cin>>a[i];}min=a[0];for(int j=0;j<10;j++){if(a[j]>max 阅读全文
posted @ 2023-05-19 22:23 汀幻 阅读(111) 评论(0) 推荐(0) 编辑

2023年5月18日

摘要: #include<iostream>using namespace std;int main(){int count=0;for(int i=1;i<5;i++){for(int j=1;j<5;j++){for(int k=1;k<5;k++){if(i!=j&&i!=k&&j!=k){count 阅读全文
posted @ 2023-05-18 20:49 汀幻 阅读(32) 评论(0) 推荐(0) 编辑

2023年5月17日

摘要: #include <iostream> using namespace std; int main(){ int n,i,j,k; n=100; for(i=1;i<=n;i++) { for(j=i;j<=n;j++) { for(k=j;k<=n;k++) { if(i*i+j*j==k*k) 阅读全文
posted @ 2023-05-17 19:37 汀幻 阅读(12) 评论(0) 推荐(0) 编辑

2023年5月16日

摘要: #include<iostream>using namespace std;int main(){ int i,a,b,c; long long n=13; for(i=1;i<13;i++) { n=n*13; } cout<<"13的13次方的最后三位数是:"<<endl; a=(n/100)% 阅读全文
posted @ 2023-05-16 14:15 汀幻 阅读(96) 评论(0) 推荐(0) 编辑