結果

問題 No.378 名声値を稼ごう
ユーザー roiti46roiti46
提出日時 2016-10-10 20:27:07
言語 Python2
(2.7.18)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 840 ms
コンパイル使用メモリ 6,600 KB
実行使用メモリ 7,908 KB
最終ジャッジ日時 2023-09-12 06:30:11
合計ジャッジ時間 1,395 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
7,876 KB
testcase_01 AC 24 ms
7,760 KB
testcase_02 AC 25 ms
7,852 KB
testcase_03 AC 24 ms
7,872 KB
testcase_04 AC 25 ms
7,908 KB
testcase_05 AC 24 ms
7,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll

N = int(raw_input())
mx = 0
t = 0
while N:
    mx = max(mx, t + 2*N)
    t += N
    N /= 2
print mx - t 
0