結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 257 ms
13,736 KB
testcase_01 AC 253 ms
13,692 KB
testcase_02 AC 254 ms
13,624 KB
testcase_03 AC 254 ms
13,696 KB
testcase_04 AC 254 ms
13,692 KB
testcase_05 AC 252 ms
13,692 KB
testcase_06 AC 253 ms
13,692 KB
testcase_07 AC 253 ms
13,752 KB
testcase_08 AC 253 ms
13,792 KB
testcase_09 AC 254 ms
13,428 KB
testcase_10 AC 253 ms
13,420 KB
testcase_11 AC 252 ms
13,640 KB
testcase_12 AC 252 ms
13,632 KB
testcase_13 AC 256 ms
13,576 KB
testcase_14 AC 254 ms
13,544 KB
testcase_15 AC 253 ms
13,688 KB
testcase_16 AC 252 ms
13,752 KB
testcase_17 AC 255 ms
13,472 KB
testcase_18 AC 255 ms
13,652 KB
testcase_19 AC 252 ms
13,652 KB
testcase_20 WA -
testcase_21 AC 252 ms
13,692 KB
testcase_22 AC 256 ms
13,648 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 253 ms
13,648 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 AC 253 ms
13,692 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

X = input()
a = [0] * 1000010
i = 2
while i < 1000010:
    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