結果
| 問題 |
No.595 登山
|
| ユーザー |
vjudge1
|
| 提出日時 | 2025-08-23 15:47:18 |
| 言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 297 bytes |
| コンパイル時間 | 4,973 ms |
| コンパイル使用メモリ | 169,944 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-08-23 15:47:24 |
| 合計ジャッジ時間 | 4,104 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 25 |
ソースコード
#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;
}
vjudge1