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
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) if(V<W): print("NO") else: if((V-W)*T>abs(A-B)): 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((V-W)*T>=abs(A-B)): print("YES") else: print("NO")
[["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 667, 19], ["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20]]
5
87
#include <bits/stdc++.h> using namespace std; #define REP(i, N) for (int i = 0; i < (int)N; i++) #define LOOP(i, N) for (int i = 1; i <= (int)N; i++) #define RREP(i, N) for (int i = (int)N - 1; i >= 0; i--) #define RLOOP(i, N) for (int i = (int)N; i > 0; i--) #define FOR(i, a, b) for (int i = a; i < (int)b; i++) #def...
#include <bits/stdc++.h> using namespace std; #define REP(i, N) for (int i = 0; i < (int)N; i++) #define LOOP(i, N) for (int i = 1; i <= (int)N; i++) #define RREP(i, N) for (int i = (int)N - 1; i >= 0; i--) #define RLOOP(i, N) for (int i = (int)N; i > 0; i--) #define FOR(i, a, b) for (int i = a; i < (int)b; i++) #def...
[["-", 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, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
268
#include <algorithm> #include <cmath> #include <cstdio> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector>...
#include <algorithm> #include <cmath> #include <cstdio> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector>...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 75, 76, 0, 57, 15, 339, 51, 16...
1
1,261
from copy import copy, deepcopy from collections import Counter from math import sqrt, floor, factorial from itertools import permutations, combinations, combinations_with_replacement from operator import mul from functools import reduce import bisect MOD = 10**9 + 7 INF = float('inf') A, V = list(map(int, input().sp...
from copy import copy, deepcopy from collections import Counter from math import sqrt, floor, factorial from itertools import permutations, combinations, combinations_with_replacement from operator import mul from functools import reduce import bisect MOD = 10**9 + 7 INF = float('inf') A, V = list(map(int, input().sp...
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]]
5
133
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int64_t A, V, B, W, T; cin >> A >> V >> B >> W >> T; string ans = "NO"; if (V < W) { cout << ans << endl; return 0; } if (abs(A - B) / abs(V - W) <= T) ans = "YES"; cout << ans << ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { long double A, V, B, W, T; cin >> A >> V >> B >> W >> T; string ans = "NO"; if (V <= W) { cout << ans << endl; return 0; } if (abs(A - B) / abs(V - W) <= T) ans = "YES"; cout << a...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
97
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if v <= w: print('NO') else: q = abs(a-b) / abs(v - w) if abs(a-b) * t <= abs(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: print('NO') else: q = abs(a-b) / abs(v - w) if abs(a-b) <= abs(v - w) * t: print('YES') else: print('NO')
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 48], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 48], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]]
5
99
a,v = map(int,input().split()) b,w = map(int,input().split()) t = int(input()) if v <= w: print("NO") else: if b > a: if abs(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: print("NO") else: if abs(b-a) <= (v-w)*t: print("YES") else: print("NO")
[["-", 75, 76, 8, 196, 0, 57, 15, 666, 0, 22], ["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 47], ["-", 0, 57, 75, 76, 8, 196, 0, 57, 0, 102], ["-", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121]]
5
88
B,W = map(int,input().split()) A,V= map(int,input().split()) T = int(input()) def main(): if V >= W: print("NO") return elif abs(B-A)//abs(V-W) <= T: print("YES") else: print("NO") main()
B,W = map(int,input().split()) A,V= map(int,input().split()) T = int(input()) def main(): if V >= W: print("NO") return elif abs(B-A)/abs(V-W) <= T: print("YES") else: print("NO") main()
[["-", 0, 57, 75, 665, 15, 666, 0, 657, 17, 676], ["+", 0, 57, 75, 665, 15, 666, 0, 657, 17, 85]]
5
91
#include <algorithm> #include <iostream> #include <string> using namespace std; #include <cmath> #include <iomanip> #include <map> #include <numeric> #include <queue> #include <set> #include <vector> using ll = long long; using vi = vector<int>; using vl = vector<ll>; using vvi = vector<vi>; using vs = vector<string>; ...
#include <algorithm> #include <iostream> #include <string> using namespace std; #include <cmath> #include <iomanip> #include <map> #include <numeric> #include <queue> #include <set> #include <vector> using ll = long long; using vi = vector<int>; using vl = vector<ll>; using vvi = vector<vi>; using vs = vector<string>; ...
[["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 51, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["-", 51, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 51, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 51, 16, 31, 16, 12, 23, 0, 16, 12, 22]]
1
279
a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) diff = abs(a-b) speed = v-w if speed < 0: print('NO') elif speed*t > diff: print('YES') else: print('NO')
a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) diff = abs(a-b) speed = v-w if speed < 0: print('NO') elif speed*t >= diff: print('YES') else: print('NO')
[["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 20]]
5
85
#include <bits/stdc++.h> using namespace std; typedef long long ll; void solve(ll a, ll v1, ll b, ll w1, ll t) { ll s1, s2; s1 = v1 * t; s2 = w1 * t; if (b - a + s2 <= s1) cout << "YES"; else cout << "NO"; } int main() { ll a, v1, b, w1, t; cin >> a >> v1; cin >> b >> w1; cin >> t; solve(a, ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; void solve(ll a, ll v1, ll b, ll w1, ll t) { ll s1, s2; s1 = v1 * t; s2 = w1 * t; if (abs(b - a) + s2 <= s1) cout << "YES"; else cout << "NO"; } int main() { ll a, v1, b, w1, t; cin >> a >> v1; cin >> b >> w1; cin >> t; solv...
[["+", 15, 339, 51, 16, 31, 16, 31, 2, 63, 22], ["+", 51, 16, 31, 16, 31, 2, 3, 4, 0, 24], ["+", 51, 16, 31, 16, 31, 2, 3, 4, 0, 25]]
1
120
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) if abs(B - A) > abs((V-W)*T): print("NO") else: print("YES")
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) if abs(B - A) > (V-W)*T: print("NO") else: print("YES")
[["-", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 657, 31, 23, 0, 24], ["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]]
5
73
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('YES') else: print('NO') else: if b-w*t<=a-v*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('YES') else: print('NO') else: if b-w*t>=a-v*t: print('YES') else: print('NO')
[["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 20]]
5
101
#include <algorithm> #include <cmath> #include <iostream> #include <vector> using namespace std; int main() { long A, V, B, W, T; cin >> A >> V >> B >> W >> T; if (abs(A - B) < (V - W) * T) { cout << "YES"; } else { cout << "NO"; } }
#include <algorithm> #include <cmath> #include <iostream> #include <vector> using namespace std; int main() { long A, V, B, W, T; cin >> A >> V >> B >> W >> T; if (abs(A - B) <= (V - W) * T) { cout << "YES"; } else { cout << "NO"; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
75
A,V=map(int,input().split()) B,W=map(int,input().split()) T=int(input()) #M=abs(W-V) #print(M) M=abs(V*T-W*T) if(abs(B-A)>M): print("NO") else: print("YES")
A,V=map(int,input().split()) B,W=map(int,input().split()) T=int(input()) M=(V*T-W*T) if(abs(B-A)>M): print("NO") else: print("YES")
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
80
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) a = abs(B-A) v = V-W v2 = v*T if(a<=v2): print("Yes") else: print("No")
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) a = abs(B-A) v = V-W v2 = v*T if(a<=v2): 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
79
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { long long a, b, v, w, t; string ans; cin >> a >> v >> b >> w >> t; ans = "NO"; if (v > w) { if (t >= (abs(a - b) / (v - w))) ans = "YES"; } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { long long a, b, v, w, t; string ans; cin >> a >> v >> b >> w >> t; ans = "NO"; if (v > w) { if (t >= ((double)abs(a - b) / (v - w))) ans = "YES"; } cout << ans << endl; }
[["+", 51, 16, 12, 23, 0, 16, 31, 74, 0, 24], ["+", 12, 23, 0, 16, 31, 74, 39, 77, 39, 40], ["+", 51, 16, 12, 23, 0, 16, 31, 74, 0, 25]]
1
92
A,V = map(int, input().split()) B,W = map(int, input().split()) T = int(input()) if V < W: print('NO') elif (A >= 0 and B <= 0) or (B >= 0 and A <= 0): if abs(A+B)-((V*T)-(W*T))>0: print('NO') else: print('YES') else: if abs(A-B)-((V*T)-(W*T))>0: print('NO') else: print('YES')
A,V = map(int, input().split()) B,W = map(int, input().split()) T = int(input()) if V <= W: print('NO') elif (A >= 0 and B <= 0) or (B >= 0 and A <= 0): if abs(A)+abs(B)-((V*T)-(W*T))>0: print('NO') else: print('YES') else: if abs(A-B)-((V*T)-(W*T))>0: print('NO') else: print('YES')
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 25], ["+", 15, 666, 0, 657, 31, 657, 12, 652, 63, 22], ["+", 0, 657, 31, 657, 12, 652, 3, 4, 0, 24]]
5
150
A, V = list(map(int, input().split())) B, W = list(map(int, input().split())) T = int(input()) if V > W and T > (abs(A - B) / abs(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 and T >= (abs(A - B) / abs(V - W)): print('YES') else: print('NO')
[["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 20]]
5
83
a = [int(i) for i in input().split()] b = [int(j) for j in input().split()] t = int(input()) dis = abs(a[0]-b[0]) if (b[1]*t+dis) < a[1]*t: print("YES") else: print("NO")
a = [int(i) for i in input().split()] b = [int(j) for j in input().split()] t = int(input()) dis = abs(a[0]-b[0]) if (b[1]*t+dis) <= a[1]*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
91
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if v <= w: print('NO') else: diff_start = b - a diff_speed = v - w if diff_start < diff_speed*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: diff_start = abs(b - a) diff_speed = v - w if diff_start <= diff_speed*t: print("YES") else: print("NO")
[["+", 8, 196, 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], ["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 19]]
5
84
(a,v)=gets.split.map(&:to_i) (b,w)=gets.split.map(&:to_i) t=gets.to_i d=(a-b).abs dx=(v-w).abs if d <= dx*t print 'YES' else print 'NO' end
(a,v)=gets.split.map(&:to_i) (b,w)=gets.split.map(&:to_i) t=gets.to_i d=(a-b).abs dx=(v-w) if d <= dx*t print 'YES' else print 'NO' end
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
69
def main(): A,V = map(int, input().split()) B,W = map(int, input().split()) T = int(input()) #print(A,V,B,W,T) if( (V-W)*T - B + A >= 0 ): return print('YES') else: return print('NO') if __name__ == '__main__': main()
def main(): A,V = map(int, input().split()) B,W = map(int, input().split()) T = int(input()) #print(A,V,B,W,T) if( (V-W)*T - abs(B - A) >= 0 ): return print('YES') else: return print('NO') if __name__ == '__main__': main()
[["+", 15, 23, 0, 666, 0, 657, 12, 652, 63, 22], ["+", 0, 666, 0, 657, 12, 652, 3, 4, 0, 24], ["-", 0, 57, 15, 23, 0, 666, 0, 657, 17, 72], ["+", 0, 657, 12, 652, 3, 4, 0, 657, 17, 33], ["+", 0, 666, 0, 657, 12, 652, 3, 4, 0, 25]]
5
89
A_V = input().split() A = int(A_V[0]) V = int(A_V[1]) B_W = input().split() B = int(B_W[0]) W = int(B_W[1]) T = int(input()) if abs(B-A) < (V-W)*T: print('YES') else: print('NO')
A_V = input().split() A = int(A_V[0]) V = int(A_V[1]) B_W = input().split() B = int(B_W[0]) W = int(B_W[1]) T = int(input()) if abs(B-A) <= (V-W)*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
92
#include <bits/stdc++.h> #define X first #define Y second using namespace std; typedef long long ll; typedef long double ld; typedef pair<int, int> pii; typedef pair<ll, int> pli; typedef pair<ll, ll> pll; const ll INF = 2e18; const int inf = 1e9 + 10; const int maxN = 1e5 + 10; const int maxD = 15; const int maxH = ...
#include <bits/stdc++.h> #define X first #define Y second using namespace std; typedef long long ll; typedef long double ld; typedef pair<int, int> pii; typedef pair<ll, int> pli; typedef pair<ll, ll> pll; const ll INF = 2e18; const int inf = 1e9 + 10; const int maxN = 1e5 + 10; const int maxD = 15; const int maxH = ...
[["-", 0, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["+", 0, 9, 0, 43, 49, 50, 51, 16, 17, 33]]
1
244
#include <algorithm> #include <cstring> #include <iostream> #include <string> #include <vector> using namespace std; typedef long long ll; ll a, b, c, i, j, k; int main() { ios::sync_with_stdio(false); cin.tie(0); cin >> a >> b >> i >> j; cin >> c; a = abs(a - i); b = abs(b - j) * c; if (a <= b) cout ...
#include <algorithm> #include <cstring> #include <iostream> #include <string> #include <vector> using namespace std; typedef long long ll; ll a, b, c, i, j, k; int main() { ios::sync_with_stdio(false); cin.tie(0); cin >> a >> b >> i >> j; cin >> c; a = abs(a - i); b = (b - j) * c; if (a <= b) cout << ...
[["-", 0, 1, 0, 11, 12, 16, 31, 2, 63, 22]]
1
105
def resolve(): a, v = map(int, input().split()) b, w = map(int, input().split()) T = int(input()) if v <= w: print("NO") return if abs(a - b) < T * abs(v - w): print("YES") else: print("NO") resolve()
def resolve(): a, v = map(int, input().split()) b, w = map(int, input().split()) T = int(input()) if v <= w: print("NO") return if abs(a - b) <= T * abs(v - w): print("YES") else: print("NO") resolve()
[["-", 0, 14, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 19]]
5
91
n = int(input()) a = list(map(int,input().split())) a.sort() ls = [1]*(10**6+1) ans = 0 for idx,i in enumerate(a): if ls[i] == 0: continue if idx < n-1 and a[idx+1] != i: ans += 1 for j in range(i,10**6+1,i): ls[j] = 0 print(ans)
n = int(input()) a = list(map(int,input().split())) a.sort() ls = [1]*(10**6+1) ans = 0 for idx,i in enumerate(a): if ls[i] == 0: continue if idx == n-1 or a[idx+1] != i: ans += 1 for j in range(i,10**6+1,i): ls[j] = 0 print(ans)
[["-", 8, 196, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 60], ["-", 0, 7, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 0, 7, 8, 196, 0, 57, 15, 679, 17, 354]]
5
110
#include <bits/stdc++.h> using namespace std; /* H * W <= 1e6なのでbfsすれば良い? Kが10^6なので分岐が多すぎる O(4 * 1e6) */ int main(void) { int h, w, k; cin >> h >> w >> k; int from_x, from_y, to_x, to_y; cin >> from_x >> from_y >> to_x >> to_y; from_x--; from_y--; to_x--; to_y--; vector<vector<bool>> grid(h, vector<...
#include <bits/stdc++.h> using namespace std; /* H * W <= 1e6なのでbfsすれば良い? Kが10^6なので分岐が多すぎる O(4 * 1e6) */ int main(void) { int h, w, k; cin >> h >> w >> k; int from_x, from_y, to_x, to_y; cin >> from_x >> from_y >> to_x >> to_y; from_x--; from_y--; to_x--; to_y--; vector<vector<bool>> grid(h, vector<...
[["+", 28, 69, 341, 342, 0, 16, 12, 16, 17, 48], ["+", 28, 69, 341, 342, 0, 16, 12, 16, 12, 22]]
1
545
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; // template #define rep(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define ALL(v) (v).begin(), (v).end() typedef long long int ll; const int inf = 0x3fffffff; const ll INF = 0x1fffffffffffffff; const double eps = 1e-12; template <typename ...
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; // template #define rep(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define ALL(v) (v).begin(), (v).end() typedef long long int ll; const int inf = 0x3fffffff; const ll INF = 0x1fffffffffffffff; const double eps = 1e-12; template <typename ...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
525
#include <bits/stdc++.h> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < (n); i++) #define pb push_back #define eb emplace_back #define all(v) (v).begin(), (v).end() #define fi first #define se second using vint = vector<int>; using pint = pair<int, int>; using vpint = vector<pint>;...
#include <bits/stdc++.h> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < (n); i++) #define pb push_back #define eb emplace_back #define all(v) (v).begin(), (v).end() #define fi first #define se second using vint = vector<int>; using pint = pair<int, int>; using vpint = vector<pint>;...
[["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 0, 11, 31, 69, 28, 69, 341, 342, 0, 13], ["+", 0, 11, 31, 69, 28, 69, 341, 342, 0, 22], ["-", 0, 1, 0, 11, 31, 69, 341, 342, 0, 13], ["+", 0, 1, 0, 11, 31, 69, 341, 342, 0, 22]]
1
686
#include <bits/stdc++.h> #define FASTIO \ ios::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define LL long long int using nam...
#include <bits/stdc++.h> #define FASTIO \ ios::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); #define LL long long int using nam...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
456
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) c=abs(a-b)+v*t-w*t if c<=0: print("YES") else: print("NO")
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) c=abs(a-b)-v*t+w*t if c<=0: print("YES") else: print("NO")
[["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 72], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 33], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72]]
5
75
#include <algorithm> #include <bitset> #include <cmath> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <vector> #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define FOR(i, s, e) for (int(i) = (s); (i) < (e); (i)++) #define vecall(itr, vec) ...
#include <algorithm> #include <bitset> #include <cmath> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <vector> #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define FOR(i, s, e) for (int(i) = (s); (i) < (e); (i)++) #define vecall(itr, vec) ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 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
217
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; using ll = long long; using P = pair<ll, ll>; #define rep(i, n) for (ll i = 0; i < (ll)n; i++) int main() { ll A, B; ll V, W; ll T; cin >> A >> V; cin >> B >> W; cin >> T; ll realDist = abs(A - B); ll lim...
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; using ll = long long; using P = pair<ll, ll>; #define rep(i, n) for (ll i = 0; i < (ll)n; i++) int main() { ll A, B; ll V, W; ll T; cin >> A >> V; cin >> B >> W; cin >> T; ll realDist = abs(A - B); ll lim...
[["-", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22]]
1
128
#include "bits/stdc++.h" #include <random> #define REP(i, n) for (ll i = 0; i < ll(n); ++i) #define RREP(i, n) for (ll i = ll(n) - 1; i >= 0; --i) #define FOR(i, m, n) for (ll i = m; i < ll(n); ++i) #define RFOR(i, m, n) for (ll i = ll(n) - 1; i >= ll(m); --i) #define ALL(v) (v).begin(), (v).end() #define UNIQUE(v) v.e...
#include "bits/stdc++.h" #include <random> #define REP(i, n) for (ll i = 0; i < ll(n); ++i) #define RREP(i, n) for (ll i = ll(n) - 1; i >= 0; --i) #define FOR(i, m, n) for (ll i = m; i < ll(n); ++i) #define RFOR(i, m, n) for (ll i = ll(n) - 1; i >= ll(m); --i) #define ALL(v) (v).begin(), (v).end() #define UNIQUE(v) v.e...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
345
package main import ( "bufio" "fmt" "math" "os" "strconv" ) var stdInScanner = bufio.NewScanner(os.Stdin) func nextInt() int { stdInScanner.Scan() i, _ := strconv.Atoi(stdInScanner.Text()) return i } func main() { stdInScanner.Split(bufio.ScanWords) A := nextInt() V := nextInt() B := nextInt() W := ne...
package main import ( "bufio" "fmt" "math" "os" "strconv" ) var stdInScanner = bufio.NewScanner(os.Stdin) func nextInt() int { stdInScanner.Scan() i, _ := strconv.Atoi(stdInScanner.Text()) return i } func main() { stdInScanner.Split(bufio.ScanWords) A := nextInt() V := nextInt() B := nextInt() W := ne...
[]
7
291
#include <bits/stdc++.h> #include <math.h> using namespace std; int main() { long long int A, V, B, W, T; cin >> A >> V >> B >> W >> T; long long int sec = 0; if (W - V == 0 || W - V > 0) { cout << "NO" << endl; } else { sec = (max(A, B) - min(A, B)) / (V - W); if (sec <= T) cout << ...
#include <bits/stdc++.h> #include <math.h> using namespace std; int main() { double A, V, B, W, T; cin >> A >> V >> B >> W >> T; double sec = 0; if (W - V == 0 || W - V > 0) { cout << "NO" << endl; } else { sec = (max(A, B) - min(A, B)) / (V - W); if (sec <= T) cout << "YES" << endl;...
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
120
a, v = list(map(int, input().strip().split())) b, w = list(map(int, input().strip().split())) t = int(input().strip()) if abs(a-b) <= (v-w)*t: print('Yes') else: print('No')
a, v = list(map(int, input().strip().split())) b, w = list(map(int, input().strip().split())) t = int(input().strip()) if abs(a-b) <= (v-w)*t: 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
88
#include <algorithm> #include <bitset> #include <chrono> #include <cmath> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <stack> #include <unordered_map> #include <vector> using namespace std; using ll = long long; const ll INF = (ll)1e18 + 1; const ll...
#include <algorithm> #include <bitset> #include <chrono> #include <cmath> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <stack> #include <unordered_map> #include <vector> using namespace std; using ll = long long; const ll INF = (ll)1e18 + 1; const ll...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 31, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 17, 48]]
1
251
import math a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) if v>w and abs(a-b)/(v-w)<=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 and abs(a-b)/(v-w)<=t: 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; long long a, v, b, w, t; int main() { cin >> a >> v >> b >> w >> t; puts(abs(b - a) <= abs(v - w) * t ? "YES" : "NO"); }
#include <bits/stdc++.h> using namespace std; long long a, v, b, w, t; int main() { cin >> a >> v >> b >> w >> t; puts(abs(b - a) <= (v - w) * t ? "YES" : "NO"); }
[["-", 0, 41, 15, 16, 12, 16, 31, 2, 63, 22]]
1
63
#include <bits/stdc++.h> #include <cmath> #include <queue> #include <stdint.h> #include <string.h> #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(0); ...
#include <bits/stdc++.h> #include <cmath> #include <queue> #include <stdint.h> #include <string.h> #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(0); ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
473
#include <iostream> using namespace std; int main() { long A, V; long B, W; long T; cin >> A >> V; cin >> B >> W; cin >> T; if (A < B) { if ((A + V * T) >= (B + W * T)) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { if ((A - V * T) >= (B - W * T)) { ...
#include <iostream> using namespace std; int main() { long A, V; long B, W; long T; cin >> A >> V; cin >> B >> W; cin >> T; if (A < B) { if ((A + V * T) >= (B + W * T)) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { if ((A - V * T) <= (B - W * T)) { ...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
133
#include <bits/stdc++.h> #define int long long using namespace std; signed main() { int a, v; cin >> a >> v; int b, w; cin >> b >> w; int t; cin >> t; if (llabs(a - b) <= t * (v - w)) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <bits/stdc++.h> #define int long long using namespace std; signed main() { int a, v; cin >> a >> v; int b, w; cin >> b >> w; int t; cin >> t; if (llabs(a - b) <= t * (v - w)) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
85
a,b=(int(x) for x in input().split()) c,d=(int(x) for x in input().split()) g=int(input()) f=b-d if(a>=c): e=a-c elif(c>a): e=c-a if(f*g>e): print("YES") else: print("NO")
a,b=(int(x) for x in input().split()) c,d=(int(x) for x in input().split()) g=int(input()) f=b-d if(a>=c): e=a-c elif(c>a): e=c-a if(f*g>=e): print("YES") else: print("NO")
[["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 667, 20]]
5
100
# -*- coding: utf-8 -*- a,v = map(int, input().split()) b,w = map(int, input().split()) t = int(input()) if a < b: result = 'YES' if a + t * v >= b + t * w else 'NO' else: result = 'YES' if a + t * v <= b + t * w else 'NO' print(result)
# -*- coding: utf-8 -*- a,v = map(int, input().split()) b,w = map(int, input().split()) t = int(input()) if a < b: result = 'YES' if a + t * v >= b + t * w else 'NO' else: result = 'YES' if a - t * v <= b - t * w else 'NO' print(result)
[["-", 0, 662, 12, 41, 0, 666, 0, 657, 17, 72], ["+", 0, 662, 12, 41, 0, 666, 0, 657, 17, 33]]
5
94
a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) flag=0 if w-v<0: if abs(a-b) <= t*abs(v-w): flag=1 if flag==1: print("Yes") else: print("No")
a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) flag=0 if w-v<0: if abs(a-b) <= t*abs(v-w): flag=1 if flag==1: 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
89
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if V-W <= 0: 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") else: if (abs(B-A)/(V-W)) <= T: 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], ["+", 15, 666, 0, 23, 0, 657, 31, 652, 63, 22]]
5
86
#include <bits/stdc++.h> using namespace std; #define pp pair<int, int> #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define rep2(i, m, n) for (int(i) = (m); (i) < (n); (i)++) #define ll long long #define ld long double #define all(a) (a).begin(), (a).end() #define mk make_pair ll mod = 998244353; int inf = 100...
#include <bits/stdc++.h> using namespace std; #define pp pair<int, int> #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define rep2(i, m, n) for (int(i) = (m); (i) < (n); (i)++) #define ll long long #define ld long double #define all(a) (a).begin(), (a).end() #define mk make_pair ll mod = 998244353; int inf = 100...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
163
#include <iostream> #include <string> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; int main() { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (abs(v * t - w * t) >= abs(a - b)) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
#include <iostream> #include <string> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; int main() { long long int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (v * t - w * t >= abs(a - b)) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 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]]
1
85
#include <bits/stdc++.h> using namespace std; bool solve() { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; int dist = abs(b - a); int dv = (v - w); if (dv < 0) return false; int steps = dist / dv; if (dist % dv) ++steps; if (steps <= t) return true; return false; } int main() { ios:...
#include <bits/stdc++.h> using namespace std; bool solve() { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; int dist = abs(b - a); int dv = (v - w); if (dv <= 0) return false; int steps = dist / dv; if (dist % dv) ++steps; if (steps <= t) return true; return false; } int main() { ios...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
152
a,v=map(int, input().split()) b,w=map(int, input().split()) t=int(input()) ans="NO" if v>w: f=v-w hoge=hoge(a-b) if f*t>=hoge: ans="YES" print(ans)
a,v=map(int, input().split()) b,w=map(int, input().split()) t=int(input()) ans="NO" if v>w: f=v-w hoge=abs(a-b) if f*t>=hoge: ans="YES" print(ans)
[["-", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22]]
5
79
#include <algorithm> #include <cmath> #include <cstdlib> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <string> #include <utility> #include <vector> const double PI = acos(-1); #define rep(i, n) for (int i = 0; i < (n); i++) usi...
#include <algorithm> #include <cmath> #include <cstdlib> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <string> #include <utility> #include <vector> const double PI = acos(-1); #define rep(i, n) for (int i = 0; i < (n); i++) usi...
[["-", 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
722
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); long double a, b, v, w, t; cin >> a >> v >> b >> w >> t; if (v <= w) { cout << "NO\n"; return 0; } if (a > b) { if (v > w) { if (b - a <= t * (v - w)) { cout << "YES\n"; } e...
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); long double a, b, v, w, t; cin >> a >> v >> b >> w >> t; if (v <= w) { cout << "NO\n"; return 0; } if (a < b) { if (v > w) { if (b - a <= t * (v - w)) { cout << "YES\n"; } e...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
236
#include <bits/stdc++.h> using namespace std; const string YES = "YES"; const string NO = "NO"; void solve(long long A, long long V, long long B, long long W, long long T) { long long dist = B - A; long long diff = (W - V) * T; cout << ((dist + diff <= 0) ? YES : NO) << endl; } // Generated by 1.1.7.1 https:/...
#include <bits/stdc++.h> using namespace std; const string YES = "YES"; const string NO = "NO"; void solve(long long A, long long V, long long B, long long W, long long T) { long long dist = abs(B - A); long long diff = (W - V) * T; cout << ((dist + diff <= 0) ? YES : NO) << endl; } // Generated by 1.1.7.1 ht...
[["+", 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
180
A, V = list(map(int, input().split(" "))) B, W = list(map(int, input().split(" "))) T = int(input()) if V <= W: print("NO") exit(0) if abs(B-A) <= T*(W-V): 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(0) if abs(B-A) <= T*abs(W-V): print('YES') else: print('NO')
[["+", 0, 57, 15, 666, 0, 657, 12, 652, 63, 22]]
5
97
A, V = map(int, input().split()) B, W= map(int, input().split()) T = int(input()) diff1 = abs(A - B) diff2 = (V - W)*T if ( diff1 < diff2): print("YES") else: print("NO")
A, V = map(int, input().split()) B, W= map(int, input().split()) T = int(input()) diff1 = abs(A - B) diff2 = (V - W)*T if ( diff1 <= diff2): print("YES") else: print("NO")
[["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 667, 19]]
5
78
#include <bits/stdc++.h> using namespace std; using ll = long long; using grid = vector<vector<char>>; int dx[] = {0, 1, -1, 0, 1, -1, 1, -1}; // i<4:4way i<8:8way int dy[] = {1, 0, 0, -1, 1, -1, -1, 1}; constexpr ll MOD = 1000000007; // constexpr ll MOD = 998244353; constexpr ll INF = 1050000000; constexpr ll LONGI...
#include <bits/stdc++.h> using namespace std; using ll = long long; using grid = vector<vector<char>>; int dx[] = {0, 1, -1, 0, 1, -1, 1, -1}; // i<4:4way i<8:8way int dy[] = {1, 0, 0, -1, 1, -1, -1, 1}; constexpr ll MOD = 1000000007; // constexpr ll MOD = 998244353; constexpr ll INF = 1050000000; constexpr ll LONGI...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
11,635
#include <algorithm> #include <cassert> #include <cmath> #include <ctime> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string.h> #include <string> #include <tuple> #include <vector> using namespace std; typedef long long ll; typedef pair<ll, ll> p; ...
#include <algorithm> #include <cassert> #include <cmath> #include <ctime> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string.h> #include <string> #include <tuple> #include <vector> using namespace std; typedef long long ll; typedef pair<ll, ll> p; ...
[["-", 15, 339, 51, 16, 12, 16, 31, 2, 63, 22]]
1
195
#include <iostream> int main(int argc, char *argv[]) { long long a, b, v, w, t; std::cin >> a >> v >> b >> w >> t; bool ans = (v * t - w * t) >= (b - a); std::cout << (ans ? "YES" : "NO") << std::endl; }
#include <iostream> int main(int argc, char *argv[]) { long long a, b, v, w, t; std::cin >> a >> v >> b >> w >> t; bool ans = (v * t - w * t) >= std::abs(b - a); std::cout << (ans ? "YES" : "NO") << std::endl; }
[["+", 49, 50, 51, 16, 12, 2, 63, 343, 345, 348], ["+", 49, 50, 51, 16, 12, 2, 63, 343, 0, 349], ["+", 49, 50, 51, 16, 12, 2, 63, 343, 141, 22]]
1
81
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("YES") else: print("NO") else: if a + v * t * (-1) < b + w * t * (-1): 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("YES") else: print("NO") else: if a + v * t * (-1) <= b + w * t * (-1): print("YES") else: print("NO")
[["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 19]]
5
111
import java.util.Scanner; public class Main { public static Scanner scan = new Scanner(System.in); public static void main(String[] args) { long a = nextLong(); long v = nextLong(); long b = nextLong(); long w = nextLong(); long t = nextLong(); if ((v - w) * t - (Math.abs(a - b)) > 0) { ...
import java.util.Scanner; public class Main { public static Scanner scan = new Scanner(System.in); public static void main(String[] args) { long a = nextLong(); long v = nextLong(); long b = nextLong(); long w = nextLong(); long t = nextLong(); if ((v - w) * t - (Math.abs(a - b)) >= 0) { ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20]]
3
373
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if(V > W): print("NO") elif(abs(A-B)>T*(W-V)): print("NO") else: print("YES")
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if(V<W): print("NO") elif(abs(A-B)>T*(V-W)): print("NO") else: print("YES")
[["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 667, 18], ["-", 0, 666, 0, 657, 12, 23, 0, 657, 31, 22], ["-", 0, 666, 0, 657, 12, 23, 0, 657, 17, 33], ["+", 0, 666, 0, 657, 12, 23, 0, 657, 17, 33], ["+", 0, 666, 0, 657, 12, 23, 0, 657, 12, 22]]
5
85
#include "bits/stdc++.h" using namespace std; int main() { long long A, V, B, W, T; cin >> A >> V >> B >> W >> T; if (V == W) { //同速 cout << "No" << endl; return 0; } if (V < W) { //子供のほうが早い cout << "No" << endl; return 0; } long long dist = B - A; if (dist < 0) { dist = -dist; }...
#include "bits/stdc++.h" using namespace std; int main() { long long A, V, B, W, T; cin >> A >> V >> B >> W >> T; if (V == W) { //同速 cout << "NO" << endl; return 0; } if (V < W) { //子供のほうが早い cout << "NO" << endl; return 0; } long long dist = B - A; if (dist < 0) { dist = -dist; }...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
135
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) kyori = abs(a - b) sokudo = v-w if kyori<t*sokudo: print('YES') else: print('NO')
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) kyori = abs(a - b) sokudo = v-w if kyori<=t*sokudo: 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
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if A <= B: print("YES" if A + V * T >= B + W * T else "NO") else: print("YES" if A - V * T >= B - W * T else "NO")
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if A <= B: print("YES" if A + V * T >= B + W * T else "NO") else: print("YES" if A - V * T <= B - W * T else "NO")
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 20], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 19]]
5
91
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) aa = v * t bb = w * t if aa - bb >= abs(b - a): print('Yes') else: print('No')
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) aa = v * t bb = w * t if aa - bb >= abs(b - a): 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; #define fastio \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); ...
#include <bits/stdc++.h> using namespace std; #define fastio \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); ...
[["-", 0, 43, 49, 50, 51, 23, 0, 16, 31, 22], ["-", 0, 43, 49, 50, 51, 23, 0, 16, 17, 33], ["+", 0, 43, 49, 50, 51, 23, 0, 16, 17, 33], ["+", 0, 43, 49, 50, 51, 23, 0, 16, 12, 22]]
1
389
a, x = map(int,input().split()) b, y = map(int,input().split()) t = int(input()) if abs(x-y)*t >= abs(a-b): print("YES") else: print("NO")
a, x = map(int,input().split()) b, y = map(int,input().split()) t = int(input()) if (x-y)*t >= abs(a-b): print("YES") else: print("NO")
[["-", 0, 57, 15, 666, 0, 657, 31, 652, 63, 22]]
5
71
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if W >= V: print('No') else: if (V-W)*T >= max(A,B) - min(A,B): 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') else: if (V-W)*T >= max(A,B) - min(A,B): 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
90
#include <iostream> using namespace std; int main() { double a, b, v, w, t; cin >> a >> v; cin >> b >> w; cin >> t; if (b > a) { if (b + t * w <= a + t * v) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { if (b - t * w >= a - t * v) { cout << "Yes" << en...
#include <iostream> using namespace std; int main() { double a, b, v, w, t; cin >> a >> v; cin >> b >> w; cin >> t; if (b > a) { if (b + t * w <= a + t * v) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { if (b - t * w >= a - t * v) { cout << "YES" << en...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
120
#include <bits/stdc++.h> #define FOR(i, a, n) for (int(i) = (int)(a); (i) < (int)(n); ++(i)) #define FORe(i, a, n) for (int(i) = (int)(a); (i) <= (int)(n); ++(i)) #define rFOR(i, a, n) for (int(i) = (int)(n)-1; (i) >= (int)(a); --(i)) #define rFORe(i, a, n) for (int(i) = (int)(n); (i) >= (int)(a); --(i)) #define REP(i,...
#include <bits/stdc++.h> #define FOR(i, a, n) for (int(i) = (int)(a); (i) < (int)(n); ++(i)) #define FORe(i, a, n) for (int(i) = (int)(a); (i) <= (int)(n); ++(i)) #define rFOR(i, a, n) for (int(i) = (int)(n)-1; (i) >= (int)(a); --(i)) #define rFORe(i, a, n) for (int(i) = (int)(n); (i) >= (int)(a); --(i)) #define REP(i,...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
448
AV = input().split() BW = input().split() T = input().split() A = int(AV[0]) V = int(AV[1]) B = int(BW[0]) W = int(BW[1]) T = int(T[0]) if abs(A-B) < (V - W) * T: print("YES") else: print("NO")
AV = input().split() BW = input().split() T = input().split() A = int(AV[0]) V = int(AV[1]) B = int(BW[0]) W = int(BW[1]) T = int(T[0]) if abs(A-B) <= (V - W) * 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
102
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) 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 abs(A-B) <= (V-W)*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], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
70
#include <bits/stdc++.h> #include <cctype> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(v) (v).begin(), (v).end() typedef long long int ll; #define pi 3.1415926535897932384 #define E9 1000000000 #define eps 1e-4 #define pii pair<int, int> int main() { ll A, V, B, W, T; cin >> A ...
#include <bits/stdc++.h> #include <cctype> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(v) (v).begin(), (v).end() typedef long long int ll; #define pi 3.1415926535897932384 #define E9 1000000000 #define eps 1e-4 #define pii pair<int, int> int main() { ll A, V, B, W, T; cin >> A ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
107
// Problem : B - Tag // Contest : AtCoder - Tokio Marine & Nichido Fire Insurance Programming Contest // 2020 URL : // https://atcoder.jp/contests/tokiomarine2020/tasks/tokiomarine2020_b Memory // Limit : 1024 MB Time Limit : 2000 ms Powered by CP Editor // (https://github.com/cpeditor/cpeditor) #include <algorithm> ...
// Problem : B - Tag // Contest : AtCoder - Tokio Marine & Nichido Fire Insurance Programming Contest // 2020 URL : // https://atcoder.jp/contests/tokiomarine2020/tasks/tokiomarine2020_b Memory // Limit : 1024 MB Time Limit : 2000 ms Powered by CP Editor // (https://github.com/cpeditor/cpeditor) #include <algorithm> ...
[["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
200
A, V = list(map(int, input().split())) B, W = list(map(int, input().split())) T = int(input()) kyori = abs(A - B) if kyori + W * T <= V * T: print('Yes') else: print('No')
A, V = list(map(int, input().split())) B, W = list(map(int, input().split())) T = int(input()) kyori = abs(A - B) if kyori + W * T <= V * T: 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
79
B,W = map(int,input().split()) A,V = map(int,input().split()) T = int(input()) if W > V and (W-V)*T > abs(A - B): print('YES') else: print('NO')
B,W = map(int,input().split()) A,V = map(int,input().split()) T = int(input()) if W > V and (W-V)*T >= abs(A - B): print('YES') else: print('NO')
[["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 20]]
5
74
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define ll unsigned long long int using namespace std; int main() { ll A, V, B, W, T; cin >> A >> V >> B >> W >> T; if (W >= V) { cout << "NO" << endl; } else { ll diff; if (A > B) diff = A - B; else diff = B...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define ll long long int using namespace std; int main() { ll A, V, B, W, T; cin >> A >> V >> B >> W >> T; if (W >= V) { cout << "NO" << endl; } else { ll diff; if (A > B) diff = A - B; else diff = B - A; ...
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]]
1
123
import sys, io, os, re import bisect from pprint import pprint from math import sin, cos, pi, radians, sqrt, floor from copy import copy, deepcopy from collections import deque from math import gcd from functools import reduce from itertools import groupby n1 = lambda: int(sys.stdin.readline().strip()) nn = lambda: li...
import sys, io, os, re import bisect from pprint import pprint from math import sin, cos, pi, radians, sqrt, floor from copy import copy, deepcopy from collections import deque from math import gcd from functools import reduce from itertools import groupby n1 = lambda: int(sys.stdin.readline().strip()) nn = lambda: li...
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
410
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) if W >= V: print("NO") else: diff = abs(A-B) if V*T - W*T >diff: 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") else: diff = abs(A-B) if V*T - W*T >= diff: print("YES") else: print("NO")
[["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 20]]
5
86
#include <iostream> #include <math.h> using namespace std; int main() { int A, B, V, W, T; cin >> A >> V; cin >> B >> W; cin >> T; if (T * (V - W) > abs(B - A)) { cout << "YES"; } else { cout << "NO"; } }
#include <iostream> #include <math.h> using namespace std; int main() { long long A, B, V, W, T; cin >> A >> V; cin >> B >> W; cin >> T; if (T * (V - W) >= abs(B - A)) { cout << "YES"; } else { cout << "NO"; } }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
75
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) dist = abs(B - A) relv = W - V if relv == 0: print("NO") elif relv < 0 and dist/relv <= T: print("YES") else: print("NO")
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) dist = abs(B - A) relv = W - V if relv == 0: print("NO") elif relv < 0 and dist/abs(relv) <= T: print("YES") else: print("NO")
[["+", 15, 679, 12, 666, 0, 657, 12, 652, 63, 22], ["+", 12, 666, 0, 657, 12, 652, 3, 4, 0, 24], ["+", 12, 666, 0, 657, 12, 652, 3, 4, 0, 25]]
5
89
A , V = map(int, input().split()) B , W = map(int, input().split()) T = int(input()) flag = 0 if (V - W) <= 0: flag = 0 else: if ((V - W) * T) >= (A - B): flag = 1 if flag == 1: print("YES") else: print("NO")
A , V = map(int, input().split()) B , W = map(int, input().split()) T = int(input()) flag = 0 if (V - W) <= 0: flag = 0 else: if ((V - W) * T) >= abs(A - B): flag = 1 if flag == 1: print("YES") else: print("NO")
[["+", 8, 196, 0, 57, 15, 666, 0, 652, 63, 22]]
5
96
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) b = abs(b - a) a = 0 if (b + v * t) <= (0 + v * t): print("YES") else: print("NO")
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) b = abs(b - a) a = 0 if (b + w * t) <= (0 + v * t): print("YES") else: print("NO")
[["-", 15, 666, 0, 23, 0, 657, 12, 657, 31, 22], ["+", 15, 666, 0, 23, 0, 657, 12, 657, 31, 22]]
5
82
a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) if w-v==0: if a-b==0: print("YES") else: print("NO") elif w-v>0: print("NO") else: if abs(a-b)//abs(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==0: if a-b==0: print("YES") else: print("NO") elif w-v>0: print("NO") else: if -(-abs(a-b)//abs(w-v))<=t: print("YES") else: print("NO")
[["+", 8, 196, 0, 57, 15, 666, 0, 664, 17, 33], ["+", 0, 57, 15, 666, 0, 664, 28, 23, 0, 24], ["+", 0, 664, 28, 23, 0, 657, 31, 664, 17, 33], ["+", 28, 23, 0, 657, 12, 652, 3, 4, 0, 25]]
5
114
/* Author :- Gaurang_Kothiya Quote :- " Practice makes a man perfect. " */ #include <bits/stdc++.h> #include <bitset> #include <cstdint> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <functional> #include <initializer_list> using namespace std; using namespace...
/* Author :- Gaurang_Kothiya Quote :- " Practice makes a man perfect. " */ #include <bits/stdc++.h> #include <bitset> #include <cstdint> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <functional> #include <initializer_list> using namespace std; using namespace...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 16, 12, 23, 0, 25]]
1
329
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) sa = abs(A-B) d = abs(V-W) if sa <= d*T: print("YES") else: print("NO")
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) sa = abs(A-B) d = (V-W) if sa <= d*T: print("YES") else: print("NO")
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
77
#include <iostream> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; using ll = long long; int main() { ll a, b, v, w, t; cin >> a >> v; cin >> b >> w; cin >> t; if (w >= v) { cout << "NO" << endl; return 0; } if (llabs(a - b) / llabs(v - w) > t) { cout << "NO" << endl; ...
#include <iostream> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; using ll = long long; int main() { ll a, b, v, w, t; cin >> a >> v; cin >> b >> w; cin >> t; if (w >= v) { cout << "NO" << endl; return 0; } if (llabs(a - b) > llabs(v - w) * t) { cout << "NO" << endl; ...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]]
1
114
a, va = map(int, input().split()) b, wb = map(int, input().split()) t = int(input()) kyori = abs(b-a) hayasa = wb-va if hayasa <= 0: print('NO') elif kyori / hayasa > t: print('YES') else: print('NO')
a, va = map(int, input().split()) b, wb = map(int, input().split()) t = int(input()) kyori = abs(b-a) hayasa = wb-va if hayasa >= 0: print('NO') elif kyori / abs(hayasa) <= t: print('YES') else: print('NO')
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 75, 665, 15, 666, 0, 657, 12, 652, 63, 22], ["+", 15, 666, 0, 657, 12, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 15, 666, 0, 657, 12, 652, 3, 4, 0, 25], ["+", 0, 656, 0, 57, 75, 665, 15...
5
85
#include <algorithm> #include <functional> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define rep(i, n) for (ll i = 0; i < (n); i++) typedef long long ll; typedef pair<ll, ll> p; const int INF = 1001001001; const double...
#include <algorithm> #include <functional> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define rep(i, n) for (ll i = 0; i < (n); i++) typedef long long ll; typedef pair<ll, ll> p; const int INF = 1001001001; const double...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
162
A,V = map(int, input().split()) B,W = map(int, input().split()) T = int(input()) d = abs(A-B) v = abs(V-W) if v==0: print("NO") exit() t = d/v if T >= t: print("YES") else: print("NO")
A,V = map(int, input().split()) B,W = map(int, input().split()) T = int(input()) d = abs(A-B) v = V-W if v<=0: print("NO") exit() t = d/v if T >= t: print("YES") else: print("NO")
[["-", 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], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]]
5
94
#include <bits/stdc++.h> using namespace std; int main() { int A, V, B, W, T; cin >> A >> V >> B >> W >> T; int64_t ut; //相対速度(正の時差を詰められる) ut = ((int64_t)V - (int64_t)W) * (int64_t)T; if (B > A) { if ((B - A) < ut) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { ...
#include <bits/stdc++.h> using namespace std; int main() { int A, V, B, W, T; cin >> A >> V >> B >> W >> T; int64_t ut; //相対速度(正の時差を詰められる) ut = ((int64_t)V - (int64_t)W) * (int64_t)T; if (B > A) { if ((B - A) <= ut) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else {...
[["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
131
oni = list(map(int, input().split())) nige = list(map(int, input().split())) time = int(input()) if nige[1]>=oni[1]: print("NO") else: distance = abs(oni[0]-nige[1]) diff = oni[1]-nige[1] need_time = distance / diff if need_time > time: print("NO") else: print("YES")
oni = list(map(int, input().split())) nige = list(map(int, input().split())) time = int(input()) if nige[1]>=oni[1]: print("NO") else: distance = abs(oni[0]-nige[0]) diff = oni[1]-nige[1] need_time = distance / diff if need_time > time: print("NO") else: print("YES")
[["-", 12, 652, 3, 4, 0, 657, 12, 206, 206, 612], ["+", 12, 652, 3, 4, 0, 657, 12, 206, 206, 612]]
5
110
A, V = map(int,input().split()) B, W = map(int,input().split()) T = int(input()) sa = W-V if sa == 0: if A != B: print('NO') else: print('YES') exit() if W>V: print('NO') exit() 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()) sa = W-V if sa == 0: if A != B: print('NO') else: print('YES') exit() if W>V: print('NO') exit() if (abs(B-A)/(V-W)) <= T: print('YES') else: print('NO')
[["-", 0, 23, 0, 657, 12, 23, 0, 657, 31, 22], ["-", 0, 23, 0, 657, 12, 23, 0, 657, 17, 33], ["+", 0, 23, 0, 657, 12, 23, 0, 657, 17, 33], ["+", 0, 23, 0, 657, 12, 23, 0, 657, 12, 22]]
5
118
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; #define rep(i, n) for (int i = 0; i < (n); i++) using P = pair<int, int>; int main() { long long a, v, b, w, t; cin >> a >> v >> b >> w >> t; long long dis = abs(b - a); ll run = v - w; if (run <= 0) { cout << "NO"...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; #define rep(i, n) for (int i = 0; i < (n); i++) using P = pair<int, int>; int main() { long long a, v, b, w, t; cin >> a >> v >> b >> w >> t; long long dis = abs(b - a); ll run = v - w; if (run <= 0) { cout << "NO"...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
153
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) r = abs(a - b) if (w - v) * t >= r: print("NO") else: print("YES")
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) r = abs(a - b) if (w - v) * t + r > 0: print("NO") else: print("YES")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 72], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]]
5
73
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <limits.h> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #include <stdio.h> #include <stdlib.h> #define rep(i, n) for (ll i = 0; i < (ll)n; i++) #define swap(a,...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <limits.h> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #include <stdio.h> #include <stdlib.h> #define rep(i, n) for (ll i = 0; i < (ll)n; i++) #define swap(a,...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
224
A,V=map(int,input().split()) B,W=map(int,input().split()) T=int(input()) if V<=W: print("NO") else: distance = abs(A-B) time = distance/V-W if T>=time: 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: distance = abs(A-B) time = distance/(V-W) if T>=time: print("YES") else: print("NO")
[["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 24], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 25]]
5
87