結果

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

ソースコード

diff #

#include <iostream>
using namespace std;

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