Solution to the problem number 607 of AceptaelReto - 607.

Any questions do not hesitate to contact.


#include <bits/stdc++.h>
using namespace std;

int main(){
    int n; scanf("%d",&n);
    while(n--){
        int num; scanf("%d",&num);
        for(int i=0; i<35;i++){
            if(pow(2,i)>=num) { printf("%d\n",i); break;}
        }
    }
    return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!