結果

問題 No.2853 A + B Problem
ユーザー MM
提出日時 2024-08-25 13:38:55
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 442 bytes
コンパイル時間 7,326 ms
コンパイル使用メモリ 334,716 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-08-25 13:39:07
合計ジャッジ時間 7,299 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#include<atcoder/all>
#define chmin(x,y) (x) = min((x),(y))
#define chmax(x,y) (x) = max((x),(y))
using namespace std;
using namespace atcoder;
using ll = long long;
const ll mod = 998244353;
using mint = modint998244353;
using Graph = vector<vector<int>>;

int main(){
  // input
  ll N; cin >> N;
  
  // solve
  int K = __builtin_popcount(ll(N));
  
  cout << (K >= 2 ? (1LL << K) - 2 : 0) << endl;
  
  // output
}
0