結果
| 問題 | No.47 ポケットを叩くとビスケットが2倍 |
| コンテスト | |
| ユーザー |
fushime2
|
| 提出日時 | 2016-09-23 15:58:47 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 312µs | |
| コード長 | 348 bytes |
| 記録 | |
| コンパイル時間 | 781 ms |
| コンパイル使用メモリ | 176,156 KB |
| 実行使用メモリ | 9,908 KB |
| 最終ジャッジ日時 | 2026-09-25 12:32:58 |
| 合計ジャッジ時間 | 2,153 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define FOR(i,a,b) for(int i=(a);i<(int)(b);i++)
#define rep(i,n) FOR(i,0,n)
#define ALL(x) (x).begin(),(x).end()
int main() {
int n; cin >> n;
int c = 1;
ll ans = 0;
while(c < n) {
c *= 2;
++ans;
}
cout << ans << "\n";
return 0;
}
fushime2