結果

問題 No.300 平方数
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-06-17 18:03:18
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 366 bytes
コンパイル時間 510 ms
コンパイル使用メモリ 87,204 KB
実行使用メモリ 81,736 KB
最終ジャッジ日時 2023-09-07 14:17:55
合計ジャッジ時間 6,312 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
77,308 KB
testcase_01 AC 109 ms
72,772 KB
testcase_02 AC 112 ms
77,448 KB
testcase_03 AC 111 ms
72,972 KB
testcase_04 AC 113 ms
73,020 KB
testcase_05 AC 111 ms
72,884 KB
testcase_06 AC 110 ms
72,748 KB
testcase_07 AC 110 ms
72,756 KB
testcase_08 AC 109 ms
72,940 KB
testcase_09 AC 109 ms
72,972 KB
testcase_10 AC 112 ms
72,944 KB
testcase_11 AC 111 ms
72,936 KB
testcase_12 AC 107 ms
72,756 KB
testcase_13 AC 126 ms
77,084 KB
testcase_14 AC 109 ms
72,868 KB
testcase_15 AC 110 ms
72,968 KB
testcase_16 AC 109 ms
72,924 KB
testcase_17 AC 110 ms
73,188 KB
testcase_18 AC 110 ms
72,928 KB
testcase_19 AC 109 ms
73,188 KB
testcase_20 TLE -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
権限があれば一括ダウンロードができます

ソースコード

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