2 solutions

  • 2
    @ 2024-7-17 19:03:42
    #include <bits/stdc++.h>
    using namespace std;
    int main(int argc, char **argv){
    	int x,a,y,b;
    	scanf("%d %d %d %d",&x,&a,&y,&b);
    	printf("%.2f",1.0 * (y * b - (x * a)) / (b - a))
    	return 0;
    }
    
    • 0
      @ 2024-7-16 19:15:58

      题解在这里:

      校内题解

      校外题解

      • 1

      Information

      ID
      6796
      Time
      1000ms
      Memory
      128MiB
      Difficulty
      1
      Tags
      # Submissions
      20
      Accepted
      8
      Uploaded By