Bryce1010模板

A - Add More Zero

#include <bits/stdc++.h>

using namespace std;
#define LL long long
int main()
{
    int m,k;
    int ca=1;
    while(cin>>m)
    {
        if(m<64)
           cout<<"Case #"<<ca++<<": "<<(LL)(log10(pow(2,m)-1))<<endl;
        else cout<<"Case #"<<ca++<<": "<<(LL)(m*log10(2))<<endl;
    }
    return 0;
}

相关文章: