#include<bits/stdc++.h> using namespace std; int main(){ for (int a=1000;a<10000;a++) { int b =a/100; int c =a%100; int d =b+c; if (d*d ==a) { cout<<a<<endl; } } return 0; } /************************************************************** Problem: 1085 User: cyp Language: C++ Result: Accepted Time:4 ms Memory:2072 kb ****************************************************************/