結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー elphe
提出日時 2024-06-27 16:02:49
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 23 ms / 5,000 ms
コード長 224 bytes
コンパイル時間 476 ms
コンパイル使用メモリ 65,500 KB
最終ジャッジ日時 2025-02-22 00:47:02
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

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

    int N, ans;
    cin >> N;
    for (ans = 0; (1 << ans) < N; ++ans);
    cout << ans << '\n';
    return 0;
}
0