結果

問題 No.2853 A + B Problem
ユーザー Today03
提出日時 2024-08-29 13:36:19
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 224 bytes
コンパイル時間 1,603 ms
コンパイル使用メモリ 192,784 KB
最終ジャッジ日時 2025-02-24 02:41:16
ジャッジサーバーID
(参考情報)
judge1 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INF = 1e9 + 10;
const ll INFL = 4e18;

int main() {
    ll N;
    cin >> N;
    ll ans = __builtin_popcountll(N);
    cout << --ans * 2 << endl;
}
0