⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1322 floppies.cpp

📁 ACM 威士忌部分答案
💻 CPP
字号:
/*
1322 Floppies
Time Limit : 1000 ms  Memory Limit : 32768 K  Output Limit : 256 K

GUN C++
*/
#include <iostream>
#include <cmath>
using namespace std;

const double Max=1000000000;
const double One=1860000;

int main()
{
    int t,ans;
    double s,size;

    t=1;
    while(cin>>s && s!=0)
    {
        size=ceil(s/2*1.5);
        ans=(int)ceil(size/One);
        
        cout<<"File #"<<t++<<endl;
        cout<<"John needs "<<ans<<" floppies."<<endl<<endl;
    }
    return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -