結果
問題 | No.1372 Median of Submasks |
ユーザー |
![]() |
提出日時 | 2020-10-31 15:28:53 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 227 bytes |
コンパイル時間 | 1,971 ms |
コンパイル使用メモリ | 191,388 KB |
最終ジャッジ日時 | 2025-01-15 18:33:51 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 WA * 14 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {long long N;cin >> N;for (int i = 59; i >= 0; --i) {if (N & (1 << i)) {long long ans = 1 << i;cout << ans << endl;break;}}}