大意略。
思路:推数据。
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <string>
#include <cstring>
#include <cmath>
#include <vector>
#include <queue>
#include <stack>
#include <algorithm>
using namespace std;
int main()
{
int times = 0;
int n;
while(scanf("%d", &n) && n >= 0)
{
int t = 1, ans = 0;
while(t < n) { t *= 2; ans++; }
printf("Case %d: %d\n", ++times, ans);
}
return 0;
}