結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー mytkytmytkyt
提出日時 2018-03-27 21:16:14
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 182 bytes
コンパイル時間 507 ms
コンパイル使用メモリ 57,688 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-25 12:52:30
合計ジャッジ時間 1,166 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cmath>
using namespace std;

int main(){
  int N,c=1,count=0;
  cin >> N;
  while(c<N){
    c*=2;
    count++;
  }
  cout << count << endl;
  return 0;
}
0