結果
| 問題 | No.1063 ルートの計算 / Sqrt Calculation |
| コンテスト | |
| ユーザー |
milanis48663220
|
| 提出日時 | 2020-05-29 21:23:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 463 bytes |
| 記録 | |
| コンパイル時間 | 723 ms |
| コンパイル使用メモリ | 82,120 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-06 02:18:19 |
| 合計ジャッジ時間 | 1,422 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 14 |
ソースコード
#include <iostream>
#include <algorithm>
#include <iomanip>
#include <vector>
#include <queue>
#include <set>
#include <map>
using namespace std;
typedef long long ll;
const ll INF = 1e15;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
cout << setprecision(10) << fixed;
ll n;
ll ans = INF;
cin >> n;
for(ll i = 1; i*i <= n; i++){
if(n%(i*i) == 0){
ans = n/(i*i);
}
}
cout << ans << endl;
}
milanis48663220