結果
| 問題 |
No.2416 vs Slime
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-12 13:54:30 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 225 bytes |
| コンパイル時間 | 123 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 24,520 KB |
| 最終ジャッジ日時 | 2024-11-19 16:36:30 |
| 合計ジャッジ時間 | 118,318 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 |
| other | TLE * 37 |
ソースコード
H, A = [int(x) for x in input().split()]
slimes = {H: 1}
ans = 0
nxt = {}
while slimes:
for s in slimes:
at = s // A
if at > 0:
if at not in nxt: nxt[at] = 0
nxt[at] += slimes[s] * 2
ans += slimes[s]