結果

問題 No.300 平方数
ユーザー niyarinniyarin
提出日時 2016-07-05 19:11:35
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 370 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 10,460 KB
最終ジャッジ日時 2024-04-20 22:03:50
合計ジャッジ時間 5,680 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
10,324 KB
testcase_01 AC 93 ms
10,452 KB
testcase_02 AC 92 ms
10,456 KB
testcase_03 AC 91 ms
10,456 KB
testcase_04 AC 97 ms
10,452 KB
testcase_05 AC 93 ms
10,452 KB
testcase_06 AC 92 ms
10,456 KB
testcase_07 AC 92 ms
10,456 KB
testcase_08 WA -
testcase_09 AC 97 ms
10,456 KB
testcase_10 AC 99 ms
10,452 KB
testcase_11 AC 90 ms
10,324 KB
testcase_12 WA -
testcase_13 AC 91 ms
10,456 KB
testcase_14 AC 92 ms
10,324 KB
testcase_15 AC 91 ms
10,452 KB
testcase_16 AC 90 ms
10,452 KB
testcase_17 AC 91 ms
10,328 KB
testcase_18 AC 89 ms
10,452 KB
testcase_19 AC 93 ms
10,324 KB
testcase_20 AC 94 ms
10,456 KB
testcase_21 AC 89 ms
10,452 KB
testcase_22 AC 90 ms
10,324 KB
testcase_23 WA -
testcase_24 AC 95 ms
10,324 KB
testcase_25 AC 98 ms
10,452 KB
testcase_26 AC 95 ms
10,460 KB
testcase_27 AC 93 ms
10,324 KB
testcase_28 AC 92 ms
10,456 KB
testcase_29 AC 97 ms
10,452 KB
testcase_30 AC 92 ms
10,456 KB
testcase_31 AC 91 ms
10,324 KB
testcase_32 AC 89 ms
10,452 KB
testcase_33 AC 95 ms
10,452 KB
testcase_34 AC 91 ms
10,456 KB
testcase_35 AC 92 ms
10,452 KB
testcase_36 AC 94 ms
10,456 KB
testcase_37 AC 90 ms
10,324 KB
testcase_38 WA -
testcase_39 AC 94 ms
10,452 KB
testcase_40 AC 92 ms
10,452 KB
testcase_41 AC 93 ms
10,452 KB
testcase_42 AC 92 ms
10,452 KB
testcase_43 WA -
testcase_44 AC 91 ms
10,456 KB
testcase_45 AC 95 ms
10,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import *
mx = 10**5+1
nyrn = [1 for i in range(mx)]
for i in range(2,mx):
    if (nyrn[i]):
        for j in range(2,int(sqrt(i))):
            if (j*i >= mx-1):
                break
            nyrn[j*i] = 0
    

sosu = []
for i in range(2,mx):
    if nyrn[i]:
        sosu.append(i)

X = input()
for s in sosu:
    if (X%(s*s))==0:
        X/=(s*s)
print X
0