guozi6

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

2023年5月15日

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

2023年5月14日

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

2023年5月12日

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

2023年5月11日

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

2023年5月10日

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

2023年5月9日

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

2023年5月5日

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

2023年5月4日

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

2023年4月27日

摘要: #include<stdio.h>void print(int s[]);int judge(int c[]);int j=0;int main(){ int sweet[10]={10,2,8,22,16,4,10,6,14,20}; int i,t[10],l; printf("child 1 阅读全文
posted @ 2023-04-27 20:28 汀幻 阅读(9) 评论(0) 推荐(0) 编辑