結果
問題 | No.2416 vs Slime |
ユーザー | redoCtA |
提出日時 | 2023-08-12 13:41:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 272 bytes |
コンパイル時間 | 220 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-19 15:54:09 |
合計ジャッジ時間 | 2,407 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 37 |
ソースコード
import sys def input(): return sys.stdin.readline().rstrip() from math import floor def main(): H, A = map(int, input().split()) n = 1 ans = 0 while H: ans += n H //= A n *= 2 print(ans) if __name__ == "__main__": main()