結果
| 問題 | No.47 ポケットを叩くとビスケットが2倍 |
| コンテスト | |
| ユーザー |
rittan015
|
| 提出日時 | 2018-02-23 12:24:18 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 376µs | |
| コード長 | 340 bytes |
| 記録 | |
| コンパイル時間 | 347 ms |
| コンパイル使用メモリ | 87,272 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-09-11 15:17:08 |
| 合計ジャッジ時間 | 1,911 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <math.h>
#define LL long long int
using namespace std;
int main(void)
{
int n;
cin >> n;
int i = 0;
int ans = 0;
if (n == 1) {
cout << ans<<endl;
return 0;
}
while (n > ans) {
i++;
ans = pow(2, i);
}
cout << i << endl;
return 0;
}
rittan015