mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1001.cpp
This commit is contained in:
parent
173ceb2822
commit
129bff285d
15
HDOJ/Multi-University Training Contest/2017/Team 1/1001.cpp
Normal file
15
HDOJ/Multi-University Training Contest/2017/Team 1/1001.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <cmath>
|
||||
#include <cstdio>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int m;
|
||||
int cc=1;
|
||||
while(scanf("%d",&m)==1)
|
||||
{
|
||||
int k=m*log(2)/log(10);
|
||||
printf("Case #%d: %d\n",cc,k);
|
||||
++cc;
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user