結果

問題 No.589 Counting Even
ユーザー vjudge1
提出日時 2025-08-23 15:48:32
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 280 bytes
コンパイル時間 5,637 ms
コンパイル使用メモリ 170,972 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-08-23 15:48:39
合計ジャッジ時間 6,182 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define int long long
#define endl '\n'
using namespace std;
int x;
signed main(){
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	cin >> x;
	if(!x)return cout << 0,0;
	cout << (1ll << (64 - __builtin_clzll(x) - __builtin_popcountll(x))) - 1; 
}
0