結果

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

ソースコード

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 << (1ll << ans) - 2 << endl;
}
0