結果
| 問題 |
No.2416 vs Slime
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-12 14:03:26 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 218 bytes |
| コンパイル時間 | 717 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 27,648 KB |
| 最終ジャッジ日時 | 2024-11-19 17:12:09 |
| 合計ジャッジ時間 | 8,401 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 35 TLE * 2 |
ソースコード
h,a = map(int,input().split())
sr = [h]
ans = 0
while True:
if len(sr)==0:
print(ans)
exit()
else:
h_now = sr.pop(0)
if h_now//a!=0:
sr.append(h_now//a)
sr.append(h_now//a)
ans += 1