A - Add More Zero

Bryce1010模板

这里写图片描述

#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;
}
posted @ 2018-06-18 20:11  Bryce1010  阅读(58)  评论(0编辑  收藏  举报