結果
| 問題 |
No.47 ポケットを叩くとビスケットが2倍
|
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-02-29 02:06:42 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 180 bytes |
| コンパイル時間 | 696 ms |
| コンパイル使用メモリ | 59,072 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 12:37:16 |
| 合計ジャッジ時間 | 1,841 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int N;
int ans=0;
cin>>N;
for(int i=0;;i++){
if(pow(2.0,i)>=N){
cout<<i<<endl;
break;
}
}
}
kongarishisyamo