解题思路:
注意事项:
参考代码:
#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cmath>
#define int long long
using namespace std;
signed main(){
cout<<0<<" ";
for(int i=1;i<=200000;i++){
int temp=i,temp1=i*i,flag=0;
while(temp){
if(temp%10!=temp1%10){
flag=1;
break;
}
temp/=10;
temp1/=10;
}
if(!flag){
cout<<i<<" ";
}
}
return 0;
}
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题1.6 (C语言代码)浏览:584 |
C二级辅导-公约公倍 (C语言代码)浏览:1509 |
P1002 (C语言代码)浏览:980 |
C语言程序设计教程(第三版)课后习题9.1 (Java代码)浏览:471 |
小明A+B (C语言代码)浏览:1256 |
C语言程序设计教程(第三版)课后习题8.3 (C语言代码)浏览:575 |
C语言程序设计教程(第三版)课后习题8.4 (C语言代码)浏览:609 |
杨辉三角 (C语言代码)浏览:484 |
整数平均值 (C语言代码)浏览:786 |
上车人数 (C语言代码)浏览:713 |