結果

問題 No.300 平方数
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-06-17 18:06:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 129 ms / 1,000 ms
コード長 406 bytes
コンパイル時間 326 ms
コンパイル使用メモリ 87,304 KB
実行使用メモリ 77,572 KB
最終ジャッジ日時 2023-09-07 14:20:28
合計ジャッジ時間 7,428 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
73,092 KB
testcase_01 AC 111 ms
73,256 KB
testcase_02 AC 107 ms
77,308 KB
testcase_03 AC 104 ms
72,828 KB
testcase_04 AC 103 ms
72,996 KB
testcase_05 AC 102 ms
72,984 KB
testcase_06 AC 104 ms
73,064 KB
testcase_07 AC 106 ms
72,820 KB
testcase_08 AC 103 ms
73,028 KB
testcase_09 AC 101 ms
73,096 KB
testcase_10 AC 104 ms
73,224 KB
testcase_11 AC 103 ms
73,092 KB
testcase_12 AC 104 ms
73,276 KB
testcase_13 AC 124 ms
77,492 KB
testcase_14 AC 108 ms
73,024 KB
testcase_15 AC 103 ms
72,956 KB
testcase_16 AC 107 ms
72,916 KB
testcase_17 AC 103 ms
72,976 KB
testcase_18 AC 106 ms
73,156 KB
testcase_19 AC 102 ms
72,968 KB
testcase_20 AC 127 ms
77,380 KB
testcase_21 AC 111 ms
77,308 KB
testcase_22 AC 107 ms
77,384 KB
testcase_23 AC 125 ms
77,388 KB
testcase_24 AC 129 ms
77,260 KB
testcase_25 AC 123 ms
77,248 KB
testcase_26 AC 125 ms
77,296 KB
testcase_27 AC 125 ms
77,388 KB
testcase_28 AC 121 ms
77,444 KB
testcase_29 AC 120 ms
77,572 KB
testcase_30 AC 121 ms
77,300 KB
testcase_31 AC 127 ms
77,384 KB
testcase_32 AC 125 ms
77,292 KB
testcase_33 AC 122 ms
77,252 KB
testcase_34 AC 123 ms
77,348 KB
testcase_35 AC 120 ms
77,436 KB
testcase_36 AC 123 ms
77,332 KB
testcase_37 AC 124 ms
77,336 KB
testcase_38 AC 111 ms
77,552 KB
testcase_39 AC 124 ms
77,472 KB
testcase_40 AC 125 ms
77,472 KB
testcase_41 AC 123 ms
77,240 KB
testcase_42 AC 108 ms
77,400 KB
testcase_43 AC 123 ms
77,568 KB
testcase_44 AC 121 ms
77,296 KB
testcase_45 AC 121 ms
77,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline


X = int(input())
Y = []
ans = 1
now = 2
while X!=1:
    if now>10**6:
        break
    while X%now==0:
        Y.append(now)
        X //= now
    now += 1

Y.append(X)
C = Counter(Y)
for k,v in C.items():
    
    if v%2==0:
        continue
    ans *= k
print(ans)
0