結果
問題 |
No.1063 ルートの計算 / Sqrt Calculation
|
ユーザー |
|
提出日時 | 2022-01-10 23:32:44 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 327 bytes |
コンパイル時間 | 335 ms |
コンパイル使用メモリ | 82,240 KB |
実行使用メモリ | 67,856 KB |
最終ジャッジ日時 | 2024-11-14 11:14:31 |
合計ジャッジ時間 | 4,721 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 14 |
ソースコード
n = int(input()) N = n d = dict() i = 2 while i + i <= n: if n % i == 0: count = 0 while n % i == 0: n //= i count += 1 d[i] = count i += 1 if n != 1: d[n] = 1 for k in d.keys(): if d[k] % 2== 1: ans *= k from math import sqrt print(int(sqrt(N/ans)),ans)