結果
| 問題 | No.47 ポケットを叩くとビスケットが2倍 |
| コンテスト | |
| ユーザー |
_yoshih_
|
| 提出日時 | 2018-09-27 23:32:10 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 277µs | |
| コード長 | 370 bytes |
| 記録 | |
| コンパイル時間 | 279 ms |
| コンパイル使用メモリ | 71,936 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-14 11:54:48 |
| 合計ジャッジ時間 | 1,759 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
static void setup()
{
cin.tie(0);
ios::sync_with_stdio(false);
}
static void run()
{
int n;
cin >> n;
int x = 1;
int i = 0;
while (x < n) {
x <<= 1;
i += 1;
}
cout << i << endl;
}
int main(int argc, char **argv)
{
setup();
run();
return 0;
}
_yoshih_