結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー kyomachi_yswr
提出日時 2019-04-21 11:18:55
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 407 bytes
コンパイル時間 778 ms
コンパイル使用メモリ 83,208 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-05 05:49:58
合計ジャッジ時間 1,526 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <climits>
#include <numeric>
#include <cmath>
#include <queue>
#include <sstream>
#include <string.h>

using namespace std;
typedef long long ll;

int main()
{
  int n;
  cin >> n;
  int i = 1;
  int cnt = 0;
  while(i < n) {
    i *= 2;
    cnt++;
  }
  cout << cnt << endl;
  return 0;
}
0