結果

問題 No.300 平方数
ユーザー ああいいああいい
提出日時 2022-01-28 15:02:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 84,676 KB
最終ジャッジ日時 2023-08-28 12:22:34
合計ジャッジ時間 7,625 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
84,464 KB
testcase_01 AC 113 ms
84,312 KB
testcase_02 AC 116 ms
84,300 KB
testcase_03 AC 115 ms
84,444 KB
testcase_04 AC 110 ms
84,248 KB
testcase_05 AC 111 ms
84,252 KB
testcase_06 AC 118 ms
84,408 KB
testcase_07 AC 119 ms
84,332 KB
testcase_08 AC 112 ms
84,300 KB
testcase_09 AC 114 ms
84,332 KB
testcase_10 AC 111 ms
84,096 KB
testcase_11 AC 110 ms
84,336 KB
testcase_12 AC 112 ms
84,200 KB
testcase_13 AC 111 ms
84,548 KB
testcase_14 AC 110 ms
84,312 KB
testcase_15 AC 111 ms
84,304 KB
testcase_16 AC 112 ms
84,328 KB
testcase_17 AC 112 ms
84,456 KB
testcase_18 AC 115 ms
84,300 KB
testcase_19 AC 114 ms
84,404 KB
testcase_20 WA -
testcase_21 AC 118 ms
84,340 KB
testcase_22 AC 115 ms
84,388 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 113 ms
84,584 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 AC 118 ms
84,472 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

X = int(input())
ans = 1

C = 10 ** 6
dat = [0] * C
for i in range(2,C):
    if dat[i] == 0:
        for j in range(i*2,C,i):
            dat[j] = 1
        count = 0
        while X % i == 0:
            count += 1
            X //= i
        if count & 1:
            ans *= i
print(ans)
0