結果

問題 No.300 平方数
ユーザー niyarinniyarin
提出日時 2016-07-05 19:12:42
言語 PyPy2
(7.3.15)
結果
WA  
実行時間 -
コード長 370 bytes
コンパイル時間 529 ms
コンパイル使用メモリ 77,048 KB
実行使用メモリ 101,840 KB
最終ジャッジ日時 2024-04-20 22:04:17
合計ジャッジ時間 7,459 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
101,248 KB
testcase_01 AC 123 ms
101,440 KB
testcase_02 AC 122 ms
101,048 KB
testcase_03 AC 123 ms
101,324 KB
testcase_04 AC 126 ms
101,424 KB
testcase_05 AC 124 ms
101,736 KB
testcase_06 AC 123 ms
101,320 KB
testcase_07 AC 122 ms
101,340 KB
testcase_08 WA -
testcase_09 AC 123 ms
101,712 KB
testcase_10 AC 125 ms
101,228 KB
testcase_11 AC 122 ms
101,380 KB
testcase_12 WA -
testcase_13 AC 128 ms
101,196 KB
testcase_14 AC 124 ms
101,696 KB
testcase_15 AC 122 ms
101,332 KB
testcase_16 AC 125 ms
101,236 KB
testcase_17 AC 129 ms
101,316 KB
testcase_18 AC 125 ms
101,356 KB
testcase_19 AC 126 ms
101,588 KB
testcase_20 AC 124 ms
101,472 KB
testcase_21 AC 121 ms
101,740 KB
testcase_22 AC 125 ms
101,112 KB
testcase_23 WA -
testcase_24 AC 123 ms
101,080 KB
testcase_25 AC 126 ms
101,084 KB
testcase_26 AC 129 ms
101,700 KB
testcase_27 AC 130 ms
101,432 KB
testcase_28 AC 131 ms
101,060 KB
testcase_29 AC 122 ms
101,188 KB
testcase_30 AC 126 ms
101,376 KB
testcase_31 AC 123 ms
101,240 KB
testcase_32 AC 122 ms
101,112 KB
testcase_33 AC 125 ms
101,216 KB
testcase_34 AC 122 ms
101,308 KB
testcase_35 AC 126 ms
101,192 KB
testcase_36 AC 123 ms
101,352 KB
testcase_37 AC 123 ms
101,092 KB
testcase_38 WA -
testcase_39 AC 122 ms
101,756 KB
testcase_40 AC 123 ms
101,208 KB
testcase_41 AC 145 ms
101,708 KB
testcase_42 AC 127 ms
101,312 KB
testcase_43 WA -
testcase_44 AC 124 ms
101,720 KB
testcase_45 AC 126 ms
101,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import *
mx = 10**6+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