点击此处进入题目
或点击此链接:https://codeforc.es/gym/102253/problem/A
化简为公式
log10(pow(2,m))
m*log10(2)
AC代码
#include <stdio.h>
#include <string>
#include <stdlib.h>
#include <math.h>
#include <map>
#include <algorithm>
#include <iostream>
using namespace std;
typedef long long ll;
int main()
{
int sum=0;
int x;
while(cin>>x)
{
sum++;
double tmp;
tmp= log10(2)*x;
printf("Case #%d: %d\n",sum,(int)tmp);
}
return 0;
}