結果
| 問題 | No.47 ポケットを叩くとビスケットが2倍 |
| コンテスト | |
| ユーザー |
knk
|
| 提出日時 | 2017-09-17 15:25:37 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 353 bytes |
| 記録 | |
| コンパイル時間 | 1,633 ms |
| コンパイル使用メモリ | 181,692 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-08 09:01:12 |
| 合計ジャッジ時間 | 2,689 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ul;
typedef signed long long ll;
ul over = 1000000007;
int main(void)
{
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed;
ll a, b;
ll n;
cin >> n;
ll now = 1;
ll ans = 0;
while (now < n) {
now *= 2;
ans++;
}
cout << ans << endl;
return 0;
}
knk