結果
問題 |
No.2853 A + B Problem
|
ユーザー |
![]() |
提出日時 | 2025-03-10 13:21:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 227 bytes |
コンパイル時間 | 1,549 ms |
コンパイル使用メモリ | 160,352 KB |
実行使用メモリ | 7,324 KB |
最終ジャッジ日時 | 2025-03-10 13:21:27 |
合計ジャッジ時間 | 3,273 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for(ll i = 0; i < n; i++) int main() { ll N; cin >> N; int b = __builtin_popcountll(N); int ans = (1 << b) - 2; cout << ans << endl; }