結果

問題 No.300 平方数
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-06-17 18:05:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 405 bytes
コンパイル時間 455 ms
コンパイル使用メモリ 87,080 KB
実行使用メモリ 77,588 KB
最終ジャッジ日時 2023-09-07 14:20:05
合計ジャッジ時間 6,879 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
72,668 KB
testcase_01 AC 98 ms
73,224 KB
testcase_02 AC 100 ms
77,076 KB
testcase_03 AC 96 ms
73,032 KB
testcase_04 AC 96 ms
73,204 KB
testcase_05 AC 99 ms
72,668 KB
testcase_06 AC 97 ms
72,904 KB
testcase_07 AC 96 ms
73,208 KB
testcase_08 AC 96 ms
72,904 KB
testcase_09 AC 91 ms
72,840 KB
testcase_10 AC 95 ms
73,040 KB
testcase_11 AC 96 ms
72,816 KB
testcase_12 AC 92 ms
73,092 KB
testcase_13 AC 112 ms
77,312 KB
testcase_14 AC 94 ms
72,904 KB
testcase_15 AC 95 ms
72,904 KB
testcase_16 AC 92 ms
72,764 KB
testcase_17 AC 96 ms
73,032 KB
testcase_18 AC 94 ms
73,172 KB
testcase_19 AC 94 ms
72,984 KB
testcase_20 WA -
testcase_21 AC 99 ms
77,076 KB
testcase_22 AC 96 ms
77,356 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 102 ms
77,364 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 AC 97 ms
77,252 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

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
C = Counter(Y)
Y.append(X)
for k,v in C.items():
    
    if v%2==0:
        continue
    ans *= k
print(ans)
0