'commit'
This commit is contained in:
11
TangDou/AoSaiYiBenTong/YBT1005.cpp
Normal file
11
TangDou/AoSaiYiBenTong/YBT1005.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
int x, a, y, b;
|
||||
cin >> x >> a >> y >> b;
|
||||
float z = 1.0 * (y * b - x * a) / (b - a);
|
||||
printf("%.2f",z);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user