結果

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

ソースコード

diff #

#include <stdio.h>
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000001


int main(){
	
	long long N;
	cin>>N;
	
	rep(i,60){
		N /= 2;
		if(N==0){
			cout<<(1LL << (i))<<endl;
			break;
		}
	}
	
	return 0;
}
0