結果

問題 No.300 平方数
ユーザー nebukuro09nebukuro09
提出日時 2016-09-28 15:33:56
言語 Python2
(2.7.18)
結果
AC  
実行時間 116 ms / 1,000 ms
コード長 364 bytes
コンパイル時間 64 ms
コンパイル使用メモリ 6,708 KB
実行使用メモリ 6,624 KB
最終ジャッジ日時 2023-08-13 12:56:36
合計ジャッジ時間 4,327 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
6,516 KB
testcase_01 AC 13 ms
6,424 KB
testcase_02 AC 13 ms
6,436 KB
testcase_03 AC 13 ms
6,536 KB
testcase_04 AC 13 ms
6,576 KB
testcase_05 AC 13 ms
6,492 KB
testcase_06 AC 13 ms
6,356 KB
testcase_07 AC 13 ms
6,344 KB
testcase_08 AC 13 ms
6,436 KB
testcase_09 AC 13 ms
6,440 KB
testcase_10 AC 13 ms
6,348 KB
testcase_11 AC 13 ms
6,348 KB
testcase_12 AC 13 ms
6,528 KB
testcase_13 AC 116 ms
6,452 KB
testcase_14 AC 13 ms
6,488 KB
testcase_15 AC 13 ms
6,624 KB
testcase_16 AC 13 ms
6,484 KB
testcase_17 AC 13 ms
6,452 KB
testcase_18 AC 13 ms
6,332 KB
testcase_19 AC 13 ms
6,584 KB
testcase_20 AC 17 ms
6,580 KB
testcase_21 AC 13 ms
6,516 KB
testcase_22 AC 13 ms
6,516 KB
testcase_23 AC 22 ms
6,424 KB
testcase_24 AC 30 ms
6,588 KB
testcase_25 AC 96 ms
6,412 KB
testcase_26 AC 40 ms
6,352 KB
testcase_27 AC 31 ms
6,336 KB
testcase_28 AC 94 ms
6,480 KB
testcase_29 AC 79 ms
6,332 KB
testcase_30 AC 18 ms
6,348 KB
testcase_31 AC 19 ms
6,368 KB
testcase_32 AC 19 ms
6,380 KB
testcase_33 AC 47 ms
6,476 KB
testcase_34 AC 104 ms
6,488 KB
testcase_35 AC 73 ms
6,380 KB
testcase_36 AC 35 ms
6,484 KB
testcase_37 AC 37 ms
6,332 KB
testcase_38 AC 14 ms
6,336 KB
testcase_39 AC 14 ms
6,512 KB
testcase_40 AC 14 ms
6,416 KB
testcase_41 AC 31 ms
6,424 KB
testcase_42 AC 13 ms
6,620 KB
testcase_43 AC 14 ms
6,416 KB
testcase_44 AC 14 ms
6,352 KB
testcase_45 AC 14 ms
6,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

def prime_decomposition(n):
    i = 2
    table = []
    while i * i <= n:
        while n % i == 0:
            n /= i
            table.append(i)
        i += 1
    if n > 1:
        table.append(n)
    return table

X = input()
ans = 1
for k, v in Counter(prime_decomposition(X)).items():
    if v%2:
        ans *= k
print ans
0