結果

問題 No.1869 Doubling?
ユーザー 👑 H20H20
提出日時 2022-03-11 21:39:27
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 116 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 86,796 KB
実行使用メモリ 79,768 KB
最終ジャッジ日時 2023-10-14 06:36:06
合計ジャッジ時間 11,988 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,452 KB
testcase_01 AC 80 ms
75,400 KB
testcase_02 AC 76 ms
71,400 KB
testcase_03 AC 954 ms
75,680 KB
testcase_04 TLE -
testcase_05 TLE -
testcase_06 AC 75 ms
71,208 KB
testcase_07 AC 75 ms
71,092 KB
testcase_08 AC 74 ms
71,416 KB
testcase_09 WA -
testcase_10 AC 74 ms
71,196 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 79 ms
75,316 KB
testcase_16 AC 80 ms
75,484 KB
testcase_17 AC 81 ms
75,340 KB
testcase_18 AC 80 ms
75,432 KB
testcase_19 AC 80 ms
75,484 KB
testcase_20 AC 79 ms
75,604 KB
testcase_21 AC 78 ms
75,444 KB
testcase_22 AC 78 ms
75,692 KB
testcase_23 AC 79 ms
75,376 KB
testcase_24 TLE -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int, input().split())
ans = M
while N>1 and M>=1:
    M = -(-M//2)
    ans += M
    N-=1
print(ans+N-1)


0