You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.5 KiB

2 years ago
#include <bits/stdc++.h>
// 1253 距离
/*
3 0.5 2/31.5 3 60 0.5 2/31
*/
using namespace std;
/*
1
v,t,s
3v+ 2v/3*(t+1.5-3-0.5)=s
v*t=s
3v+60+2v/3*(t+1-3-0.5-60/v)=s
3v+ 2v/3*(t+1.5-3-0.5)=v*t
9v+2v(t+1.5-3-0.5)=3vt 3
9+2(t-2)=3t v
9+2t-4=3t
t=5
v*t=s => s=v*5 t=5
3v+60+2v/3*(2.5-60/v)=5v s=v*5
2v-60=2v/3*(2.5-60/v)
v-30=v/3*(2.5-60/v) 2
3v-90=2.5v-60 3
0.5v=30
v=60
s=5v
s=5*60=300
*/
int main() {
return 0;
}
/*
2
6060
2/30.5
v,
60/(2/3v)-60/v=0.5 => 90/v-60/v=0.5 => 30=0.5v => v = 60
3v+ 2v/3*(t+1.5-3-0.5)=v*t v=60
180+40*(t-2)=60t => 180-80=20t => t=5
s=t*v=60*5=300
*/