70分,TLE三个点
查看原帖
70分,TLE三个点
934390
__HappY__楼主2023/8/23 21:37
#include<bits/stdc++.h>
#define int long long
using namespace std;

signed main() {
	int n;
	cin >> n;
	int x=1;
	while(1) {
		int s;
		s=sqrt(n*x);
		if(s*s == n*x){
			cout << x << endl;
			break;
		}
		else x++;
	}
	
	return 0;
}
2023/8/23 21:37
加载中...