#include<iostream> using namespace std; int main(){ int a,c,x,i; for(a=0;a<=9;a++) for(c=0;c<=9;c++) { if(a!=c) { // cout<<a<<c<<endl; x=1000*a+100*a+10*c+c; // cout<<x<<endl; for(i=31;i<=99;i++){ if(i*i==x) cout<<x; } } } // cout<<x; return 0; }
标签:std,int,namespace,第四天,打卡,main From: https://www.cnblogs.com/gjsgjs/p/17334756.html