You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
284 B

#include<bits/stdc++.h>
using namespace std;
int main()
{
int a, b, x, n;
for(x = 32; ; x++)
{
n = x * x;
if(n > 9999) break;
a = n / 100;
b = n % 100;
if(a/10 == a%10 && b/10 == b%10) printf("(2):%d\n", n);
}
return 0;
}