2 solutions

  • 2
    @ 2024-9-28 10:30:10
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	double a,b,c,d,e,f,g;
    	cin>>d>>e>>f>>g;
        a = d*e;
        b = f*g;
        c = (a-b)/(e-g)/1;
        cout<<fixed<<setprecision(2)<<c;
    	return 0 ;
    }
    

    Information

    ID
    843
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    3
    Tags
    (None)
    # Submissions
    151
    Accepted
    56
    Uploaded By