結果
問題 | No.300 平方数 |
ユーザー |
|
提出日時 | 2023-06-17 18:03:18 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 366 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 67,848 KB |
最終ジャッジ日時 | 2024-06-25 08:15:36 |
合計ジャッジ時間 | 4,135 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 TLE * 1 -- * 25 |
ソースコード
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)