提交时间:2024-12-11 20:24:57
运行 ID: 35509
#include<bits/stdc++.h> using namespace std; int main() { int t; scanf("%d",&t); while(t--) { int a,b,c,d; scanf("%d%d%d%d",&a,&b,&c,&d); printf("%.3f\n",double((d-b)*1.00000/(a-c))); } return 0; }