結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー kanzaki_puyo
提出日時 2015-11-05 22:43:06
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 1,143 ms
コンパイル使用メモリ 57,592 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-13 12:52:02
合計ジャッジ時間 1,489 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<string>
using namespace std;

int main()
{
    int N;
    int current = 1;
    int cnt = 0;

    cin >> N;
    while(true){
        if(current*2 < N){
            current += current;
            cnt++;
        }else break;
    }
    cout << cnt + 1 << endl;

    return 0;
}
0