結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
|
提出日時 | 2025-08-07 12:13:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 333 bytes |
コンパイル時間 | 923 ms |
コンパイル使用メモリ | 100,008 KB |
実行使用メモリ | 7,720 KB |
最終ジャッジ日時 | 2025-08-07 12:13:36 |
合計ジャッジ時間 | 2,194 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include <algorithm> #include <iostream> #include <iomanip> #include <climits> #include <string> #include <vector> #include <cmath> #include <set> #include <map> using namespace std; using ll = long long; int main(void) { ll N, C = 0, B = 1; cin >> N; while (B < N) { C++; B *= 2; } cout << C <<endl; return 0; }