#32837: ans


yp11151049@yphs.tp.edu.tw (801-24)

學校 : 臺北市私立延平高級中學
編號 : 197224
來源 : [203.72.178.1]
最後登入時間 :
2024-01-16 09:26:24
d448. 好熱好熱 -- Xatier | From: [203.72.178.1] | 發表日期 : 2022-11-10 17:16

#include<bits/stdc++.h>
using namespace std;
int main(){
    double t1,t2,t3,x1,x2,x3;
    while(cin>>t1>>t2>>t3>>x1>>x3)
    printf("%f\n",(t2*(x1-x3)+t1*x3-t3*x1)/(t1-t3));
}

 
ZeroJudge Forum