Solution to the problem number 436 of AceptaelReto - 436.

Any questions do not hesitate to contact.

#include<bits/stdc++.h>
using namespace std;
int main() {
    double n,b;
    while(scanf("%lf%lf",&n,&b) ==2) {
        double sol=0;
        int num=0;
        n/=1000000;
        while(n<b)
        {
            num++;
            sol+=n;
            n*=2;
        }
        cout<<num<<endl;
    }
    return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!