Can you give me a hint so that i dont exceed the time limit
#include
using namespace std;
int main(){
int n,x,y;
cin>>n;
int i=0;
for(x=1;x<=nn;x++)
{
if(i==1){
break;
}
else{
for(y=2;(yy)<=(nn+xx);y++)
{
if((yy)==(nn+x*x))
{
cout<<x<<endl;
cout<<y<<endl;
i++;
}
}
}
}
if(i==0){
cout<<-1;
}
return 0;
}
