結果
| 問題 | No.47 ポケットを叩くとビスケットが2倍 |
| コンテスト | |
| ユーザー |
184
|
| 提出日時 | 2014-10-21 23:57:35 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 377 bytes |
| 記録 | |
| コンパイル時間 | 642 ms |
| コンパイル使用メモリ | 85,756 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-04 02:43:16 |
| 合計ジャッジ時間 | 1,476 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <iostream>
#include <map>
#include <vector>
#include <queue>
using namespace std;
//namaega 184
int main(){
int n;
scanf("%d",&n);//%d%d%d%d",&n,&v,&x,&y,&ax,&ay);
int ans=0;
unsigned long long a=1;
while(n>a){a<<=1;ans++;}
printf("%d\n",ans);
return 0;
}
184