Description:
Accept:
#include <iostream>
#include <cmath>
using namespace std;
unsigned long long int n, result = 1;
int main()
{
cin >> n;
while (pow(2, result) < n)
{
result++;
}
cout << result-1 << endl;
return 0;
}
Description:
Accept:
#include <iostream>
#include <cmath>
using namespace std;
unsigned long long int n, result = 1;
int main()
{
cin >> n;
while (pow(2, result) < n)
{
result++;
}
cout << result-1 << endl;
return 0;
}