結果
問題 |
No.300 平方数
|
ユーザー |
![]() |
提出日時 | 2017-06-22 18:13:42 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 289 bytes |
コンパイル時間 | 66 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 13,768 KB |
最終ジャッジ日時 | 2024-10-02 12:19:55 |
合計ジャッジ時間 | 3,468 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 TLE * 1 -- * 25 |
ソースコード
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