結果
問題 | No.47 ポケットを叩くとビスケットが2倍 |
ユーザー |
![]() |
提出日時 | 2015-11-23 14:50:57 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 320 bytes |
コンパイル時間 | 579 ms |
コンパイル使用メモリ | 69,308 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 20:49:16 |
合計ジャッジ時間 | 1,233 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include <vector> #include <iostream> #include <string> #include <sstream> #include <algorithm> #include <utility> #include <map> #include <cmath> using namespace std; typedef long long ll; typedef pair<ll,ll> P; int main(){ ll n; cin >> n; ll t = 1; int ans = 0; while(t < n)t *= 2,ans++; cout << ans << endl; }