guozi6

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  192 随笔 :: 0 文章 :: 1 评论 :: 3692 阅读
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

05 2023 档案

摘要:#include<iostream>using namespace std;int main(){int m,n,x,y;cin>>m>>n;int a[100];for(int i=0;i<=100;i++){x=m/n;y=m%n;a[i]=x;m=y*10;}for(int i=0;i<=10 阅读全文
posted @ 2023-05-26 22:16 汀幻 阅读(6) 评论(0) 推荐(0) 编辑

摘要:#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 汀幻 阅读(11) 评论(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-24 21:35 汀幻 阅读(7) 评论(0) 推荐(0) 编辑

摘要:#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 汀幻 阅读(93) 评论(0) 推荐(0) 编辑

摘要:三程序流程图 四伪代码实现 #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 汀幻 阅读(35) 评论(0) 推荐(0) 编辑

摘要:#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 汀幻 阅读(56) 评论(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 汀幻 阅读(154) 评论(0) 推荐(0) 编辑

摘要:#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 汀幻 阅读(114) 评论(0) 推荐(0) 编辑

摘要:#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 汀幻 阅读(45) 评论(0) 推荐(0) 编辑

摘要:#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 汀幻 阅读(14) 评论(0) 推荐(0) 编辑

摘要:#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 汀幻 阅读(99) 评论(0) 推荐(0) 编辑

摘要:#include<iostream>using namespace std;int main(){ int n=1,m,a,i; for(n=1;n<1000;n++) { if(n<10) { if(n==n*n*n) cout<<n<<endl; } if(n>=10&&n<100) { int 阅读全文
posted @ 2023-05-15 16:08 汀幻 阅读(11) 评论(0) 推荐(0) 编辑

摘要:#include<iostream>using namespace std;int main(){ int n=100,a,b,c; for(n=100;n<=999;n++) { a=n/100; b=n/10-a*10; c=n-a*100-b*10; if(n==a*a*a+b*b*b+c*c 阅读全文
posted @ 2023-05-14 20:43 汀幻 阅读(15) 评论(0) 推荐(0) 编辑

摘要:#include<iostream>using namespace std;int main(){ int n,b,a; for(n=0;n<=10000;n++) { int k=0; int m=n; for(;m>0;m/=10,k++); //if(k==1)cout<<k<<endl; a 阅读全文
posted @ 2023-05-14 15:05 汀幻 阅读(11) 评论(0) 推荐(0) 编辑

摘要:#include<iostream>using namespace std;int main(){ int a,b,c; for(a=0;a<=30;a++) { for(b=0;b<=30;b++) { for(c=0;c<=30;c++) { if(a+b+c==30&&3*a+2*b+c==5 阅读全文
posted @ 2023-05-12 22:27 汀幻 阅读(16) 评论(0) 推荐(0) 编辑

摘要:#include<iostream>#include<cmath> using namespace std;int main(){ double m; for(int i=1;i<=64;i++) { int a; a=i-1; m=m+pow(2,a); } cout<<m<<endl; retu 阅读全文
posted @ 2023-05-11 19:43 汀幻 阅读(17) 评论(0) 推荐(0) 编辑

摘要:#include<iostream>using namespace std;int main(){ int x,y,z; int a,b,c; int i; for(x=0;x<=50;x+=10) { for(y=0;y<=50;y+=5) { for(z=0;z<=50;z++) { if(x+ 阅读全文
posted @ 2023-05-10 20:24 汀幻 阅读(89) 评论(0) 推荐(0) 编辑

摘要:#include<iostream>#include<math.h>using namespace std;int main(){int i=1;double sum=0;for(i=1;i<=64;i++){sum=sum+pow(2,i-1);}printf("%f",sum);} 阅读全文
posted @ 2023-05-09 20:09 汀幻 阅读(11) 评论(0) 推荐(0) 编辑

摘要:#include<iostream>using namespace std;int main(){int i;for(int i=95860;i<100000;i++){int a,b,c,d,e,f;a=i/10000;b=i%10;c=i%100;d=i/1000;e=(c-b)/10;f=d- 阅读全文
posted @ 2023-05-05 23:03 汀幻 阅读(88) 评论(0) 推荐(0) 编辑

摘要:#include<iostream>using namespace std;int main(){float a=11,b;for(float i=5;i>=2;i--){a=(a+(1/i))*(i/(i-1));}cout<<a;} 阅读全文
posted @ 2023-05-04 23:33 汀幻 阅读(14) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示