1 solutions

  • 0
    @ 2024-10-29 15:01:06

    这道题就只是简单模拟😋

    #include<bits/stdc++.h>
    using namespace std;
    #define int long long
    signed main()
    {
    	double v=7,a=0;
        double s,x;
        cin>>s>>x;
        while(s-x>a)
        {
            a+=v;
            v*=0.98;
        }
        if(a+v>s+x)
        cout<<"yes";
        else cout<<"no";
    }
    • 1

    Information

    ID
    6989
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    9
    Tags
    (None)
    # Submissions
    404
    Accepted
    37
    Uploaded By