結果

問題 No.300 平方数
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-06-17 18:04:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 407 bytes
コンパイル時間 1,820 ms
コンパイル使用メモリ 86,964 KB
実行使用メモリ 77,608 KB
最終ジャッジ日時 2023-09-07 14:19:17
合計ジャッジ時間 8,454 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
72,988 KB
testcase_01 AC 96 ms
72,940 KB
testcase_02 AC 103 ms
77,388 KB
testcase_03 AC 99 ms
72,944 KB
testcase_04 AC 97 ms
72,940 KB
testcase_05 AC 93 ms
72,768 KB
testcase_06 AC 96 ms
72,920 KB
testcase_07 AC 98 ms
72,664 KB
testcase_08 AC 95 ms
73,020 KB
testcase_09 AC 98 ms
72,840 KB
testcase_10 AC 96 ms
72,972 KB
testcase_11 AC 96 ms
73,204 KB
testcase_12 AC 95 ms
72,964 KB
testcase_13 AC 111 ms
77,300 KB
testcase_14 AC 95 ms
72,868 KB
testcase_15 AC 95 ms
72,680 KB
testcase_16 AC 94 ms
72,960 KB
testcase_17 AC 94 ms
72,920 KB
testcase_18 AC 102 ms
73,104 KB
testcase_19 AC 97 ms
73,092 KB
testcase_20 WA -
testcase_21 AC 97 ms
77,360 KB
testcase_22 AC 99 ms
77,296 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 98 ms
77,508 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 AC 101 ms
77,292 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(now)
for k,v in C.items():
    
    if v%2==0:
        continue
    ans *= k
print(ans)
0