結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー koturn
提出日時 2016-02-10 13:41:00
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 258 bytes
コンパイル時間 410 ms
コンパイル使用メモリ 54,652 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-21 22:05:13
合計ジャッジ時間 1,089 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdlib>
#include <iostream>


int
main()
{
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);

  int n;
  std::cin >> n;
  int m = 1, cnt = 0;
  for (; m < n; m *= 2) {
    cnt++;
  }
  std::cout << cnt << std::endl;

  return EXIT_SUCCESS;
}
0