結果

問題 No.300 平方数
ユーザー lllllll88938494lllllll88938494
提出日時 2023-04-27 09:44:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 278 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 81,664 KB
実行使用メモリ 59,264 KB
最終ジャッジ日時 2024-04-28 05:33:00
合計ジャッジ時間 4,379 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
53,888 KB
testcase_01 AC 46 ms
53,632 KB
testcase_02 AC 58 ms
59,136 KB
testcase_03 AC 46 ms
53,248 KB
testcase_04 AC 45 ms
53,376 KB
testcase_05 AC 46 ms
53,248 KB
testcase_06 AC 45 ms
53,504 KB
testcase_07 AC 45 ms
53,632 KB
testcase_08 AC 45 ms
53,632 KB
testcase_09 AC 46 ms
53,376 KB
testcase_10 AC 45 ms
53,376 KB
testcase_11 AC 45 ms
53,504 KB
testcase_12 AC 49 ms
59,008 KB
testcase_13 AC 62 ms
59,008 KB
testcase_14 AC 52 ms
58,880 KB
testcase_15 AC 57 ms
59,264 KB
testcase_16 AC 57 ms
59,264 KB
testcase_17 AC 64 ms
59,264 KB
testcase_18 AC 51 ms
58,880 KB
testcase_19 AC 56 ms
59,264 KB
testcase_20 AC 53 ms
59,136 KB
testcase_21 AC 64 ms
59,008 KB
testcase_22 AC 62 ms
59,008 KB
testcase_23 AC 62 ms
58,880 KB
testcase_24 AC 58 ms
58,880 KB
testcase_25 AC 61 ms
58,880 KB
testcase_26 AC 60 ms
59,264 KB
testcase_27 AC 57 ms
59,008 KB
testcase_28 AC 61 ms
59,264 KB
testcase_29 AC 63 ms
59,136 KB
testcase_30 AC 63 ms
58,752 KB
testcase_31 AC 63 ms
59,136 KB
testcase_32 AC 59 ms
59,136 KB
testcase_33 AC 55 ms
58,880 KB
testcase_34 AC 62 ms
58,880 KB
testcase_35 AC 58 ms
59,136 KB
testcase_36 AC 59 ms
58,880 KB
testcase_37 AC 58 ms
59,264 KB
testcase_38 AC 59 ms
59,136 KB
testcase_39 AC 60 ms
59,264 KB
testcase_40 AC 59 ms
59,136 KB
testcase_41 AC 54 ms
59,264 KB
testcase_42 AC 58 ms
59,264 KB
testcase_43 AC 63 ms
59,264 KB
testcase_44 AC 60 ms
59,008 KB
testcase_45 AC 55 ms
58,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
x=int(input())
t=x
dic=defaultdict(int)
for i in range(2,int(x**0.5) + 1):
    while t%i == 0:
        dic[i] += 1
        t//=i

if t != 1:
    dic[t] += 1

ans = 1
for i,j in dic.items():
    if j%2!=0:
        ans *= i

print(ans)
        
0