結果

問題 No.378 名声値を稼ごう
ユーザー tonegawa
提出日時 2020-08-15 07:38:38
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 727 ms
コンパイル使用メモリ 68,420 KB
最終ジャッジ日時 2025-01-13 01:07:18
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <vector>
#include <iostream>
using namespace std;
typedef long long ll;

int main() {
  ll n;std::cin >> n;
  ll ans = n;
  while(n){
    n/=2;
    ans -= n;
  }
  std::cout << ans << '\n';
}
0