結果
| 問題 | No.300 平方数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-17 18:03:18 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 366 bytes |
| 記録 | |
| コンパイル時間 | 249 ms |
| コンパイル使用メモリ | 95,464 KB |
| 実行使用メモリ | 84,328 KB |
| 最終ジャッジ日時 | 2026-07-29 17:59:13 |
| 合計ジャッジ時間 | 5,717 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)