結果

問題 No.381 名声値を稼ごう Extra
ユーザー rpy3cpprpy3cpp
提出日時 2016-06-18 00:03:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 152 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 12,664 KB
最終ジャッジ日時 2024-04-17 23:44:39
合計ジャッジ時間 562 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,624 KB
testcase_01 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

def solve(N):
    normal = 0
    N1 = N
    while N1:
        normal += N1
        N1 //= 2
    return N * 2 - normal

print(solve(N))
0