26th

发布时间 2023-05-25 17:03:23作者: 晨观夕

保守数

源代码


#include <bits/stdc++.h>
using namespace std;
int main(){
for(int i=0;i<100000;i++){
int t=i;
int count=0;
while(t!=0){
t/=10;
count++;//计算i是几位数
}
int k=pow(10,count);//截取后面的几位数 10 count次方
if(i*i%k==i)
cout<<i<<endl;
}
return 0 ;
}

但是 90625 没有输出

明天细看