結果
| 問題 |
No.47 ポケットを叩くとビスケットが2倍
|
| ユーザー |
sntea
|
| 提出日時 | 2015-08-26 14:44:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 565 bytes |
| コンパイル時間 | 575 ms |
| コンパイル使用メモリ | 73,244 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-18 14:41:18 |
| 合計ジャッジ時間 | 1,174 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <iostream>
#include <cmath>
#include <climits>
#include <string>
#include <vector>
#include <functional>
#include <algorithm>
#include <sstream>
#include <map>
#include <set>
#include <utility>
#define endl '\n'
#define ALL(a) (a).begin(),(a).end()
#define SZ(a) int((a).size())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
using namespace std;
typedef pair<int,int> P;
typedef long long int LL;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int N;
cin>>N;
int ans=ceil(log2(N));
cout<<ans<<endl;
return 0;
}
sntea