robin88 • 5个月前
using namespace std; / run this program using the console pauser or add your own getch, system("pause") or input loop /
int main(int argc, char** argv) {
int m=0;
cin>>m;
for(unsigned long long i=1;i<=m;i++){
unsigned long long k=i*i;
if(k>=m && k%m==0){
cout<<k/m;
break;
}
}
return 0;
}
评论:
请先登录,才能进行评论