3 条题解

  • 1
    @ 2021-11-21 21:27:56

    #include <iostream>
    #include <cmath>
    using namespace std;
    int main()
    {
    int n,x,y;
    cin>>n>>x>>y;
    cout<<n-ceil(1.0*y/x);
    return 0;
    }

  • -1
    @ 2021-11-19 16:25:08

    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
    int n,x,y,t,rest;
    cin>>n>>x>>y;
    t=ceil((double)y/x);
    if (t<n) rest=n-t;
    else rest=0;
    cout<<rest<<endl;
    return 0;
    }

  • -2

    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
    int n,x;
    double y;
    cin>>n>>x>>y;
    cout<<n-ceil(y/x);
    return 0;
    }

  • 1

信息

ID
2324
难度
2
分类
(无)
标签
递交数
191
已通过
110
通过率
58%
被复制
4
上传者