結果

問題 No.1372 Median of Submasks
ユーザー ttkkggww
提出日時 2021-02-05 21:35:24
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 1,802 ms
コンパイル使用メモリ 193,332 KB
最終ジャッジ日時 2025-01-18 12:02:58
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
//#include<atcoder/all>
//using namespace atcoder;
using namespace std;
using ll = long long;


int main(){
	ll n;
	cin >> n;
	int i=0;
	for(;n;i++){
		n/=2;
	}
	cout<<(1LL<<(i-1))<<endl;
}
0