結果

問題 No.47 ポケットを叩くとビスケットが2倍
コンテスト
ユーザー keishi7773
提出日時 2019-08-29 14:23:28
言語 C++14
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 5,000 ms
+ 389µs
コード長 347 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 351 ms
コンパイル使用メモリ 88,968 KB
実行使用メモリ 9,904 KB
最終ジャッジ日時 2026-09-25 11:28:33
合計ジャッジ時間 1,590 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <map>
#include <queue>
typedef long long ll;
using namespace std;
#define rep(i, n) for (int i = 0; i <= (int)(n); i++)
#define mod 1000000007

int main(){
	int N;
	cin >> N;
	int ans = 0;
	int B = 1;
	while(B < N){
		B *= 2;
		ans++;
	}
	cout << ans << endl;
}
0