mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
19 lines
363 B
C++
19 lines
363 B
C++
|
#include <stdio.h>
|
||
|
int main()
|
||
|
{
|
||
|
double in;
|
||
|
int out,count = 1;
|
||
|
while(scanf("%lf",&in)!=EOF,in!=0)
|
||
|
{
|
||
|
in *= 0.75;
|
||
|
in /= (1.86*1000000);
|
||
|
out = (int)in;
|
||
|
if(in - out != 0)
|
||
|
{
|
||
|
out++;
|
||
|
}
|
||
|
printf("File #%d\nJohn needs %d floppies.\n\n",count++,out);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|