四位数
#include<stdio.h>
int main()
{int n,i,ab,cd;
scanf("%d",&n);
for(i=1000;i<n;i++)
{ab=i/100;
cd=i%100;
if((ab+cd)*(ab+cd)==i)
{printf("%d\n",i);}}}
int main()
{int n,i,ab,cd;
scanf("%d",&n);
for(i=1000;i<n;i++)
{ab=i/100;
cd=i%100;
if((ab+cd)*(ab+cd)==i)
{printf("%d\n",i);}}}