結果
| 問題 | No.300 平方数 |
| コンテスト | |
| ユーザー |
JunOnuma
|
| 提出日時 | 2017-06-22 18:13:42 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 289 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 81,920 KB |
| 最終ジャッジ日時 | 2026-07-18 15:04:48 |
| 合計ジャッジ時間 | 7,022 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 TLE * 2 -- * 22 |
ソースコード
from collections import Counter
x = int(raw_input())
l = []
while x % 2 == 0:
l.append(2)
x /= 2
d = 3
while x != 1:
if x % d == 0:
l.append(d)
x /= d
else:
d += 2
c = Counter(l)
a = 1
for k,v in c.items():
if v % 2 == 1:
a *= k
print a
JunOnuma