結果
| 問題 |
No.2853 A + B Problem
|
| コンテスト | |
| ユーザー |
yu23578
|
| 提出日時 | 2025-08-12 22:44:21 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 217 bytes |
| コンパイル時間 | 3,111 ms |
| コンパイル使用メモリ | 274,668 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-08-12 22:44:26 |
| 合計ジャッジ時間 | 4,472 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 29 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
int N;
signed main(){
cin>>N;
int cnt = 0;
for(int i = 0; i < 61; i ++){
cnt += ((N & (1<<i)) > 0);
}
cout << (1<<cnt) - 2 << "\n";
}
yu23578