guozi6

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

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 汀幻 阅读(19) 评论(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 汀幻 阅读(107) 评论(0) 推荐(0)

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 汀幻 阅读(14) 评论(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 汀幻 阅读(23) 评论(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 汀幻 阅读(16) 评论(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 汀幻 阅读(22) 评论(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 汀幻 阅读(26) 评论(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 汀幻 阅读(104) 评论(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 汀幻 阅读(25) 评论(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 汀幻 阅读(129) 评论(0) 推荐(0)