結果

問題 No.1063 ルートの計算 / Sqrt Calculation
ユーザー raven7959raven7959
提出日時 2021-08-08 09:00:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 128 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 81,452 KB
実行使用メモリ 57,364 KB
最終ジャッジ日時 2023-10-19 08:38:43
合計ジャッジ時間 1,648 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 40 ms
53,388 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 39 ms
53,388 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 43 ms
57,360 KB
testcase_08 WA -
testcase_09 AC 42 ms
57,360 KB
testcase_10 AC 42 ms
57,360 KB
testcase_11 AC 42 ms
57,360 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt
n=int(input())
N=n
for i in range(2,int(sqrt(N))+1):
    while N%(i*i)==0:
        N//=(i*i)
print(n//N,N)
0