1 solutions

  • 0
    @ 2025-12-12 16:17:53
    #include<bits/stdc++.h>
    using namespace std;
    int main() {
    	double x,a,y,b;
    	cin>>x>>a>>y>>b;
    //	k*a+t=a*x
    //	k*b+t=y*b 
    	cout<<fixed<<setprecision(2)<<(a*x-b*y)/(a-b);
    	
    }
    
    • 1

    Information

    ID
    596
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    9
    Tags
    # Submissions
    25
    Accepted
    2
    Uploaded By