結果

問題 No.300 平方数
ユーザー tnoda_tnoda_
提出日時 2015-11-17 18:21:05
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 215 bytes
コンパイル時間 472 ms
コンパイル使用メモリ 6,620 KB
実行使用メモリ 13,844 KB
最終ジャッジ日時 2023-10-11 17:53:51
合計ジャッジ時間 13,547 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 256 ms
13,580 KB
testcase_01 AC 256 ms
13,652 KB
testcase_02 AC 253 ms
13,680 KB
testcase_03 AC 254 ms
13,688 KB
testcase_04 AC 253 ms
13,736 KB
testcase_05 AC 252 ms
13,692 KB
testcase_06 AC 252 ms
13,764 KB
testcase_07 AC 252 ms
13,816 KB
testcase_08 AC 255 ms
13,740 KB
testcase_09 AC 254 ms
13,692 KB
testcase_10 AC 254 ms
13,692 KB
testcase_11 AC 253 ms
13,536 KB
testcase_12 AC 254 ms
13,564 KB
testcase_13 AC 255 ms
13,632 KB
testcase_14 AC 255 ms
13,692 KB
testcase_15 AC 255 ms
13,684 KB
testcase_16 AC 253 ms
13,492 KB
testcase_17 AC 254 ms
13,680 KB
testcase_18 AC 254 ms
13,620 KB
testcase_19 AC 254 ms
13,692 KB
testcase_20 WA -
testcase_21 AC 253 ms
13,432 KB
testcase_22 AC 254 ms
13,612 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 252 ms
13,804 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 AC 253 ms
13,624 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

X = input()
a = [0] * 1000010
i = 2
while i < 1000000:
    if X % i == 0:
        X /= i
        a[i] += 1
    else:
        i += 1
ans = 1
for i in xrange(len(a)):
    if a[i] % 2 == 1:
        ans *= i
print(ans)
0