結果
問題 |
No.1869 Doubling?
|
ユーザー |
|
提出日時 | 2022-03-11 21:44:04 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 137 bytes |
コンパイル時間 | 214 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-09-16 01:56:04 |
合計ジャッジ時間 | 2,982 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 WA * 9 |
ソースコード
N, M = map(int, input().split()) cnt = N ans = 0 while M > 1 and cnt > 0: cnt -= 1 ans += M M = (M + 1) // 2 print(ans + cnt)