正方形是矩形!!!
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,len = 0,res = 1;
cin >> n;
for(int i = 1; i <= (int)sqrt(n); i++)
{
if(n%i == 0) res = max(res,i);
}
cout << res << " " << n/res << endl;
return 0;
} 
京公网安备 11010502036488号