結果

問題 No.300 平方数
ユーザー akitsugu777akitsugu777
提出日時 2019-08-02 16:57:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 152 ms / 1,000 ms
コード長 235 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 10,560 KB
実行使用メモリ 7,916 KB
最終ジャッジ日時 2023-09-18 18:18:08
合計ジャッジ時間 5,222 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,796 KB
testcase_01 AC 15 ms
7,792 KB
testcase_02 AC 90 ms
7,780 KB
testcase_03 AC 15 ms
7,788 KB
testcase_04 AC 15 ms
7,744 KB
testcase_05 AC 15 ms
7,796 KB
testcase_06 AC 15 ms
7,888 KB
testcase_07 AC 15 ms
7,728 KB
testcase_08 AC 15 ms
7,900 KB
testcase_09 AC 15 ms
7,888 KB
testcase_10 AC 15 ms
7,804 KB
testcase_11 AC 15 ms
7,892 KB
testcase_12 AC 17 ms
7,712 KB
testcase_13 AC 152 ms
7,908 KB
testcase_14 AC 26 ms
7,912 KB
testcase_15 AC 70 ms
7,916 KB
testcase_16 AC 63 ms
7,816 KB
testcase_17 AC 122 ms
7,816 KB
testcase_18 AC 24 ms
7,772 KB
testcase_19 AC 56 ms
7,884 KB
testcase_20 AC 41 ms
7,712 KB
testcase_21 AC 122 ms
7,784 KB
testcase_22 AC 111 ms
7,780 KB
testcase_23 AC 131 ms
7,820 KB
testcase_24 AC 92 ms
7,740 KB
testcase_25 AC 129 ms
7,888 KB
testcase_26 AC 115 ms
7,740 KB
testcase_27 AC 85 ms
7,816 KB
testcase_28 AC 124 ms
7,784 KB
testcase_29 AC 139 ms
7,816 KB
testcase_30 AC 143 ms
7,708 KB
testcase_31 AC 147 ms
7,748 KB
testcase_32 AC 97 ms
7,832 KB
testcase_33 AC 62 ms
7,880 KB
testcase_34 AC 139 ms
7,716 KB
testcase_35 AC 96 ms
7,748 KB
testcase_36 AC 111 ms
7,720 KB
testcase_37 AC 93 ms
7,752 KB
testcase_38 AC 88 ms
7,900 KB
testcase_39 AC 105 ms
7,732 KB
testcase_40 AC 93 ms
7,816 KB
testcase_41 AC 57 ms
7,784 KB
testcase_42 AC 79 ms
7,808 KB
testcase_43 AC 121 ms
7,716 KB
testcase_44 AC 98 ms
7,824 KB
testcase_45 AC 58 ms
7,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x = int(input())

l = []
for i in range(2, int(x**0.5)+1):
    while x % i == 0:
        x //= i
        l.append(i)
if x > 1:
    l.append(x)

y = 1
s = set(l)
for i in s:
    z = l.count(i)
    if z % 2 != 0:
        y *= i

print(y)
0