結果
| 問題 | No.1372 Median of Submasks |
| コンテスト | |
| ユーザー |
eve__fuyuki
|
| 提出日時 | 2024-07-09 15:14:20 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 355 bytes |
| 記録 | |
| コンパイル時間 | 1,033 ms |
| コンパイル使用メモリ | 214,156 KB |
| 実行使用メモリ | 9,204 KB |
| 最終ジャッジ日時 | 2026-07-05 03:00:46 |
| 合計ジャッジ時間 | 2,139 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
void fast_io() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
int main() {
fast_io();
long long n;
cin >> n;
vector<int> p;
for (int i = 0; i < 60; i++) {
if (n & (1LL << i)) {
p.push_back(i);
}
}
cout << (1LL << p.back()) << endl;
}
eve__fuyuki