結果

問題 No.378 名声値を稼ごう
ユーザー JunOnumaJunOnuma
提出日時 2017-06-12 15:53:52
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 2,000 ms
コード長 84 bytes
コンパイル時間 724 ms
コンパイル使用メモリ 6,504 KB
実行使用メモリ 5,968 KB
最終ジャッジ日時 2023-09-12 12:59:17
合計ジャッジ時間 1,070 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,860 KB
testcase_01 AC 11 ms
5,940 KB
testcase_02 AC 11 ms
5,948 KB
testcase_03 AC 11 ms
5,932 KB
testcase_04 AC 11 ms
5,968 KB
testcase_05 AC 11 ms
5,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(raw_input())
p = 2 * n
q = 0
while n > 0:
    q += n
    n /= 2
print p - q
0