简单模拟。
#define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
#include <algorithm>
#include <deque>
#include <iostream>
#include <string>
#include <math.h>
using namespace std;
int x, y, z, t1, t2, t3;
int stime;
int etime;
int main() {
scanf("%d %d %d %d %d %d", &x, &y, &z, &t1, &t2, &t3);
stime = abs(x - y)*t1;
etime = abs(x - z)*t2 + 3 * t3 + abs(x - y)*t2;
if (etime <= stime) {
printf("YES\n");
}
else {
printf("NO\n");
}
//system("pause");
return 0;
}