結果
| 問題 | No.1372 Median of Submasks |
| コンテスト | |
| ユーザー |
kcvlex
|
| 提出日時 | 2021-02-12 19:15:24 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 289 bytes |
| コンパイル時間 | 722 ms |
| コンパイル使用メモリ | 68,860 KB |
| 最終ジャッジ日時 | 2025-01-18 17:51:05 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 1 WA * 23 |
ソースコード
#include <iostream>
#include <cstdint>
#include <vector>
using ll = std::uint64_t;
int main() {
ll n;
std::cin >> n;
ll b = 60;
while (true) {
ll mask = 1ll << b;
if (b & n) break;
b--;
}
std::cout << (1ll << b) << std::endl;
return 0;
}
kcvlex