buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
#define pii pair<int, int>
#define vi vector<int>
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define fi first
#define se second
#define sz(x) (x).size()
#define all(x) (x).begin(), (x).end() // Forward traversal
#define rall(x) (x).rbegin, (x).rend(... | #include <bits/stdc++.h>
using namespace std;
#define pii pair<int, int>
#define vi vector<int>
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define fi first
#define se second
#define sz(x) (x).size()
#define all(x) (x).begin(), (x).end() // Forward traversal
#define rall(x) (x).rbegin, (x).rend(... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 874 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int a, b, v, w, t;
cin >> a >> v >> b >> w >> t;
if (v <= w) {
cout << "NO" << endl;
return 0;
}
if (fabs(a - b) < (fabs(v - w) * t)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int a, b, v, w, t;
cin >> a >> v >> b >> w >> t;
if (v <= w) {
cout << "NO" << endl;
return 0;
}
if (fabs(a - b) <= (fabs(v - w) * t)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 100 |
#include <bits/stdc++.h>
using namespace std;
long long A, V, B, W, T;
int main() {
cin >> A >> V >> B >> W >> T;
cout << ((abs(A - B) <= abs(V - W) * T) ? "YES" : "NO") << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
long long A, V, B, W, T;
int main() {
cin >> A >> V >> B >> W >> T;
cout << ((abs(A - B) <= (V - W) * T) ? "YES" : "NO") << endl;
return 0;
} | [["-", 15, 23, 0, 16, 12, 16, 31, 2, 63, 22]] | 1 | 71 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double a, v, b, w, t;
cin >> a >> v >> b >> w >> t;
if (v <= w) {
cout << "NO" << endl;
return 0;
}
if (max(a - b, b - a) / (v - w) < t) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, v, b, w, t;
cin >> a >> v >> b >> w >> t;
if (v <= w) {
cout << "NO" << endl;
return 0;
}
if (max(a - b, b - a) / (v - w) <= t) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 96 |
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if(V <= W ):
print("NO")
exit()
t = V - W
if((B-A) / T <= t):
print("YES")
else:
print("NO")
| A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if(V <= W ):
print("NO")
exit()
t = V - W
if(abs(B-A) / t <= T):
print("YES")
else:
print("NO")
| [["+", 15, 23, 0, 666, 0, 657, 31, 652, 63, 22], ["-", 0, 57, 15, 23, 0, 666, 0, 657, 12, 22], ["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 19], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 667, 19], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 0, 22]] | 5 | 88 |
a = list(map(int,input().split()))
b = list(map(int,input().split()))
T = int(input())
lon = abs(a[0]-b[0])
if a[1]*T - b[1]*T >= lon :
print("Yes")
else :
print("No") | a = list(map(int,input().split()))
b = list(map(int,input().split()))
T = int(input())
lon = abs(a[0]-b[0])
if a[1]*T - b[1]*T >= lon :
print("YES")
else :
print("NO") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 87 |
#!/usr/bin/env python3
def main():
A, V = map(int, input().split())
B, W = map(int, input().split())
T =int(input())
AB = abs(A-B)
if V < W:
ans='No'
elif AB <= (V-W)*T:
ans='Yes'
else:
ans='No'
print(ans)
if __name__ == "__main__":
main()
| #!/usr/bin/env python3
def main():
A, V = map(int, input().split())
B, W = map(int, input().split())
T =int(input())
AB = abs(A-B)
if V < W:
ans='NO'
elif AB <= (V-W)*T:
ans='YES'
else:
ans='NO'
print(ans)
if __name__ == "__main__":
main()
| [["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 101 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int a, b, v, w, t;
cin >> a >> v >> b >> w >> t;
if (v == w) {
cout << "NO" << endl;
return 0;
}
if (v - w < 0) {
cout << "NO" << endl;
return 0;
}
if (abs(a - b) / (v - w) <= t) {
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
long long a, b, v, w, t;
cin >> a >> v >> b >> w >> t;
if (v == w) {
cout << "NO" << endl;
return 0;
}
if (v - w < 0) {
cout << "NO" << endl;
return 0;
}
if (abs(a - b) <= (v - w) * t)... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]] | 1 | 122 |
#include <bits/stdc++.h>
using namespace std;
//
int main() {
long long A, B, V, W, T;
cin >> A >> V >> B >> W >> T;
long long currentDiff = abs(A - B);
long long runDiff = abs(V - W);
// cout << runDiff * T << endl;
// if ((A + (V * T)) >= (B + (W * T))) {
if (currentDiff <= (runDiff * T)) {
cout <... | #include <bits/stdc++.h>
using namespace std;
//
int main() {
long long A, B, V, W, T;
cin >> A >> V >> B >> W >> T;
long long currentDiff = abs(A - B);
long long runDiff = (V - W);
// cout << runDiff * T << endl;
// if ((A + (V * T)) >= (B + (W * T))) {
if (currentDiff <= (runDiff * T)) {
cout << "... | [["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22]] | 1 | 88 |
def resolve():
A, V = [int(i) for i in input().split()]
B, W = [int(i) for i in input().split()]
T = int(input())
if V <= W:
print("NO")
elif (V - W) * T < (A - B):
print("NO")
else:
print("YES")
resolve() | def resolve():
A, V = [int(i) for i in input().split()]
B, W = [int(i) for i in input().split()]
T = int(input())
if V <= W:
print("NO")
elif (V - W) * T < abs(A - B):
print("NO")
else:
print("YES")
resolve() | [["+", 0, 57, 75, 665, 15, 666, 0, 652, 63, 22]] | 5 | 96 |
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if (V-W)<=0:
print ("NO")
exit(0)
if A > B:
if (A-B) // (V-W) <= T:
print("YES")
else:
print("NO")
else:
if (B-A) // (V-W) <= T:
print("YES")
else:
print("NO") | A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if (V-W)<=0:
print ("NO")
exit(0)
if A > B:
if (A-B) / (V-W) <= T:
print("YES")
else:
print("NO")
else:
if (B-A) / (V-W) <= T:
print("YES")
else:
print("NO") | [["-", 64, 196, 0, 57, 15, 666, 0, 657, 17, 676], ["+", 64, 196, 0, 57, 15, 666, 0, 657, 17, 85], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 676], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 85]] | 5 | 124 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long A, B, V, W, T;
cin >> A >> V;
cin >> B >> W;
cin >> T;
if (abs(A - B) < (V - W) * T) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long A, B, V, W, T;
cin >> A >> V;
cin >> B >> W;
cin >> T;
if (abs(A - B) <= (V - W) * T) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 80 |
#include <bits/stdc++.h>
#include <iostream>
#define ll long long
#define ld long double
#define IO \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
#include <iostream>
#define ll long long
#define ld long double
#define IO \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | [["-", 31, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19]] | 1 | 135 |
/// Bismillahir Rahmanir Rahim
/* Mohammad Morsalin
Dept of ICE, NSTU
*/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ll long long
#define pb push_back
#define mp make_pair
#define endl "\n"
#define int long long
#define f0... | /// Bismillahir Rahmanir Rahim
/* Mohammad Morsalin
Dept of ICE, NSTU
*/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ll long long
#define pb push_back
#define mp make_pair
#define endl "\n"
#define int long long
#define f0... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 517 |
// -----------------------------------
// author : MatsuTaku
// country : Japan
// created : 06/13/20 21:03:09
// -----------------------------------
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
ll a, v, b, w, t;
cin >> a... | // -----------------------------------
// author : MatsuTaku
// country : Japan
// created : 06/13/20 21:03:09
// -----------------------------------
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
ll a, v, b, w, t;
cin >> a... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 160], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 161]] | 1 | 103 |
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if W >= V:
print('NO')
elif (abs(B-A))/(W-V) <= T:
print('YES')
else:
print('NO') | A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if W >= V:
print('NO')
elif (abs(B-A))/(V-W) <= T:
print('YES')
else:
print('NO') | [["-", 15, 666, 0, 657, 12, 23, 0, 657, 31, 22], ["-", 15, 666, 0, 657, 12, 23, 0, 657, 17, 33], ["+", 15, 666, 0, 657, 12, 23, 0, 657, 17, 33], ["+", 15, 666, 0, 657, 12, 23, 0, 657, 12, 22]] | 5 | 83 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll N = 2e5 + 77;
int main() {
int tt = 1;
// scanf("%d", &tt);
while (tt--) {
ll a, b, v, w, t;
cin >> a >> v >> b >> w >> t;
ll d = abs(a - b), u = abs(w - v);
if (w >= v) {
puts("NO");
return 0;
}
ll ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll N = 2e5 + 77;
int main() {
int tt = 1;
// scanf("%d", &tt);
while (tt--) {
ll a, b, v, w, t;
cin >> a >> v >> b >> w >> t;
ll d = abs(a - b), u = abs(w - v);
if (w >= v) {
puts("NO");
return 0;
}
ll ... | [["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 33], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]] | 1 | 133 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int INF = 1001001001;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int a, b, v, w, t;
cin >> a >> v >> b >> w >> t;
if (v * t >= w * t + abs(a - b) || a... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int INF = 1001001001;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll a, b, v, w, t;
cin >> a >> v >> b >> w >> t;
if (v * t >= w * t + abs(a - b))
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 118 |
# coding:utf-8
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
ds = w - v
dd = abs(b - a)
if ds >= 0:
print('NO')
exit()
else:
ans = dd / ds
if ans <= t:
print('YES')
exit()
print('NO')
| # coding:utf-8
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
ds = w - v
dd = abs(b - a)
if ds >= 0:
print('NO')
exit()
else:
ans = dd / ds
if -(ans) <= t:
print('YES')
exit()
print('NO')
| [["+", 8, 196, 0, 57, 15, 666, 0, 664, 17, 33], ["+", 0, 57, 15, 666, 0, 664, 28, 23, 0, 24], ["+", 0, 57, 15, 666, 0, 664, 28, 23, 0, 25]] | 5 | 95 |
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
distance = abs(b-a)
speed = abs(v-w)*t
if(distance <= speed):print("YES")
else:print("NO") | a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
distance = abs(b-a)
speed = (v-w)*t
if(distance <= speed):print("YES")
else:print("NO") | [["-", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22]] | 5 | 79 |
#include <iostream>
using namespace std;
int main(void) {
long long A, B, V, W, T;
cin >> A >> V;
cin >> B >> W;
cin >> T;
if (T * (V - W) > abs(A - B)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
long long A, B, V, W, T;
cin >> A >> V;
cin >> B >> W;
cin >> T;
if (T * (V - W) >= abs(A - B)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 82 |
a,b=map(int,input().split())
c,d=map(int,input().split())
e=int(input())
if abs(a-c)<e*(b-d):
print('YES')
else:
print('NO') | a,b=map(int,input().split())
c,d=map(int,input().split())
e=int(input())
if abs(a-c)<=e*(b-d):
print('YES')
else:
print('NO') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 70 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int n2 = sc.nextInt();
int m2 = sc.nextInt();
int t = sc.nextInt();
if (Math.abs(n - n2) < (m - m2) * t) {
System.out.... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextInt();
long m = sc.nextInt();
long n2 = sc.nextInt();
long m2 = sc.nextInt();
long t = sc.nextInt();
if (Math.abs(n - n2) <= (m - m2) * t) {
Syste... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]] | 3 | 132 |
#define _USE_MATH_DEFINES
#include <algorithm>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
using namespace std;
#define ll long long
#define ull u... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
using namespace std;
#define ll long long
#define ull u... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 47], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33]] | 1 | 522 |
#include <bits/stdc++.h>
using namespace std;
#define all(a) a.begin(), a.end()
using ll = long long;
const int INF = 1 << 30;
const ll INFll = 1LL << 62;
const int mod = int(1e9) + 7;
using P = pair<ll, ll>;
using ld = long double;
int main() {
ll a, v;
cin >> a >> v;
ll b, w;
cin >> b >> w;
ll t;
cin >>... | #include <bits/stdc++.h>
using namespace std;
#define all(a) a.begin(), a.end()
using ll = long long;
const int INF = 1 << 30;
const ll INFll = 1LL << 62;
const int mod = int(1e9) + 7;
using P = pair<ll, ll>;
using ld = long double;
int main() {
ll a, v;
cin >> a >> v;
ll b, w;
cin >> b >> w;
ll t;
cin >>... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 155 |
from sys import stdin
input = stdin.readline
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if B > A:
if (V - W) * T + A >= B:
print("YES")
else:
print("NO")
else:
if (V - W) * T + A <= B:
print("YES")
else:
print("NO")
| from sys import stdin
input = stdin.readline
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if B > A:
if (V - W) * T + A >= B:
print("YES")
else:
print("NO")
else:
if (W - V) * T + A <= B:
print("YES")
else:
print("NO")
| [["-", 0, 657, 31, 657, 31, 23, 0, 657, 31, 22], ["-", 0, 657, 31, 657, 31, 23, 0, 657, 17, 33], ["+", 0, 657, 31, 657, 31, 23, 0, 657, 17, 33], ["+", 0, 657, 31, 657, 31, 23, 0, 657, 12, 22]] | 5 | 110 |
a, speedA = map(int, input().split())
b, speedB = map(int, input().split())
t = int(input())
def do():
if speedB >= speedA:
print("NO")
return 0
d = abs(a - b)
x = speedA - speedB
#if d % x != 0:
# print("NO")
# return 0
reachTime = x / d
if reachTime <= t:
... | a, speedA = map(int, input().split())
b, speedB = map(int, input().split())
t = int(input())
def do():
if speedB >= speedA:
print("NO")
return 0
d = abs(a - b)
x = speedA - speedB
#if d % x != 0:
# print("NO")
# return 0
reachTime = d / x
if reachTime <= t:
... | [["-", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 105 |
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <climits>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <functional>
#incl... | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <climits>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <functional>
#incl... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 165 |
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if A < B:
if A + V * T < B + W * T:
print('NO')
else:
print('YES')
else:
if A - V * T < B - W * T:
print('YES')
else:
print('NO') | A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if A < B:
if A + V * T < B + W * T:
print('NO')
else:
print('YES')
else:
if A - V * T > B - W * T:
print('NO')
else:
print('YES')
| [["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 47], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 101 |
#include <bits/stdc++.h>
using namespace std;
#define res register int
#define ll long long
//#define cccgift
#define lowbit(x) ((x) & -(x))
#define rep(i, l, r) for (res i = l, _r = r; i <= _r; ++i)
#define per(i, r, l) for (res i = r, _l = l; i >= _l; --i)
#define mkp make_pair
#define pb push_back
#define mem0(a) me... | #include <bits/stdc++.h>
using namespace std;
#define res register int
#define ll long long
//#define cccgift
#define lowbit(x) ((x) & -(x))
#define rep(i, l, r) for (res i = l, _r = r; i <= _r; ++i)
#define per(i, r, l) for (res i = r, _l = l; i >= _l; --i)
#define mkp make_pair
#define pb push_back
#define mem0(a) me... | [["+", 0, 57, 15, 339, 51, 16, 12, 2, 63, 22], ["+", 15, 339, 51, 16, 12, 2, 3, 4, 0, 24], ["+", 15, 339, 51, 16, 12, 2, 3, 4, 0, 25]] | 1 | 413 |
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())
if v-w<=0:
print("NO")
else:
if abs(a-b)//(v-w)<=t:
print("YES")
else:
print("NO") | a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())
if v-w<=0:
print("NO")
else:
if abs(a-b)/(v-w)<=t:
print("YES")
else:
print("NO") | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 676], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 85]] | 5 | 85 |
#include <bits/stdc++.h> //Carefully Crafted by hetp111
using namespace std;
#define int long long
#define double long double
#define all(v) (v).begin(), (v).end()
#define vi vector<int>
#define vvi vector<vi>
#define pii pair<int, int>
#define vii vector<pii>
#define MOD (1000000007)
#define MOD2 (998244353)
#define M... | #include <bits/stdc++.h> //Carefully Crafted by hetp111
using namespace std;
#define int long long
#define double long double
#define all(v) (v).begin(), (v).end()
#define vi vector<int>
#define vvi vector<vi>
#define pii pair<int, int>
#define vii vector<pii>
#define MOD (1000000007)
#define MOD2 (998244353)
#define M... | [["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 0, 43, 49, 50, 51, 16, 12, 16, 31, 22], ["+", 0, 43, 49, 50, 51, 16, 12, 16, 17, 48], ["+", 0, 43, 49, 50, 51, 16, 12, 16, 12, 22]] | 1 | 421 |
a, v = list(map(int, input().split()))
b, w = list(map(int, input().split()))
t = int(input())
if v <= w:
print('NO')
exit()
if abs(a - b) <= (w - v) * t:
print('YES')
else:
print('NO')
| a, v = list(map(int, input().split()))
b, w = list(map(int, input().split()))
t = int(input())
if v <= w:
print('NO')
exit()
if abs(a - b) <= (v - w) * t:
print('YES')
else:
print('NO')
| [["-", 15, 666, 0, 657, 31, 23, 0, 657, 31, 22], ["-", 15, 666, 0, 657, 31, 23, 0, 657, 17, 33], ["+", 15, 666, 0, 657, 31, 23, 0, 657, 17, 33], ["+", 15, 666, 0, 657, 31, 23, 0, 657, 12, 22]] | 5 | 90 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (n); i++)
typedef pair<ll, ll> P;
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }
int main() {
ll a, v, b, w;
cin >> a >> v >> b >> w;
ll t;
cin >> t;... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (n); i++)
typedef pair<ll, ll> P;
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }
int main() {
ll a, v, b, w;
cin >> a >> v >> b >> w;
ll t;
cin >> t;... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 173 |
#include <bits/stdc++.h>
#include <type_traits>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define ddrep(i, n) for (int i = n; i > 0; --i)
#define srep(i, s, t) for (in... | #include <bits/stdc++.h>
#include <type_traits>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define ddrep(i, n) for (int i = n; i > 0; --i)
#define srep(i, s, t) for (in... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 489 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pii pair<int, int>
#define ull unsigned ll
#define f first
#define s second
#define ALL(x) x.begin(), x.end()
#define SZ(x) (int)x.size()
#define SQ(x) (x) * (x)
#define MN(a, b) a = min(a, (__typeof__(a))(b))
#define MX(a, b) a = max(a, (__type... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pii pair<int, int>
#define ull unsigned ll
#define f first
#define s second
#define ALL(x) x.begin(), x.end()
#define SZ(x) (int)x.size()
#define SQ(x) (x) * (x)
#define MN(a, b) a = min(a, (__typeof__(a))(b))
#define MX(a, b) a = max(a, (__type... | [["+", 51, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 16, 31, 16, 31, 2, 3, 4, 0, 25]] | 1 | 381 |
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if V > W:
t = max(A-B, B-A) / (V-W)
if t < T:
print("YES")
else:
print("NO")
else:
print("NO") | A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if V > W:
t = max(A-B, B-A) / (V-W)
if t <= T:
print("YES")
else:
print("NO")
else:
print("NO") | [["-", 0, 57, 64, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 667, 19]] | 5 | 90 |
a,v,b,w,t=map(int,open(0).read().split())
if v==w:
print("YES" if a==b else "NO")
elif v>w:
print("YES" if abs(a-b)/(v-w)<t else "NO")
else:
print("NO") | a,v,b,w,t=map(int,open(0).read().split())
if v==w:
print("YES" if a==b else "NO")
elif v>w:
print("YES" if abs(a-b)/(v-w)<=t else "NO")
else:
print("NO") | [["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 18], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 19]] | 5 | 84 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i <= (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using ull = unsigned long long;
const ll K_MAX = 1e5 + 5;
int main() {
ll a, b, v, w, t;
cin >> a >> v >> b >> w >> t;
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i <= (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using ull = unsigned long long;
const ll K_MAX = 1e5 + 5;
int main() {
ll a, b, v, w, t;
cin >> a >> v >> b >> w >> t;
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 123 |
import sys
sys.setrecursionlimit(10**8)
def ii(): return int(sys.stdin.readline())
def mi(): return map(int, sys.stdin.readline().split())
def li(): return list(map(int, sys.stdin.readline().split()))
def li2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]
def dp2(ini, i, j): return [[ini]*i... | import sys
sys.setrecursionlimit(10**8)
def ii(): return int(sys.stdin.readline())
def mi(): return map(int, sys.stdin.readline().split())
def li(): return list(map(int, sys.stdin.readline().split()))
def li2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]
def dp2(ini, i, j): return [[ini]*i... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 255 |
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if v <= w:
print("NO")
elif abs(a - b) / (v - w) < t:
print("YES")
else:
print("NO")
| a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if v <= w:
print("NO")
elif abs(a - b) / (v - w) <= t:
print("YES")
else:
print("NO")
| [["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 19]] | 5 | 81 |
#include <bits/stdc++.h>
#define rep(a, n) for (ll a = 0; a < (n); ++a)
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
typedef vector<vector<ll>> Graph;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T ... | #include <bits/stdc++.h>
#define rep(a, n) for (ll a = 0; a < (n); ++a)
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
typedef vector<vector<ll>> Graph;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 207 |
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
if T*(V-W) >= B-A:
print('YES')
else:
print('NO') | A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
if T*(V-W) >= abs(B-A):
print('YES')
else:
print('NO') | [["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]] | 5 | 67 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define MOOD 1000000007
const double PI = 3.14159265358979323846;
using namespace std;
using ll = long long;
using P = pair<int, int>... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define MOOD 1000000007
const double PI = 3.14159265358979323846;
using namespace std;
using ll = long long;
using P = pair<int, int>... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 1,729 |
#include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main() {
long long A, V, B, W, T;
cin >> A >> V >> B >> W >> T;
if (A - B <= (V + W) * T)
cout << "YES";
else
cout << "NO";
}
| #include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main() {
long long A, V, B, W, T;
cin >> A >> V >> B >> W >> T;
if (abs(A - B) <= (V - W) * T)
cout << "YES";
else
cout << "NO";
}
| [["+", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["+", 15, 339, 51, 16, 31, 2, 3, 4, 0, 24], ["+", 15, 339, 51, 16, 31, 2, 3, 4, 0, 25], ["-", 51, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 17, 33]] | 1 | 65 |
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())
if(w>=v):
print('NO')
else:
ans=abs(v-w)/abs(a-b)
if(ans>t):
print('NO')
else:
print('YES')
| a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())
if(w>=v):
print('NO')
else:
ans=abs(a-b)/abs(v-w)
if(ans>t):
print('NO')
else:
print('YES')
| [["-", 12, 657, 31, 652, 3, 4, 0, 657, 31, 22], ["+", 12, 657, 31, 652, 3, 4, 0, 657, 31, 22], ["-", 12, 657, 31, 652, 3, 4, 0, 657, 12, 22], ["+", 12, 657, 31, 652, 3, 4, 0, 657, 12, 22], ["-", 12, 657, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 12, 657, 12, 652, 3, 4, 0, 657, 31, 22], ["-", 12, 657, 12, 652, 3, 4, 0, 657,... | 5 | 91 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, x, n) for (int i = x; i < (n); i++)
#define ALL(n) begin(n), end(n)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
ll a, v, b, w, t;
cin >> a >> v >> b >> w >> t;
string ans = "NO";
if (... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, x, n) for (int i = x; i < (n); i++)
#define ALL(n) begin(n), end(n)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
ll a, v, b, w, t;
cin >> a >> v >> b >> w >> t;
string ans = "NO";
if (... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 114 |
#include <bits/stdc++.h>
#define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; i++)
#define FORR(i, n) for (ll i = (ll)n - 1LL; i >= 0LL; i--)
#define rep(i, n) FOR(i, 0, n)
#define ALL(x) begin(x), end(x)
using namespace std;
using ll = long long;
constexpr ll Mod = 998244353;
constexpr ll mod = 1e9 + 7;
constexpr ll inf... | #include <bits/stdc++.h>
#define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; i++)
#define FORR(i, n) for (ll i = (ll)n - 1LL; i >= 0LL; i--)
#define rep(i, n) FOR(i, 0, n)
#define ALL(x) begin(x), end(x)
using namespace std;
using ll = long long;
constexpr ll Mod = 998244353;
constexpr ll mod = 1e9 + 7;
constexpr ll inf... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 255 |
[a,v] = [int(i) for i in input().split()]
[b,w] = [int(i) for i in input().split()]
t = int(input())
if w >= v:
print("NO")
else:
if abs(a-b)/(w-v) <= t:
print("YES")
else:
print("NO")
| [a,v] = [int(i) for i in input().split()]
[b,w] = [int(i) for i in input().split()]
t = int(input())
if w >= v:
print("NO")
else:
if abs(a-b)/(v-w) <= t:
print("YES")
else:
print("NO")
| [["-", 15, 666, 0, 657, 12, 23, 0, 657, 31, 22], ["-", 15, 666, 0, 657, 12, 23, 0, 657, 17, 33], ["+", 15, 666, 0, 657, 12, 23, 0, 657, 17, 33], ["+", 15, 666, 0, 657, 12, 23, 0, 657, 12, 22]] | 5 | 95 |
a,v=map(int, input().split())
b,w=map(int, input().split())
t=int(input())
dist=b-a
dist2=(v-w)*t
if dist>dist2:
print("NO")
else:
print("YES") | a,v=map(int, input().split())
b,w=map(int, input().split())
t=int(input())
dist=abs(b-a)
dist2=(v-w)*t
if dist>dist2:
print("NO")
else:
print("YES") | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 73 |
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
k = v-w
m = abs(a-b)
if k*t >= m:
print("Yes")
else:
print("No") | a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
k = v-w
m = abs(a-b)
if k*t >= m:
print("YES")
else:
print("NO") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 74 |
#include "bits/stdc++.h"
#define rep(i, N) for (int i = 0; i < N; i++)
typedef long long ll;
const int mod = 1e9 + 7;
using namespace std;
int main(void) {
ll A, B, V, W, T;
cin >> A >> V >> B >> W >> T;
ll dist = abs(A - B);
ll x = V - W;
cout << (x * T >= dist ? "Yes" : "No") << endl;
return 0;
} | #include "bits/stdc++.h"
#define rep(i, N) for (int i = 0; i < N; i++)
typedef long long ll;
const int mod = 1e9 + 7;
using namespace std;
int main(void) {
ll A, B, V, W, T;
cin >> A >> V >> B >> W >> T;
ll dist = abs(A - B);
ll x = V - W;
cout << (x * T >= dist ? "YES" : "NO") << endl;
return 0;
} | [["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 99 |
#include <bits/stdc++.h>
#define F first
#define S second
#define MP make_pair
#define pb push_back
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define LCM(a, b) (a) / __gcd((a), (b)) * (b)
#define CEIL(a, b) (a) / (b) + (((a) % (b)) ? 1 : 0)
#define ln '\n'
using namespace std;
using LL = ... | #include <bits/stdc++.h>
#define F first
#define S second
#define MP make_pair
#define pb push_back
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define LCM(a, b) (a) / __gcd((a), (b)) * (b)
#define CEIL(a, b) (a) / (b) + (((a) % (b)) ? 1 : 0)
#define ln '\n'
using namespace std;
using LL = ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 57, 75, 76, 0, 9, 0, 43, 39, 40], ["+", 0, 57, 75, 76, 0, 9, 0, 43, 39, 78], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 361 |
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
D = abs(A-B)
S = abs(V-W)
print("YNEOS"[D>T*S::2]) | A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
D = abs(A-B)
S = V-W
print("YNEOS"[D>T*S::2]) | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 72 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll A, B, V, W, T;
cin >> A >> V >> B >> W >> T;
if (abs(V - W) * T >= abs(B - A))
cout << "YES" << endl;
else
cout << "NO" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll A, B, V, W, T;
cin >> A >> V >> B >> W >> T;
if ((V - W) * T >= abs(B - A))
cout << "YES" << endl;
else
cout << "NO" << endl;
}
| [["-", 15, 339, 51, 16, 31, 16, 31, 2, 63, 22]] | 1 | 76 |
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;
int main() {
double A, V, B, W, T;
cin >> A >> V >> B >> W >> T;
double difA = abs(A - B);
double difV = V - W;
bool ok = true;
if (difV <= 0) {
ok = false;
}
if (ok)... | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;
int main() {
double A, V, B, W, T;
cin >> A >> V >> B >> W >> T;
double difA = abs(A - B);
double difV = V - W;
bool ok = true;
if (difV <= 0) {
ok = false;
}
if (ok)... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 134 |
#define _USE_MATH_DEFINES
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#i... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#i... | [["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 24], ["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 25]] | 1 | 390 |
#include <bits/stdc++.h>
#define f(i, a, b) for (ll i = a; i < b; i++)
#define af(i, a, b) for (ll i = a; i >= b; i--)
#define rep(i, a, b, k) for (ll i = a; i < b; i += k)
#define arep(i, a, b, k) for (ll i = a; i >= b; i -= k)
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define sz(a) ... | #include <bits/stdc++.h>
#define f(i, a, b) for (ll i = a; i < b; i++)
#define af(i, a, b) for (ll i = a; i >= b; i--)
#define rep(i, a, b, k) for (ll i = a; i < b; i += k)
#define arep(i, a, b, k) for (ll i = a; i >= b; i -= k)
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define sz(a) ... | [["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 198 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, v, w, t, c;
cin >> a >> v >> b >> w >> t;
c = abs(a - b);
if (c > (v - w) * t || v <= w) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return (0);
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, v, w, t, c;
cin >> a >> v >> b >> w >> t;
c = abs(a - b);
if (c > (v - w) * t || v <= w) {
cout << "NO" << endl;
} else {
cout << "YES" << endl;
}
return (0);
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 89 |
#include <cstdio>
int main() {
int a, v;
scanf("%d %d", &a, &v);
int b, w;
scanf("%d %d", &b, &w);
int t;
scanf("%d", &t);
long long la, ra;
la = a - 1ll * v * t;
ra = a + 1ll * v * t;
long long lb, rb;
lb = b - 1ll * w * t;
rb = b + 1ll * w * t;
printf("%s\n", la <= lb && rb <= ra ? "Yes" : ... | #include <cstdio>
int main() {
int a, v;
scanf("%d %d", &a, &v);
int b, w;
scanf("%d %d", &b, &w);
int t;
scanf("%d", &t);
long long la, ra;
la = a - 1ll * v * t;
ra = a + 1ll * v * t;
long long lb, rb;
lb = b - 1ll * w * t;
rb = b + 1ll * w * t;
printf("%s\n", la <= lb && rb <= ra ? "YES" : ... | [["-", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["-", 0, 2, 3, 4, 0, 41, 75, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 75, 5, 0, 6]] | 1 | 133 |
a,v=list(map(int, input().split()))
b,w=list(map(int, input().split()))
t=int(input())
if v<=w:
print('NO')
elif (a-b)<=t*(v-w):
print('YES')
else:
print('NO')
| a,v=list(map(int, input().split()))
b,w=list(map(int, input().split()))
t=int(input())
if v<=w:
print('NO')
elif (abs(a-b))<=t*(v-w):
print('YES')
else:
print('NO')
| [["+", 75, 665, 15, 666, 0, 23, 0, 652, 63, 22], ["+", 15, 666, 0, 23, 0, 652, 3, 4, 0, 24], ["+", 15, 666, 0, 23, 0, 652, 3, 4, 0, 25]] | 5 | 86 |
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
b = abs(A - B) + W*T
a = V*T
if a < b:
print("No")
else:
print("Yes") | A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
b = abs(A - B) + W*T
a = V*T
if a < b:
print("NO")
else:
print("YES") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 76 |
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if v - w > 0 and abs(a-b) / (v-w) > t:
print("YES")
else:
print("NO") | a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if v - w > 0 and abs(a-b) / (v-w) <= t:
print("YES")
else:
print("NO") | [["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19]] | 5 | 76 |
a, v = gets.split(" ").map(&:to_i)
b, w = gets.split(" ").map(&:to_i)
t = gets.to_i
dist = (a-b).abs
sp = v - w
puts (dist <= sp * t) ? "Yes" : "No" | a, v = gets.split(" ").map(&:to_i)
b, w = gets.split(" ").map(&:to_i)
t = gets.to_i
dist = (a-b).abs
sp = v - w
puts (dist <= sp * t) ? "YES" : "NO" | [["-", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6]] | 4 | 71 |
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
if abs(A-B) <= abs(V-W)*T:
print("YES")
else:
print("NO") | A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
if abs(A-B) <= abs(V-W)*T and V > W :
print("YES")
else:
print("NO") | [["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47]] | 5 | 71 |
from math import gcd
from math import factorial as f
from math import ceil,floor,sqrt
import math
import bisect
import re
import heapq
from copy import deepcopy
import itertools
from itertools import permutations
from sys import exit
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda :... | from math import gcd
from math import factorial as f
from math import ceil,floor,sqrt
import math
import bisect
import re
import heapq
from copy import deepcopy
import itertools
from itertools import permutations
from sys import exit
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda :... | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 676], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 0, 14, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 48]] | 5 | 166 |
oni_x, oni_speed = map(int, input().split())
chi_x, chi_speed = map(int, input().split())
time = int(input())
ans = False
if oni_speed > chi_speed:
sa = abs(oni_x, chi_x)
sa_speed = oni_speed - chi_speed
if sa_speed*time >= sa:
ans = True
if ans:
print('YES')
else:
print('NO') | oni_x, oni_speed = map(int, input().split())
chi_x, chi_speed = map(int, input().split())
time = int(input())
ans = False
if oni_speed > chi_speed:
sa = abs(oni_x - chi_x)
sa_speed = oni_speed - chi_speed
if sa_speed*time >= sa:
ans = True
if ans:
print('YES')
else:
print('NO') | [["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 33]] | 5 | 88 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int64_t A, B, V, W, T;
cin >> A >> V;
cin >> B >> W;
cin >> T;
bool X = false;
if (V <= W) {
X = false;
} else if (abs(A - B) / (V - W) <= T) {
X = true;
}
if (X)
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;... | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t A, B, V, W, T;
cin >> A >> V;
cin >> B >> W;
cin >> T;
bool X = false;
if (V <= W) {
X = false;
} else if (abs(A - B) <= (V - W) * T) {
X = true;
}
if (X)
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]] | 1 | 104 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int A, B, V, W, T;
cin >> A >> V >> B >> W >> T;
if ((V - W) * T > abs(A - B)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int A, B, V, W, T;
cin >> A >> V >> B >> W >> T;
if ((V - W) * T >= abs(A - B)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 78 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, v, w, t;
int ab, vw;
cin >> a >> v >> b >> w >> t;
ab = abs(a - b);
vw = v - w;
if (vw <= 0) {
cout << "NO" << endl;
} else {
if ((long double)(vw) / ab <= (l... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, v, w, t;
int ab, vw;
cin >> a >> v >> b >> w >> t;
ab = abs(a - b);
vw = v - w;
if (vw <= 0) {
cout << "NO" << endl;
} else {
if ((long double)(ab) / vw <= (l... | [["-", 51, 16, 31, 16, 31, 74, 51, 23, 0, 22], ["+", 51, 16, 31, 16, 31, 74, 51, 23, 0, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 123 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long a, v, b, w, t;
cin >> a >> v >> b >> w >> t;
if (a < b) {
if (a + (v * t) >= b + (w * t)) {
cout << "YES";
} else {
cout << "NO";
}
} else {
if (a - (v + w) <= b - (w * t)) {
cout << "YES";
} else {
co... | #include <bits/stdc++.h>
using namespace std;
int main() {
long a, v, b, w, t;
cin >> a >> v >> b >> w >> t;
if (a < b) {
if (a + (v * t) >= b + (w * t)) {
cout << "YES";
} else {
cout << "NO";
}
} else {
if (a - (v * t) <= b - (w * t)) {
cout << "YES";
} else {
co... | [["-", 51, 16, 31, 16, 12, 23, 0, 16, 17, 72], ["-", 51, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["+", 51, 16, 31, 16, 12, 23, 0, 16, 17, 48], ["+", 51, 16, 31, 16, 12, 23, 0, 16, 12, 22]] | 1 | 119 |
import sys
input = sys.stdin.readline
def main():
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if A <= B:
r = (B+ W*T) - (A + V*T)
if r <= 0:
print("YES")
else:
print("NO")
else:
r = (A - V*T) - (B- W*T)
... | import sys
input = sys.stdin.readline
def main():
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if A <= B:
r = (B+ W*T) - (A + V*T)
if r <= 0:
print("YES")
else:
print("NO")
else:
r = (B- W*T)-(A - V*T)
... | [["-", 0, 662, 12, 657, 31, 23, 0, 657, 31, 22], ["+", 0, 662, 12, 657, 31, 23, 0, 657, 31, 22], ["-", 12, 657, 31, 23, 0, 657, 12, 657, 31, 22], ["+", 12, 657, 31, 23, 0, 657, 12, 657, 31, 22], ["-", 0, 662, 12, 657, 12, 23, 0, 657, 31, 22], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 31, 22], ["-", 12, 657, 12, 23, 0, 657... | 5 | 143 |
#include <bits/stdc++.h>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
using ll = long long;
using P = pair<int, in... | #include <bits/stdc++.h>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
using ll = long long;
using P = pair<int, in... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 243 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = int64_t;
int main() {
ll a, b;
ll v, w;
ll t;
cin >> a >> v;
cin >> b >> w;
cin >> t;
if (w >= v) {
cout << "NO" << endl;
exit(0);
}
ll diff = abs(v - w) * t;
if (abs(a - b) < diff)
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = int64_t;
int main() {
ll a, b;
ll v, w;
ll t;
cin >> a >> v;
cin >> b >> w;
cin >> t;
if (w >= v) {
cout << "NO" << endl;
exit(0);
}
ll diff = abs(v - w) * t;
if (abs(a - b) <= diff)
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 115 |
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
if a<b:
if v>=w:
if b-a<=(v-w)*t:
print('YES')
exit()
print('NO')
else:
if v>=w:
if a-b<=(v-w)*t:
print('YES')
exit()
else:
print('NO')
| a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
if a<b:
if v>=w:
if b-a<=(v-w)*t:
print('YES')
exit()
print('NO')
else:
if v>=w:
if a-b<=(v-w)*t:
print('YES')
exit()
print('NO')
| [["-", 0, 57, 64, 196, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 64, 196, 0, 57, 75, 76, 0, 102]] | 5 | 115 |
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if abs(a - b) + (w * t) < (v * t):
print("YES")
else:
print("NO") | a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if abs(a - b) + (w * t) <= (v * t):
print("YES")
else:
print("NO") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 74 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
private static final BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
public static void main(String args[]) throws Exception {
String[] tokens = br.readLine().split(" ");
int a = Integer.par... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
private static final BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
public static void main(String args[]) throws Exception {
String[] tokens = br.readLine().split(" ");
int a = Integer.par... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 266 |
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
if V <= W:
print("NO")
else:
if abs((B-A))/(W-V) <= T:
print("YES")
else:
print("NO") | A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
if V <= W:
print("NO")
else:
if abs((B-A))/(V-W) <= T:
print("YES")
else:
print("NO") | [["-", 15, 666, 0, 657, 12, 23, 0, 657, 31, 22], ["-", 15, 666, 0, 657, 12, 23, 0, 657, 17, 33], ["+", 15, 666, 0, 657, 12, 23, 0, 657, 17, 33], ["+", 15, 666, 0, 657, 12, 23, 0, 657, 12, 22]] | 5 | 85 |
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
ans = "No"
move = v*t - w*t
distance = abs(b - a)
if move > 0 and move >= distance:
ans = "YES"
print(ans) | a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
ans = "NO"
move = v*t - w*t
distance = abs(b - a)
if move > 0 and move >= distance:
ans = "YES"
print(ans) | [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 80 |
#include <algorithm>
#include <cfenv>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdlib.h>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define vint vector<ll>
#defin... | #include <algorithm>
#include <cfenv>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdlib.h>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define vint vector<ll>
#defin... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 175 |
A, V = list(map(int, input().split()))
B, W = list(map(int, input().split()))
T = int(input())
d = abs(A - B)
V_AB = V - W
if (V_AB <= 0):
print("NO")
elif (d / V_AB >= T):
print("NO")
else:
print("YES")
| A, V = list(map(int, input().split()))
B, W = list(map(int, input().split()))
T = int(input())
d = abs(A - B)
V_AB = V - W
if (V_AB <= 0):
print("NO")
elif (d / V_AB > T):
print("NO")
else:
print("YES")
| [["-", 0, 57, 75, 665, 15, 23, 0, 666, 667, 20], ["+", 0, 57, 75, 665, 15, 23, 0, 666, 667, 47]] | 5 | 95 |
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
l = abs(a - b)
u = abs(v - w)
#print(l)
#print(u*t)
if l > u * t:
print('NO')
else:
print('YES')
| a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
l = abs(a - b)
u = v-w
# print(l)
# print(u*t)
if l > u * t:
print('NO')
else:
print('YES')
| [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 79 |
A,V= map(int , input().split())
B,W= map(int , input().split())
T = int(input())
if V>W:
S = (B-A) //(V-W)
if S<=T:
print("YES")
else:
print("NO")
else:
print("NO") | A,V= map(int , input().split())
B,W= map(int , input().split())
T = int(input())
if V>W:
S = (abs(B-A)) /(V-W)
if S<=T:
print("YES")
else:
print("NO")
else:
print("NO") | [["+", 0, 662, 12, 657, 31, 23, 0, 652, 63, 22], ["+", 12, 657, 31, 23, 0, 652, 3, 4, 0, 24], ["-", 64, 196, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 25], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 85]] | 5 | 85 |
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if V <= W:
print('NO')
else:
if abs(A-B)/(W-V) <= T:
print('YES')
else:
print('NO') | import math
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if V <= W:
print('NO')
else:
if abs(A-B)/abs(W-V) <= T:
print('YES')
else:
print('NO') | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 0, 57, 15, 666, 0, 657, 12, 652, 63, 22]] | 5 | 83 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define pb push_back
using namespace std;
typedef long long ll;
int main() {
ll a, v, b, w, t;
cin >> a >> v >> b >> w >> t;
if (abs(b - a) < (v - w) * t) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define pb push_back
using namespace std;
typedef long long ll;
int main() {
ll a, v, b, w, t;
cin >> a >> v >> b >> w >> t;
if (abs(b - a) <= (v - w) * t) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 89 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll A, B;
ll V, W;
ll T;
cin >> A >> V;
cin >> B >> W;
cin >> T;
if (W < V && abs(B - A) <= (W - V) * T) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll A, B;
ll V, W;
ll T;
cin >> A >> V;
cin >> B >> W;
cin >> T;
if (W < V && abs(B - A) <= (V - W) * T) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | [["-", 12, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["-", 12, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 12, 16, 31, 23, 0, 16, 12, 22]] | 1 | 88 |
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())
if w>=v:
print("NO")
elif abs(b-a)>=t*abs(w-v):
print("NO")
else:
print("YES") | a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())
if w>=v:
print("NO")
elif abs(b-a)>t*abs(w-v):
print("NO")
else:
print("YES") | [["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 20], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 47]] | 5 | 82 |
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if v-w > 0 and abs(a-b) <= t*(v-w):
print("Yes")
else:
print("No")
| a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if v-w > 0 and abs(a-b) <= t*(v-w):
print("YES")
else:
print("NO")
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 76 |
#include <bits/stdc++.h>
#include <chrono>
using namespace std;
template <class T> inline string toString(T x) {
ostringstream sout;
sout << x;
return sout.str();
}
// typedef
//------------------------------------------
typedef pair<int, int> PII;
typedef long long LL;
typedef pair<LL, LL> PLL;
// container u... | #include <bits/stdc++.h>
#include <chrono>
using namespace std;
template <class T> inline string toString(T x) {
ostringstream sout;
sout << x;
return sout.str();
}
// typedef
//------------------------------------------
typedef pair<int, int> PII;
typedef long long LL;
typedef pair<LL, LL> PLL;
// container u... | [["-", 15, 339, 51, 16, 12, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 48]] | 1 | 190 |
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define COIN const int
#define ite iterator
#define PII pair<int, int>
#define PSI pair<string, int>
#define PIS pair<int, string>
#define REP(i, n) for ((i) = 0; (i) < (int)(n); (i)++)
#define REPD(i, n) for ((i) = (n)-1; (i) >= 0; (i)--)
#define ... | #include <bits/stdc++.h>
#define ll long long
#define ld long double
#define COIN const int
#define ite iterator
#define PII pair<int, int>
#define PSI pair<string, int>
#define PIS pair<int, string>
#define REP(i, n) for ((i) = 0; (i) < (int)(n); (i)++)
#define REPD(i, n) for ((i) = (n)-1; (i) >= 0; (i)--)
#define ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 188 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = 1; i < (int)(n); i++)
#define dunk(n) cout << n << endl
#define all(a) (a).begin(), (a).end()
typedef pair<int, int> P;
typedef long long ll;
int main() {
ll a, b,... | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = 1; i < (int)(n); i++)
#define dunk(n) cout << n << endl
#define all(a) (a).begin(), (a).end()
typedef pair<int, int> P;
typedef long long ll;
int main() {
ll a, b,... | [["-", 15, 339, 51, 16, 12, 16, 31, 2, 63, 22], ["-", 12, 16, 31, 2, 3, 4, 0, 23, 0, 24], ["-", 12, 16, 31, 2, 3, 4, 0, 23, 0, 25]] | 1 | 117 |
import java.io.*;
import java.util.*;
/**
* Created by Ayushi on 13 Jun 2020.
* Problem:
* Round:
*/
public class Main {
public static void main(String[] args) throws IOException {
StringTokenizer st;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
st = new StringTokenizer... | import java.io.*;
import java.util.*;
/**
* Created by Ayushi on 13 Jun 2020.
* Problem:
* Round:
*/
public class Main {
public static void main(String[] args) throws IOException {
StringTokenizer st;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
st = new StringTokenizer... | [["-", 0, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 16, 12, 16, 31, 23, 0, 16, 17, 48], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 17, 48], ["+", 0, 16, 12, 16, 31, 23, 0, 16, 12, 22]] | 3 | 210 |
import numpy as np
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if np.abs(A - B) <= T*(V - W):
print("YES")
else:
print("No") | import numpy as np
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if np.abs(A - B) <= T*(V - W):
print("YES")
else:
print("NO") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 76 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int64_t A, V, B, W, T;
cin >> A >> V;
cin >> B >> W;
cin >> T;
if (V <= W) {
cout << "NO" << endl;
} else {
if (abs(B - A) <= T * (V - W)) {
cout << "Yes" << endl;
} else {
cout << "NO" << endl;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t A, V, B, W, T;
cin >> A >> V;
cin >> B >> W;
cin >> T;
if (V <= W) {
cout << "NO" << endl;
} else {
if (abs(B - A) <= T * (V - W)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 96 |
#include <stdio.h>
#include <stdlib.h>
int main(void) {
long long a, b, v, w, t, A, B;
scanf("%lld", &a);
scanf("%lld", &v);
scanf("%lld", &b);
scanf("%lld", &w);
scanf("%lld", &t);
if (A < B) {
A = a + v * t;
B = b + w * t;
} else {
A = -1 * a + v * t;
B = -1 * b + w * t;
}
if (A >... | #include <stdio.h>
#include <stdlib.h>
int main(void) {
long long a, b, v, w, t, A, B;
scanf("%lld", &a);
scanf("%lld", &v);
scanf("%lld", &b);
scanf("%lld", &w);
scanf("%lld", &t);
if (a < b) {
A = a + v * t;
B = b + w * t;
} else {
A = -1 * a + v * t;
B = -1 * b + w * t;
}
if (A >... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 148 |
#include <bits/stdc++.h>
#define rep(i, a) for (int i = 0; i < a; i++)
#define all(v) v.begin(), v.end()
#define dcout cout << fixed << setprecision(15)
#define arep(i, a) for (auto i : a)
#define F first
#define S second
#define VE vector<int>
#define pb(x) push_back(x)
#define MOD 1000000007
#define INF 10000000000
#... | #include <bits/stdc++.h>
#define rep(i, a) for (int i = 0; i < a; i++)
#define all(v) v.begin(), v.end()
#define dcout cout << fixed << setprecision(15)
#define arep(i, a) for (auto i : a)
#define F first
#define S second
#define VE vector<int>
#define pb(x) push_back(x)
#define MOD 1000000007
#define INF 10000000000
#... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 72], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 33]] | 1 | 166 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
ll a, b, v, w, t;
cin >> a >> v >> b >> w >> t;
if (v <= w) {
cout << "NO" << endl;
return 0;
}
double velocity = v - w;
double distance = abs(a - b);
double time = distance / velocity;
if (time < t && w < v)
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
ll a, b, v, w, t;
cin >> a >> v >> b >> w >> t;
if (v <= w) {
cout << "NO" << endl;
return 0;
}
double velocity = v - w;
double distance = abs(a - b);
double time = distance / velocity;
if (time <= t)
cout <<... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 108 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
long long A, B, V, W, T;
cin >> A >> V >> B >> W >> T;
if (abs(A - B) > abs(V - W) * T) {
printf("YES\n");
} else {
printf("NO\n");
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
long long A, B, V, W, T;
cin >> A >> V >> B >> W >> T;
if (abs(A - B) > (V - W) * T) {
printf("NO\n");
} else {
printf("YES\n");
}
return 0;
}
| [["-", 15, 339, 51, 16, 12, 16, 31, 2, 63, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 79 |
#include <algorithm>
#include <cassert>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stri... | #include <algorithm>
#include <cassert>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stri... | [["-", 12, 23, 0, 41, 15, 23, 0, 16, 17, 20], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 17, 19]] | 1 | 172 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int v = sc.nextInt();
int b = sc.nextInt();
int w = sc.nextInt();
int t = sc.nextInt();
int c = 0;
int ans = 0;
if (v <= w) {
ans = 1;
} e... | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int v = sc.nextInt();
int b = sc.nextInt();
int w = sc.nextInt();
int t = sc.nextInt();
long c = 0;
int ans = 0;
if (v <= w) {
ans = 1;
} ... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 75, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["+", 75, 196, 0, 57, 15, 15, 0, 16, 31, 22]] | 3 | 173 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.