結果
問題 |
No.300 平方数
|
ユーザー |
|
提出日時 | 2023-06-17 18:04:39 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 407 bytes |
コンパイル時間 | 312 ms |
コンパイル使用メモリ | 82,592 KB |
実行使用メモリ | 63,416 KB |
最終ジャッジ日時 | 2024-06-25 08:16:59 |
合計ジャッジ時間 | 3,953 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 WA * 22 |
ソースコード
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)