ACMer永远不退役—20170725网络赛题解

来源:互联网 发布:蓝光膜 知乎 编辑:程序博客网 时间:2024/04/27 06:40

1. Add More Zero

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6033

签到题,公式

code:

#include <iostream>#include <cmath>using namespace std;const double ppi=log10(2);int main(){    int m;    int t=1;    //cout<<ppi<<endl;    while(cin>>m)    {        cout<<"Case #"<<t++<<": ";        cout<<(int)(m*ppi)<<endl;    }    return 0;}


原创粉丝点击