結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー chiyoda
提出日時 2016-06-26 17:28:22
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 174 bytes
コンパイル時間 473 ms
コンパイル使用メモリ 55,328 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-11 22:18:52
合計ジャッジ時間 1,312 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 2 WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

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