結果

問題 No.1372 Median of Submasks
ユーザー soldraysoldray
提出日時 2021-02-28 16:24:30
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 711 ms
コンパイル使用メモリ 117,120 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-02 18:16:51
合計ジャッジ時間 1,514 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <iostream>

using namespace std;

#define LL long long

int main() {
  LL N; cin >> N;
  int bits = 0;
  
  while (N != 0) {
    N >>= 1;
    bits++;
  }

  cout << (1l << (bits - 1)) << endl;
}
0