#include <iostream> int main() { double height = 100; int times = 0; while (height / 2 >= 0.5) { height /= 2; times++; } std::cout << times + 1 << std::endl; return 0; } /************************************************************** Problem: 1062 User: fuyijun Language: C++ Result: Accepted Time:4 ms Memory:2072 kb ****************************************************************/