結果

問題 No.378 名声値を稼ごう
ユーザー TakoKurageTakoKurage
提出日時 2020-02-25 09:48:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 79 bytes
コンパイル時間 638 ms
コンパイル使用メモリ 10,480 KB
実行使用メモリ 7,896 KB
最終ジャッジ日時 2023-09-15 22:29:58
合計ジャッジ時間 715 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,896 KB
testcase_01 AC 15 ms
7,848 KB
testcase_02 AC 15 ms
7,844 KB
testcase_03 AC 17 ms
7,892 KB
testcase_04 AC 15 ms
7,804 KB
testcase_05 AC 15 ms
7,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = 2 * N
while N > 0:
    ans -= N
    N //= 2

print(ans)
0