2 solutions

  • 0
    @ 2026-5-30 18:20:42

    #include<bits/stdc++.h> using namespace std; int main() { double V,G,M,N; cin>>V; cin>>G; cin>>M; cin>>N; double a=0,b=0; a=V*0.5; if(G<300) { b=M; } else { b=N; } if(a>b) { printf("%.1lf",b); } else { printf("%.1lf",a); } return 0; }

    Information

    ID
    3015
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    7
    Tags
    # Submissions
    50
    Accepted
    12
    Uploaded By