結果
| 問題 |
No.300 平方数
|
| コンテスト | |
| ユーザー |
tnoda_
|
| 提出日時 | 2015-11-17 18:22:00 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 215 bytes |
| コンパイル時間 | 302 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 14,240 KB |
| 最終ジャッジ日時 | 2024-09-13 16:52:30 |
| 合計ジャッジ時間 | 14,970 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 WA * 22 |
ソースコード
X = input()
a = [0] * 1000010
i = 2
while i < 1000010:
if X % i == 0:
X /= i
a[i] += 1
else:
i += 1
ans = 1
for i in xrange(len(a)):
if a[i] % 2 == 1:
ans *= i
print(ans)
tnoda_