1 条题解

  • 1
    @ 2022-10-2 18:07:03
    #include<bits/stdc++.h>
    using namespace std;
    int n;
    double h,s1,v,l,k;
    int main()
    {
        cin>>h>>s1>>v>>l>>k>>n;
        double t_max=sqrt(h/5);
        double t_min=sqrt((h-k)/5);
        int i_b=int(s1-t_min*v+l),i_e=int(s1-t_max*v);
        i_b=min(i_b,n);i_e=max(i_e,0);
        cout<<i_b-i_e;
    }
    
    • 1

    信息

    ID
    34
    时间
    1000ms
    内存
    125MiB
    难度
    3
    标签
    递交数
    11
    已通过
    3
    上传者