結果
| 問題 |
No.47 ポケットを叩くとビスケットが2倍
|
| ユーザー |
nCk_cv
|
| 提出日時 | 2015-12-23 00:16:57 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 379 bytes |
| コンパイル時間 | 669 ms |
| コンパイル使用メモリ | 71,628 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-18 19:22:11 |
| 合計ジャッジ時間 | 1,529 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <iostream>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <algorithm>
#include <string>
#include <map>
#include <queue>
#include <memory.h>
#include <bitset>
using namespace std;
typedef pair<int,int> P;
int main() {
int n;
cin >> n;
int a = 1;
int count = 0;
while(n > a) {
a *= 2;
count++;
}
std::cout << count << std::endl;
}
nCk_cv