結果
| 問題 |
No.47 ポケットを叩くとビスケットが2倍
|
| ユーザー |
monnu
|
| 提出日時 | 2020-10-04 18:03:55 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 429 bytes |
| コンパイル時間 | 1,536 ms |
| コンパイル使用メモリ | 167,096 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-19 17:36:36 |
| 合計ジャッジ時間 | 2,313 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using Graph=vector<vector<int>>;
#define MOD 1000000007
/*
srand((unsigned int)time(NULL));
for(int i=0;i<10;i++){
cout<<rand()%6+1<<" ";
}
*/
/*
clock_t start,end;
start=clock();
end=clock();
double t=(double)(end-start)/CLOCKS_PER_SEC;
t<2.9;
*/
int main(){
int N;
cin>>N;
int ans=0;
while(N>1){
ans++;
N=(N-1)/2+1;
}
cout<<ans<<endl;
}
monnu