結果

問題 No.1063 ルートの計算 / Sqrt Calculation
ユーザー ttkkggwwttkkggww
提出日時 2020-05-29 21:22:36
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 1,668 ms
コンパイル使用メモリ 167,456 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-06 02:14:04
合計ジャッジ時間 2,368 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using ll = long long;

int main()
{
	ll n;
	cin >> n;
	ll ans = 0;
	for(int i = 1;i*i<=n;i++)
	{
		if(n%(i*i)==0)ans = i;
	}
	cout<<ans<<' '<<n/(ans*ans)<<endl;
}
0