抓肇事犯

 1 #include <iostream>
 2 using namespace std;
 3 int main()
 4 {
 5     int i,j,k,temp;
 6     for(i=0;i<=9;i++)
 7     {
 8         for(j=0;j<=9;j++)
 9         {
10             if(i!=j)
11             {
12                 k=1000*i+100*i+10*j+j;
13                 for(temp=31;temp<=99;temp++)
14                 {
15                     if(temp*temp==k)
16                     cout<<k<<endl;
17                 }
18             }
19         }
20     }
21 }

 

posted @ 2023-05-10 21:07  新晋软工小白  阅读(23)  评论(0)    收藏  举报