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 ll long long int #define ul unsigned long long int #define ld long double const ll INF = 1000000007; const ld PI = 3.141592653589; #define endl "\n" #define pb push_back #define mp make_pair #define FAST_IO ...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define ul unsigned long long int #define ld long double const ll INF = 1000000007; const ld PI = 3.141592653589; #define endl "\n" #define pb push_back #define mp make_pair #define FAST_IO ...
[["-", 8, 9, 0, 7, 8, 9, 0, 9, 0, 45], ["-", 0, 7, 8, 9, 0, 9, 0, 43, 0, 35], ["-", 0, 7, 8, 9, 0, 9, 0, 43, 39, 78], ["+", 8, 9, 0, 7, 8, 9, 0, 43, 0, 21], ["+", 0, 16, 12, 23, 0, 41, 15, 23, 0, 24], ["+", 8, 9, 0, 1, 0, 16, 12, 23, 0, 25], ["-", 8, 9, 0, 7, 8, 9, 0, 9, 0, 46]]
1
183
#include <bits/stdc++.h> using namespace std; #define ll long long int #define ul unsigned long long int #define ld long double const ll INF = 1000000007; const ld PI = 3.141592653589; #define endl "\n" #define pb push_back #define mp make_pair #define FAST_IO ...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define ul unsigned long long int #define ld long double const ll INF = 1000000007; const ld PI = 3.141592653589; #define endl "\n" #define pb push_back #define mp make_pair #define FAST_IO ...
[["+", 0, 16, 12, 23, 0, 41, 15, 23, 0, 24], ["+", 0, 9, 0, 1, 0, 16, 12, 23, 0, 25]]
1
183
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> int main(void) { long long int a, b, v, w, t; bool f = false; scanf("%d %d", &a, &v); scanf("%d %d", &b, &w); scanf("%d", &t); if (abs(a - b) <= v * t - w * t) { f = true; } if (f) { printf("YES"); } else { printf("NO"); ...
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> int main(void) { long long int a, b, v, w, t; bool f = false; scanf("%lld %lld", &a, &v); scanf("%lld %lld", &b, &w); scanf("%lld", &t); if (abs(a - b) <= v * t - w * t) { f = true; } if (f) { printf("YES"); } else { print...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
116
a, v = list(map(int, input("").split())) b, w = list(map(int, input("").split())) t = int(input("")) l = abs(a-b) if (v - w) * t >= l: Print("YES") else: Print("NO")
a, v = list(map(int, input().split())) b, w = list(map(int, input().split())) t = int(input()) l = abs(a-b) if (v - w) * t >= l: print("YES") else: print("NO")
[["-", 63, 319, 500, 652, 3, 4, 0, 557, 0, 654], ["-", 63, 319, 500, 652, 3, 4, 0, 557, 0, 655], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 655], ["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["...
5
85
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if V <= W: print("NO") exit() dis = abs(A - B) step = abs(W - V) print("YES" if dis < step * T else "NO")
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if V <= W: print("NO") exit() dis = abs(A - B) step = abs(W - V) print("YES" if dis <= step * T else "NO")
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 18], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 19]]
5
86
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; const ll mod = 1000000007; const ll INF = 9223372036854775807; #define Sort(a) sort(a.begin(), a.end()) #define Bsort(a) sort(a.begin(), a.end(), greater<ll>()) #define Pi acos(-1) int main() { cin.tie(0); ios_base::syn...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; const ll mod = 1000000007; const ll INF = 9223372036854775807; #define Sort(a) sort(a.begin(), a.end()) #define Bsort(a) sort(a.begin(), a.end(), greater<ll>()) #define Pi acos(-1) int main() { cin.tie(0); ios_base::syn...
[["+", 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
161
// Date of submission: 13-06-2020 #include <bits/stdc++.h> #define ll long long using namespace std; const ll N = 1e5 + 5; //------------------------------------------------------------------------------ int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ll a, b, v, w, t; cin >> a >> v >> b >> w >...
// Date of submission: 13-06-2020 #include <bits/stdc++.h> #define ll long long using namespace std; const ll N = 1e5 + 5; //------------------------------------------------------------------------------ int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ll a, b, v, w, t; cin >> a >> v >> b >> w >...
[["-", 51, 16, 31, 2, 3, 4, 0, 11, 17, 32], ["+", 51, 16, 31, 2, 3, 4, 0, 16, 17, 33], ["-", 51, 16, 12, 23, 0, 16, 31, 2, 63, 22]]
1
99
A, V = list(map(int, input().strip().split())) B, W = list(map(int, input().strip().split())) T = int(input().strip()) L = abs(A - B) if L <= (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()) L = abs(A - B) v = V - W if L <= (V - W) * T: print('YES') else: print('NO')
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
91
#include <iostream> #include <string> #define ll long long using namespace std; int main(void) { string s; ll A, V, B, W, T; cin >> A >> V >> B >> W >> T; cout << ((V > W && abs(A - B) <= (V - W) * T) ? "Yes" : "No") << endl; return 0; }
#include <iostream> #include <string> #define ll long long using namespace std; int main(void) { string s; ll A, V, B, W, T; cin >> A >> V >> B >> W >> T; cout << ((V > W && abs(A - B) <= (V - W) * T) ? "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
82
A,V=map(int,input().split()) B,W=map(int,input().split()) T=int(input()) v=V-W l=abs(A-B) if l<=V*T: print("YES") else: print("NO")
A,V=map(int,input().split()) B,W=map(int,input().split()) T=int(input()) v=V-W l=abs(A-B) if l<=v*T: print("YES") else: print("NO")
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 31, 22]]
5
74
#include <bits/stdc++.h> using namespace std; int main(void) { long long int a, b, v, w, t; cin >> a >> v; cin >> b >> w; cin >> t; long long int temp = llabs(a - b); if (temp <= t * (w - v)) cout << "YES"; else cout << "NO"; }
#include <bits/stdc++.h> using namespace std; int main(void) { long long int a, b, v, w, t; cin >> a >> v; cin >> b >> w; cin >> t; long long int temp = llabs(a - b); if (temp <= t * (v - w)) cout << "YES"; else cout << "NO"; }
[["-", 51, 16, 12, 16, 12, 23, 0, 16, 31, 22], ["-", 51, 16, 12, 16, 12, 23, 0, 16, 17, 33], ["+", 51, 16, 12, 16, 12, 23, 0, 16, 17, 33], ["+", 51, 16, 12, 16, 12, 23, 0, 16, 12, 22]]
1
79
#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>; int main() { ll A, B, V, W, T; cin >> A >> V; cin >> B >> W; cin >> T; ll dif = abs(A - B); ll difV = V - W; // ll mxA = max(abs(9000000000-A),abs(-9000000000-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>; int main() { ll A, B, V, W, T; cin >> A >> V; cin >> B >> W; cin >> T; ll dif = abs(A - B); ll difV = V - W; if ((difV * T) >= dif) { cout << "YES" << endl; ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
129
a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) ans="NO" if v>w: if abs(b-a)//abs(w-v)<=t: ans="YES" print(ans)
a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) ans="NO" if v>w: if abs(b-a)/abs(w-v)<=t: ans="YES" print(ans)
[["-", 64, 196, 0, 57, 15, 666, 0, 657, 17, 676], ["+", 64, 196, 0, 57, 15, 666, 0, 657, 17, 85]]
5
76
#include <bits/stdc++.h> using namespace std; int main() { long long int a, b, v, w, t; cin >> a >> v >> b >> w >> t; if (w >= v) { cout << "NO" << '\n'; return 0; } cout << ((abs(a - b) / abs(v - w) < t) ? "YES" : "NO") << '\n'; }
#include <bits/stdc++.h> using namespace std; int main() { long long int a, b, v, w, t; cin >> a >> v >> b >> w >> t; if (w >= v) { cout << "NO" << '\n'; return 0; } cout << ((abs(a - b) <= abs(v - w) * t) ? "YES" : "NO") << '\n'; }
[["-", 0, 41, 15, 23, 0, 16, 31, 16, 17, 85], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 17, 19], ["-", 12, 23, 0, 41, 15, 23, 0, 16, 17, 18], ["+", 0, 41, 15, 23, 0, 16, 12, 16, 17, 48]]
1
92
import java.math.BigDecimal; import java.util.*; public 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(); BigDecimal t = sc.nextBigDecimal(); BigDecimal diff =...
import java.math.BigDecimal; import java.util.*; public 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(); BigDecimal t = sc.nextBigDecimal(); BigDecimal diff =...
[["+", 49, 200, 51, 492, 3, 4, 0, 492, 500, 22], ["+", 49, 200, 51, 492, 3, 4, 0, 492, 0, 131], ["+", 49, 200, 51, 492, 3, 4, 0, 492, 141, 22], ["+", 51, 492, 3, 4, 0, 492, 3, 4, 0, 24], ["+", 51, 492, 3, 4, 0, 492, 3, 4, 0, 25]]
3
167
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; int main() { ll a, v, b, w, t; cin >> a >> v >> b >> w >> t; ll s = abs(a - b); ll g = (v - w) * t; if (s <= g) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; int main() { ll a, v, b, w, t; cin >> a >> v >> b >> w >> t; ll s = abs(a - b); ll g = (v - w) * t; if (s <= g) { 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
97
a,v = map(int,input().split()) b,w = map(int,input().split()) t = int(input()) if (v-w)*t>=(b-a):print("YES") else:print("NO")
a,v = map(int,input().split()) b,w = map(int,input().split()) t = int(input()) if (v-w)*t>=abs(b-a):print("YES") else:print("NO")
[["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22]]
5
69
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if V-W == 0: print("NO") import sys sys.exit() import math 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") import sys sys.exit() import math if abs(B-A)/(V-W) <= T: print("YES") else: print("NO")
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 33], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]]
5
92
a,v = map(int,input().split()) b,w = map(int,input().split()) t = int(input()) if v<=w: print("no") exit() dis = abs(a-b) vdis = v-w time = dis/vdis if time <= 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() dis = abs(a-b) vdis = v-w time = dis/vdis if time <= 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
91
#include <bits/stdc++.h> #include <sstream> using namespace std; typedef long long ll; // loop #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++) #define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--) // STL #def...
#include <bits/stdc++.h> #include <sstream> using namespace std; typedef long long ll; // loop #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++) #define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--) // STL #def...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
252
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <sstream> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { long long int A, B, V, W, T; cin >> A >> V; cin >> B >> W; cin >> T; if (W < V) { if (A - B <= (V - W) * T) { cou...
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <sstream> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { long long int A, B, V, W, T; cin >> A >> V; cin >> B >> W; cin >> T; if (W < V) { if (abs(A - B) <= (V - W) * T) { ...
[["+", 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
118
import java.util.Scanner; public class Main { // java11 public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); long V = sc.nextLong(); long B = sc.nextLong(); long W = sc.nextLong(); long T = sc.nextLong(); long dis = Math.abs(A - B);...
import java.util.Scanner; public class Main { // java11 public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); long V = sc.nextLong(); long B = sc.nextLong(); long W = sc.nextLong(); long T = sc.nextLong(); long dis = Math.abs(A - B);...
[["+", 15, 15, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 16, 31, 16, 31, 74, 39, 511, 0, 512], ["+", 15, 15, 0, 16, 31, 16, 31, 74, 0, 25]]
3
155
#鬼 a,v=map(int,input().split()) #逃げている b,w=map(int,input().split()) #t秒以内 t=int(input()) if v>w: if abs(a-b)<=v*w*t: print("YES") exit() else: print("NO")
#鬼 a,v=map(int,input().split()) #逃げている b,w=map(int,input().split()) #t秒以内 t=int(input()) if v>w: if abs(a-b)<=(v-w)*t: print("YES") exit() print("NO")
[["+", 0, 57, 15, 666, 0, 657, 31, 23, 0, 24], ["-", 0, 57, 15, 666, 0, 657, 31, 657, 17, 48], ["+", 15, 666, 0, 657, 31, 23, 0, 657, 17, 33], ["+", 0, 57, 15, 666, 0, 657, 31, 23, 0, 25], ["-", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["-", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102]]
5
79
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if a > b: a, b = b, a oni = a + v * t nige = b + w * t if oni >= nige: print('Yes') else: print('No')
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if a > b: a, b = b, a oni = a + v * t nige = b + w * t if oni >= nige: 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
85
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if v*t >= abs(b - a) + w*t: print("No") else: print("Yes")
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if v*t >= abs(b - a) + 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
70
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) if V <= W: print("No") elif (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 V <= W: print("NO") elif (abs(A-B)/abs(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
84
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) dv = V - W dist = abs(B - A) if dv * T > dist: print("YES") else: print("NO")
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) dv = V - W dist = abs(B - A) if dv*T >= dist: print("YES") else: print("NO")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]]
5
74
a, v = map(int,input().split()) b, w = map(int,input().split()) t = int(input()) if (v-w>0 & 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, 57, 15, 23, 0, 666, 0, 657, 17, 67], ["+", 0, 656, 0, 57, 15, 23, 0, 679, 17, 355]]
5
78
a, v = map(int,input().split()) b, w = map(int,input().split()) t = int(input()) if (v-w>0 & 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 (abs(a-b) <= t*(v-w)): print("YES") else: print("NO")
[["-", 0, 57, 15, 23, 0, 666, 0, 657, 31, 22], ["-", 0, 57, 15, 23, 0, 666, 0, 657, 17, 33], ["-", 0, 57, 15, 23, 0, 666, 0, 657, 12, 22], ["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 47], ["-", 0, 57, 15, 23, 0, 666, 0, 657, 31, 612], ["-", 0, 57, 15, 23, 0, 666, 0, 657, 17, 67]]
5
78
#include <bits/stdc++.h> //C++の機能を「全て」読み込むための命令 #define rep(i, n) for (int i = 0; i < (n); ++i) #define cout(x) cout << x << endl #define all(v) v.begin(), v.end() using namespace std; //型エイリアス using vi = vector<int>; using ll = long long; using P = pair<int, int>; using Graph = vector<vector<int>>; const ll inf = 1e18...
#include <bits/stdc++.h> //C++の機能を「全て」読み込むための命令 #define rep(i, n) for (int i = 0; i < (n); ++i) #define cout(x) cout << x << endl #define all(v) v.begin(), v.end() using namespace std; //型エイリアス using vi = vector<int>; using ll = long long; using P = pair<int, int>; using Graph = vector<vector<int>>; const ll inf = 1e18...
[["-", 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, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
164
#include <algorithm> #include <cmath> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; const long long INF = (long long)(1e18) + 1; int main() { long long a, v; long long b, w; cin >> a >> v; cin >> b >> w; long long t; cin >> t; long long diff = (b - a); ...
#include <algorithm> #include <cmath> #include <iostream> #include <math.h> #include <string> #include <vector> using namespace std; const long long INF = (long long)(1e18) + 1; int main() { long long a, v; long long b, w; cin >> a >> v; cin >> b >> w; long long t; cin >> t; long long diff = abs(b - a...
[["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["-", ...
1
159
require 'bigdecimal' require 'bigdecimal/util' A, V = gets.chomp.split(" ").map(&:to_d) B, W = gets.chomp.split(" ").map(&:to_d) T = gets.chomp.to_d d = abs(A-B) v = (V-W)*T if (v >= d) print "YES" else print "NO" end
require 'bigdecimal' require 'bigdecimal/util' A, V = gets.chomp.split(" ").map(&:to_d) B, W = gets.chomp.split(" ").map(&:to_d) T = gets.chomp.to_d d = (A-B).abs v = (V-W)*T if (v >= d) print "YES" else print "NO" end
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
88
A, V = [int(n) for n in input().split()] B, W = [int(n) for n in input().split()] T = int(input()) if V <= W: print('NO') exit() d = abs(A - B) if V > W & d <= (V - W) * T: print('YES') else: print('NO')
A, V = [int(n) for n in input().split()] B, W = [int(n) for n in input().split()] T = int(input()) if V <= W: print('NO') exit() d = abs(A - B) if V > W and d <= (V - W) * T: print('YES') else: print('NO')
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 67], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355]]
5
99
#include <bits/stdc++.h> using namespace std; const int MAX = 1e5 + 5; #define dbg(a) cout << "-> " << __LINE__ << ": " << #a << " = " << a << endl int main() { ios::sync_with_stdio(false); cin.tie(0); long long a, b, v, w, t; cin >> a >> v >> b >> w >> t; b -= a; b = abs(b); a = 0; if (a + v * t >= ...
#include <bits/stdc++.h> using namespace std; const int MAX = 1e5 + 5; #define dbg(a) cout << "-> " << __LINE__ << ": " << #a << " = " << a << endl int main() { ios::sync_with_stdio(false); cin.tie(0); long long a, b, v, w, t; cin >> a >> v >> b >> w >> t; b -= a; b = abs(b); a = 0; if (a + v * t >= ...
[["-", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22]]
1
115
#include <iostream> using namespace std; int main() { long long A, V, B, W, T; cin >> A >> V >> B >> W >> T; if (V <= W) { cout << "NO" << endl; } else { if (A > B) { if ((A - B) / (V - W) < T) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { ...
#include <iostream> using namespace std; int main() { long long A, V, B, W, T; cin >> A >> V >> B >> W >> T; if (V <= W) { cout << "NO" << endl; } else { if (A > B) { if ((A - B) <= (V - W) * T) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { ...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
143
a,v,b,w,t=`dd`.split.map &:to_i puts b-a<=(v-w)*t ? "YES" : "NO"
a,v,b,w,t=`dd`.split.map &:to_i puts (b-a).abs<=(v-w)*t ? "YES" : "NO"
[["+", 0, 754, 15, 738, 31, 652, 486, 739, 0, 24], ["+", 0, 754, 15, 738, 31, 652, 486, 739, 0, 25], ["+", 3, 4, 0, 754, 15, 738, 31, 652, 17, 131], ["+", 3, 4, 0, 754, 15, 738, 31, 652, 735, 22]]
4
39
a,v,b,w,t=`dd`.split.map &:to_i if v-w == 0 puts "NO" return elsif (b-a).abs<=(v-w).abs*t && (b-a)%(v-w) puts "YES" else puts "NO" end
a,v,b,w,t=`dd`.split.map &:to_i if v-w == 0 puts "NO" return elsif (b-a).abs<=(v-w)*t && (b-a).abs%(v-w) puts "YES" else puts "NO" end
[["-", 15, 738, 31, 738, 12, 738, 31, 652, 17, 131], ["-", 15, 738, 31, 738, 12, 738, 31, 652, 735, 22], ["+", 75, 759, 15, 738, 12, 738, 31, 652, 17, 131], ["+", 75, 759, 15, 738, 12, 738, 31, 652, 735, 22]]
4
70
/* Author: QAQAutomaton Lang: C++ Code: B.cpp Mail: lk@qaq-am.com Blog: https://www.qaq-am.com/ */ #include <bits/stdc++.h> #define int long long #define debug(...) fprintf(stderr, __VA_ARGS__) #define DEBUG printf("Passing [%s] in LINE %d\n", __FUNCTION__, __LINE__) #define Debug debug("Passing [%s] in LINE %d\n", __F...
/* Author: QAQAutomaton Lang: C++ Code: B.cpp Mail: lk@qaq-am.com Blog: https://www.qaq-am.com/ */ #include <bits/stdc++.h> #define int long long #define debug(...) fprintf(stderr, __VA_ARGS__) #define DEBUG printf("Passing [%s] in LINE %d\n", __FUNCTION__, __LINE__) #define Debug debug("Passing [%s] in LINE %d\n", __F...
[["-", 51, 16, 12, 2, 3, 4, 0, 16, 12, 22], ["+", 51, 16, 12, 2, 3, 4, 0, 16, 12, 22]]
1
1,072
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (ll i = 0; i < n; i++) #define all(n) n.begin(), n.end() #define yn(x) cout << (x ? "Yes" : "No") << endl; int main() { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if ((abs(a - b) < (v - w) * t) && (v > w)) cout <<...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (ll i = 0; i < n; i++) #define all(n) n.begin(), n.end() #define yn(x) cout << (x ? "Yes" : "No") << endl; int main() { ll a, v, b, w, t; cin >> a >> v >> b >> w >> t; if ((abs(a - b) <= (v - w) * t) && (v > w)) cout <<...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 15, 339, 51, 16, 31, 23, 0, 16, 17, 18], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 19]]
1
106
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) def solve(): d = b - a return (v - w) * t >= d print('YES' if solve() else 'NO')
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) def solve(): d = abs(b - a) return (v - w) * t >= d print('YES' if solve() else '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]]
5
74
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); int v = sc.nextInt(); long b = sc.nextLong(); int w = sc.nextInt(); int t = sc.nextInt(); if (a < b) { for (int cnt = 0; cnt < t; cnt++) { ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); int v = sc.nextInt(); long b = sc.nextLong(); int w = sc.nextInt(); int t = sc.nextInt(); if (a < b) { for (int cnt = 0; cnt < t; cnt++) { ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]]
3
202
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if V <= W: print('NO') exit() tmp = abs(B - A) k = B - W if tmp <= k * 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() tmp = abs(B - A) k = V - W if tmp <= k * T: print('YES') else: print('NO')
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22]]
5
88
in1 = input().split() in2 = input().split() in3 = input() oni = int(in1[0]) onispeed = int(in1[1]) kid = int(in2[0]) kidspeed = int(in2[1]) time = int(in3) pase = onispeed - kidspeed flg = True #正の方向 if kid - oni < 0: flg = False #負の方向 if flg: oniend = (pase * time) + oni if (pase <= 0) or (oniend < kid): pr...
in1 = input().split() in2 = input().split() in3 = input() oni = int(in1[0]) onispeed = int(in1[1]) kid = int(in2[0]) kidspeed = int(in2[1]) time = int(in3) pase = onispeed - kidspeed flg = True #正の方向 if kid - oni < 0: flg = False #負の方向 if flg: oniend = (pase * time) + oni if (pase <= 0) or (oniend < kid): pr...
[["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 12, 22]]
5
162
function Main(input) { const arr = input.trim().split("\n"); const AV = arr[0].split(" ").map(Number); const BW = arr[1].split(" ").map(Number); const T = Number(arr[2]); if (Math.abs(AV[0] - BW[0]) < T * (AV[1] - BW[1])) { console.log("YES"); } else { console.log("NO"); } } Main(require("fs").rea...
function Main(input) { const arr = input.trim().split("\n"); const AV = arr[0].split(" ").map(Number); const BW = arr[1].split(" ").map(Number); const T = Number(arr[2]); if (Math.abs(AV[0] - BW[0]) <= T * (AV[1] - BW[1])) { console.log("YES"); } else { console.log("NO"); } } Main(require("fs").re...
[["-", 8, 556, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 556, 0, 57, 15, 23, 0, 16, 17, 19]]
2
149
a,w=map(int,input().split()) b,y=map(int,input().split()) n=int(input()) if w==y: print("NO") else: print("YES") if abs(a-b)/(w-y)<n else print("NO")
a,w=map(int,input().split()) b,y=map(int,input().split()) n=int(input()) if w<=y: print("NO") else: print("YES") if abs(a-b)/(w-y)<=n else print("NO")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["-", 8, 196, 0, 1, 0, 41, 0, 666, 667, 18], ["+", 8, 196, 0, 1, 0, 41, 0, 666, 667, 19]]
5
81
A, V = list(map(int,input().split())) B, W = list(map(int,input().split())) T = int(input()) if V<=W or (V-W)*T <= (B-A): print('NO') else : print('YES')
A, V = list(map(int,input().split())) B, W = list(map(int,input().split())) T = int(input()) if V<=W or (V-W)*T < abs(B-A): print('NO') else : print('YES')
[["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 12, 666, 0, 652, 63, 22]]
5
79
#include "bits/stdc++.h" #include <algorithm> #include <assert.h> #include <complex> #include <iomanip> #include <iostream> #include <map> #include <memory> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #pragma warning(disable : 4...
#include "bits/stdc++.h" #include <algorithm> #include <assert.h> #include <complex> #include <iomanip> #include <iostream> #include <map> #include <memory> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> #pragma warning(disable : 4...
[["+", 0, 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
909
A,V = map(int, input().split()) B,W = map(int, input().split()) T = int(input()) if A < B: Ap = A + V*T Bp = B + W*T if Ap >= Bp: print('YES') else: print('NO') else: Ap = A + V*T Bp = B + W*T if Ap <= Bp: print('YES') else: print('NO')
A,V = map(int, input().split()) B,W = map(int, input().split()) T = int(input()) if A < B: Ap = A + V*T Bp = B + W*T if Ap >= Bp: print('YES') else: print('NO') else: Ap = A + (-V*T) Bp = B + (-W*T) if Ap <= Bp: print('YES') else: print('NO')
[["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 24], ["+", 12, 657, 12, 23, 0, 657, 31, 664, 17, 33], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 25]]
5
113
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) D = abs(A - B) S = V - W if V - W <= 0: print("NO") else: if D / S > T: print("NO") else: print("Yes")
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) D = abs(A - B) S = V - W if V - W <= 0: print("NO") else: if D / S > T: 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
89
#include <stdio.h> #include <stdlib.h> int main(void) { unsigned long a, b, v, w, t; int i; scanf("%lu%lu%", &a, &v); scanf("%lu%lu", &b, &w); scanf("%lu%", &t); // printf("%lu%lu%lu%lu%lu",a,v,b,w,t); if (a > b) { if (a - (v * t) > b - (w * t)) { printf("NO"); } else { printf("YES...
#include <stdio.h> #include <stdlib.h> int main(void) { long long a, b, v, w, t; int i; scanf("%lu%lu%", &a, &v); scanf("%lu%lu", &b, &w); scanf("%lu%", &t); // if(t < 1000){ // t = t%1000; //} // printf("%lu%lu%lu%lu%lu",a,v,b,w,t); if (a > b) { if (a - (v * t) > b - (w * t)) { print...
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]]
0
155
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; int main() { long long int A, B, V, W; int T; cin >> A >> V >> B >> W >> T; bool ans = 0; if (A < B) { A = A + V * T; B = B + W * T; if (A >= B) { ans = 1; } } else { A = A - V * T; ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; int main() { long int A, B, V, W; int T; cin >> A >> V >> B >> W >> T; bool ans = 0; if (A < B) { A = A + V * T; B = B + W * T; if (A >= B) { ans = 1; } } else { A = A - V * T; B = B...
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
146
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 < 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("YES") else: print("NO") else: if (A - V * T <= B - W * T): print("YES") else: print("NO")
[["-", 64, 196, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 64, 196, 0, 57, 15, 23, 0, 666, 667, 20], ["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 19]]
5
105
a,v = map(int,input().split()) b,w = map(int,input().split()) t = int(input()) if a >=0 and b>=0 : if a+v*t >= b+ w*t: print("YES") else: print("NO") elif a <0 and b >=0: if -a+v*t >= b + w*t: print("YES") else : print("NO") else : if a+v*t >= b+ w*t: ...
a,v = map(int,input().split()) b,w = map(int,input().split()) t = int(input()) if a >=0 and b>=0 : if a+v*t >= b+ w*t: print("YES") else: print("NO") elif a <0 and b >=0: if a+v*t >= b + w*t: print("YES") else : print("NO") else : if -a+v*t >= -b + w*t: print(...
[["-", 0, 57, 15, 666, 0, 657, 31, 664, 17, 33], ["+", 0, 57, 15, 666, 0, 657, 31, 664, 17, 33]]
5
142
import java.util.Scanner; public 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(); if (v <= w) { System.out.println("NO"); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double a = sc.nextInt(); double v = sc.nextInt(); double b = sc.nextInt(); double w = sc.nextInt(); double t = sc.nextInt(); if (v <= w) { System.out.prin...
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 511, 0, 512]]
3
157
#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; if ((abs(A - B) < T * (V - W))) cout << "YES" << endl; else cout << "NO" << endl; }
#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; if ((abs(A - B) <= T * (V - W))) cout << "YES" << endl; else cout << "NO" << endl; }
[["-", 0, 57, 15, 339, 51, 23, 0, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 23, 0, 16, 17, 19]]
1
79
#include <bits/stdc++.h> using namespace std; int main() { int64_t A, V, B, W, T; cin >> A >> V >> B >> W >> T; int D; if (B < A) { D = abs(A - B); } else { D = abs(B - A); } int64_t vw = V - W * T; if (V > W && vw >= D) { 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 >> B >> W >> T; int D; if (B < A) { D = abs(A - B); } else { D = abs(B - A); } int64_t vw = (V - W) * T; if (V > W && vw >= D) { cout << "YES" << endl; } else { cout << "NO" << endl; ...
[["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25]]
1
107
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if v <= w: print("No") elif t < abs(a - b)/abs(v - w): 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 t < abs(a - b) / abs(v - w): 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
82
#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 (a < b) { while (t > 0) { a += v; b += w; if (a == b) { cout << "YES" << endl; return 0; ...
#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 (a < b) { while (t > 0) { a += v; b += w; if (a >= b) { cout << "YES" << endl; return 0; ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
153
a, v = list(map(float, input().split())) b, w = list(map(float, input().split())) t = float(input()) if v <= w: print('NO') if abs(v-w)*t >= abs(a-b): print('YES') else: print('NO')
a, v = list(map(float, input().split())) b, w = list(map(float, input().split())) t = float(input()) if v <= w: print('NO') exit() if abs(v-w)*t >= abs(a-b): print('YES') else: print('NO')
[["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
88
A,V=map(int,input().split()) B,W=map(int,input().split()) T=int(input()) if V == W or V - W <= 0: 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 or V - W <= 0: print("NO") elif 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], ["-", 0, 57, 75, 665, 15, 666, 0, 657, 17, 676], ["+", 0, 57, 75, 665, 15, 666, 0, 657, 17, 85]]
5
87
#include <stdio.h> #include <stdlib.h> int main(void) { long long int a, b, v, w, c, x; int t; int i; scanf("%lld %lld", &a, &v); scanf("%lld %lld", &b, &w); scanf("%d", &t); c = abs(b - a); x = abs(w - v); if (w < v) { for (i = 1; i <= t; i++) { c = c - x; if (c < 0) { pr...
#include <stdio.h> #include <stdlib.h> int main(void) { long long int a, b, v, w, c, x; int t; int i; scanf("%lld %lld", &a, &v); scanf("%lld %lld", &b, &w); scanf("%d", &t); c = abs(b - a); x = abs(w - v); if (w < v) { for (i = 1; i <= t; i++) { c = c - x; if (c <= 0) { p...
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]]
0
145
import numpy as np A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) if V*T <= W*T: print("NO") elif 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")
import numpy as np A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) if V*T <= W*T: print("NO") elif 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")
[["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 20]]
5
120
a, v = input().split(' ') a = int(a) v = int(v) b, u = input().split(' ') b = int(b) u = int(u) t = int(input()) if a <= b and a + v * t >= b + u * t : print('YES') elif a > b and a + v * t <= b + u * t : print('YES') else: print('NO')
a, v = input().split(' ') a = int(a) v = int(v) b, u = input().split(' ') b = int(b) u = int(u) t = int(input()) if a <= b and a + v * t >= b + u * t : print('YES') elif a > b and a - v * t <= b - u * t : print('YES') else: print('NO')
[["-", 75, 665, 15, 679, 12, 666, 0, 657, 17, 72], ["+", 75, 665, 15, 679, 12, 666, 0, 657, 17, 33]]
5
114
A=list(map(int,input().split())) B=list(map(int,input().split())) T=int(input()) if abs(A[0]-B[0])+B[1]*T>A[1]*T: print("No") else: print("Yes")
A=list(map(int,input().split())) B=list(map(int,input().split())) T=int(input()) if abs(A[0]-B[0])+B[1]*T>A[1]*T: 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
84
a,v= map(int, input().split()) b,w= map(int, input().split()) t=input(int()) if w>=v: print("NO") elif 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 w>=v: print("NO") elif (abs(a-b)/abs(v-w))<=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, 24], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 57, 75, 665, 15, 666, 0, 23, 0, 24], ["+", 0, 23, 0, 657, 12, 652, 3, 4, 0, 25]]
5
82
#include <cstdlib> #include <ctime> #include <iostream> #include <string> using namespace std; int main() { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (a >= b) { if (t * (v - w) >= (a - b)) { cout << "Yes" << endl; } else { cout << "No" << endl; } } else { if (t * (v - w) >...
#include <cstdlib> #include <ctime> #include <iostream> #include <string> using namespace std; int main() { long long a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (a >= b) { if (t * (v - w) >= (a - b)) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { if (t * (v ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
126
#include <bits/stdc++.h> using namespace std; int main() { int A, V, B, W, T; cin >> A >> V >> B >> W >> T; if (W - V >= 0) { cout << "No" << endl; } else if (W - V < 0 && abs(B - A) > abs(W - V) * T) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { long long A, V, B, W, T; cin >> A >> V >> B >> W >> T; if (W - V >= 0) { cout << "NO" << endl; } else if (W - V < 0 && abs(B - A) > abs(W - V) * T) { cout << "NO" << endl; } else { cout << "YES" << endl; } }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
99
a, v = [int(a) for a in input().split()] b, w = [int(a) for a in input().split()] t = int(input()) distance = abs(b-a) ds = v - w ans = "" if (ds * t) <= (distance): ans = "NO" else: ans = "YES" print(ans)
a, v = [int(a) for a in input().split()] b, w = [int(a) for a in input().split()] t = int(input()) distance = abs(b-a) ds = v - w ans = "" if (ds * t) < (distance): ans = "NO" else: ans = "YES" print(ans)
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18]]
5
92
#include <bits/stdc++.h> using namespace std; int main() { int A, V, B, W, T; cin >> A >> V; cin >> B >> W; cin >> T; if (A < B) { if (V * T + A < W * T + B) { cout << "NO" << endl; } else { cout << "YES" << endl; } } else { if (W * T + A < V * T + B) { cout << "NO" << endl...
#include <bits/stdc++.h> using namespace std; int main() { long A, V, B, W, T; cin >> A >> V; cin >> B >> W; cin >> T; if (A < B) { if (V * T + A < W * T + B) { cout << "NO" << endl; } else { cout << "YES" << endl; } } else { if (W * T + A > V * T + B) { cout << "NO" << end...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
120
oni = list(map(int,input().split())) child =list(map(int,input().split())) time = int(input()) if oni[0]<child[0]: oni_kyori = oni[0]+oni[1]*time child_kyori = child[0]+child[1]*time if oni_kyori<child_kyori: print('NO') else: print('YES') else: oni_kyori = oni[0]-oni[1]*time c...
oni = list(map(int,input().split())) child =list(map(int,input().split())) time = int(input()) if oni[0]<child[0]: oni_kyori = oni[0]+oni[1]*time child_kyori = child[0]+child[1]*time if oni_kyori<child_kyori: print('NO') else: print('YES') else: oni_kyori = oni[0]-oni[1]*time c...
[["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 47]]
5
145
a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input) s=v-w s*=t if abs(a-b)<=s: print("YES") else: print("NO")
a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) s=v-w s*=t if abs(a-b)<=s: print("YES") else: print("NO")
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
70
#include <bits/stdc++.h> #include <string.h> using namespace std; using ll = long long; using P = pair<int, int>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) const int INF = 1001001001; int main() { ll a, b, v, w, t; cin >> a >> v >> b >> w >> t; if (a > b) a = -a; b = -b; while (t > 0) { a ...
#include <bits/stdc++.h> #include <string.h> using namespace std; using ll = long long; using P = pair<int, int>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) const int INF = 1001001001; int main() { ll a, b, v, w, t; cin >> a >> v >> b >> w >> t; if (a > b) { a = -a; b = -b; } while (t > 0) ...
[["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46]]
1
129
a, v = gets.split.map(&:to_i) b, w = gets.split.map(&:to_i) t = gets.to_i if v <= w puts "NO" exit end puts ((a-b).abs <= (v+w)*t) ? "YES" : "NO"
a, v = gets.split.map(&:to_i) b, w = gets.split.map(&:to_i) t = gets.to_i if v <= w puts "NO" exit end puts ((a-b).abs <= (v-w)*t) ? "YES" : "NO"
[["-", 0, 738, 12, 738, 31, 739, 0, 738, 17, 72], ["+", 0, 738, 12, 738, 31, 739, 0, 738, 17, 33]]
4
67
/* * Project: okio Marine & Nichido Programing Contest 2020 B - Tag * Author: toms74209200 <https://github.com/toms74209200> * * Created on 2020/06/13 * Copyright (c) 2020 toms74209200 * * This software is released under the MIT License. * http://opensource.org/licenses/mit-license.php */ #include <cstdio> #in...
/* * Project: okio Marine & Nichido Programing Contest 2020 B - Tag * Author: toms74209200 <https://github.com/toms74209200> * * Created on 2020/06/13 * Copyright (c) 2020 toms74209200 * * This software is released under the MIT License. * http://opensource.org/licenses/mit-license.php */ #include <cstdio> #in...
[["-", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 17, 72], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 12, 13], ["-", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]]
1
156
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define MOD 1000000007 #define MOD2 998244353 #define INF MOD #define LINF (1LL << 60) #define EPS (1e-10) typedef long long Int; typedef pair<Int, Int> P; int main() { Int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define MOD 1000000007 #define MOD2 998244353 #define INF MOD #define LINF (1LL << 60) #define EPS (1e-10) typedef long long Int; typedef pair<Int, Int> P; int main() { Int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if...
[["-", 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
139
#include <bits/stdc++.h> using namespace std; #define int long long signed main(void) { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; int difSpeed = v - w; int dis = abs(a - b); if (difSpeed > 0 && dis / difSpeed <= t) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; #define int long long signed main(void) { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; int difSpeed = v - w; int dis = abs(a - b); if (difSpeed > 0 && (double)dis / difSpeed <= (double)t) { cout << "YES" << endl; } else { cout << "NO" << endl; } ...
[["+", 51, 16, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 12, 16, 31, 16, 31, 74, 39, 77, 39, 40], ["+", 51, 16, 12, 16, 31, 16, 31, 74, 0, 25], ["+", 15, 339, 51, 16, 12, 16, 12, 74, 0, 24], ["+", 51, 16, 12, 16, 12, 74, 39, 77, 39, 40], ["+", 15, 339, 51, 16, 12, 16, 12, 74, 0, 25]]
1
92
a, v = map(int,input().split()) b, w = map(int,input().split()) t = int(input()) kyo = abs(b - a) ti = v - w if w >= v: print("NO") exit() if int(kyo / ti) <= t: print("YES") else: print("NO")
a, v = map(int,input().split()) b, w = map(int,input().split()) t = int(input()) kyo = abs(b - a) ti = v - w if w >= v: print("NO") exit() if kyo / ti <= t: 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
91
a,v = map(int,input().split()) b,w = map(int,input().split()) t = int(input()) if v <= w: print("NO") elif abs(b-a)/(w-v) > t: 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(b-a))/(v-w) > t: print("NO") else: print("YES")
[["+", 75, 665, 15, 666, 0, 657, 31, 23, 0, 24], ["+", 75, 665, 15, 666, 0, 657, 31, 23, 0, 25], ["-", 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
81
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; int main() { ll A, V; cin >> A >> V; ll B, W; cin >> B >> W; ll T; cin >> T; if (V <= W) { cout << "NO" << endl; exit(0); } ll al = A + (T * V); ll bl = B + (T * W); if (al < bl) { cout << "NO"...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; int main() { ll A, V; cin >> A >> V; ll B, W; cin >> B >> W; ll T; cin >> T; if (V <= W) { cout << "NO" << endl; exit(0); } ll al = A + (T * V); ll bl = B + (T * W); if (al < bl) { cout << "NO"...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
262
// In the name of god #include <bits/stdc++.h> #pragma GCC optimize("02") #define F first #define S second #define pb push_back using namespace std; using ll = long long; const ll maxn = 2e5 + 5, inf = 1e18 + 18; ll a, b, v, w, t; int main() { ios::sync_with_stdio(false), cin.tie(0), cout.tie(0); cin >> a >> v >> b...
// In the name of god #include <bits/stdc++.h> #pragma GCC optimize("02") #define F first #define S second #define pb push_back using namespace std; using ll = long long; const ll maxn = 2e5 + 5, inf = 1e18 + 18; ll a, b, v, w, t; int main() { ios::sync_with_stdio(false), cin.tie(0), cout.tie(0); cin >> a >> v >> b...
[["-", 31, 16, 12, 2, 3, 4, 0, 16, 31, 22], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 31, 22], ["-", 31, 16, 12, 2, 3, 4, 0, 16, 12, 22], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 22]]
1
145
a, v = [int(x) for x in input().split()] b, w = [int(x) for x in input().split()] t = int(input()) print('YES' if abs(a-b) < (v-w)*t else 'NO')
a, v = [int(x) for x in input().split()] b, w = [int(x) for x in input().split()] t = int(input()) print('YES' if abs(a-b) <= (v-w)*t else 'NO')
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 18], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 19]]
5
73
a,v = map(int,input().split()) b,u = map(int,input().split()) t = int(input()) if v >= u: print('NO') quit() dis = (u-v) * t f = abs(a-b) if f <= dis: print('YES') else: print('NO')
a,u = map(int,input().split()) b,v = map(int,input().split()) t = int(input()) if v >= u: print('NO') quit() dis = (u-v) * t f = abs(a-b) if f <= dis: print('YES') else: print('NO')
[["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22]]
5
90
# -*- coding: utf-8 -*- a, v = map(int, input().split()) b, w = map(int, input().split()) T = int(input()) k = b - a flag = False if k >= 0: l = T*v - T*w if (k <= l): flag = True if k < 0: k = a - b l = T*w - T*v if (k <= l): flag = True if (flag == True): print('YES') el...
# -*- coding: utf-8 -*- a, v = map(int, input().split()) b, w = map(int, input().split()) T = int(input()) k = b - a flag = False if k >= 0: l = T*v - T*w if (k <= l): flag = True if k < 0: k = a - b l = T*v - T*w if (k <= l): flag = True if (flag == True): print('YES') el...
[["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22], ["-", 0, 1, 0, 662, 12, 657, 12, 657, 12, 22], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 12, 22]]
5
123
A,V=map(int, input().split()) B,W=map(int, input().split()) T,=map(int, input().split()) x=abs(B-A) v=abs(V-W) if(x<=v*T): print("YES") else: print("NO")
A,V=map(int, input().split()) B,W=map(int, input().split()) T,=map(int, input().split()) x=abs(B-A) v=V-W if(x<=v*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]]
5
86
#include <iostream> using namespace std; int main() { long long a, b, v, w, 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) cout << "YES" << endl; el...
#include <iostream> using namespace std; int main() { long long a, b, v, w, 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) cout << "YES" << endl; el...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
116
#include <algorithm> #include <bitset> #include <cmath> #include <cstdlib> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <utility> #include <vector> using namespace std; using ll = long long; using Pii = pai...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdlib> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <utility> #include <vector> using namespace std; using ll = long long; using Pii = pai...
[["-", 12, 23, 0, 41, 15, 23, 0, 16, 17, 18], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 17, 19]]
1
207
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if (b >= a): aa=a+v*t bb=b+w*t if (bb-aa >=0): print ('NO') else: print ('YES') else: aa=a-v*t bb=b-w*t if (bb-aa <0): print ('NO') else: print ('YES')
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if (b >= a): aa=a+v*t bb=b+w*t if (bb-aa >0): print ('NO') else: print ('YES') else: aa=a-v*t bb=b-w*t if (bb-aa <0): print ('NO') else: print ('YES')
[["-", 64, 196, 0, 57, 15, 23, 0, 666, 667, 20], ["+", 64, 196, 0, 57, 15, 23, 0, 666, 667, 47]]
5
123
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if V<= W: print("NO") exit() 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") exit() if abs(B-A)/(V-W) <= T: print("YES") else: print("NO")
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 676], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 85]]
5
84
a,v = map(int, input().split()) b,w = map(int, input().split()) t = int(input()) oni = v*t nige = w*t sa = abs(b-a) if oni - nige > sa: print("YES") else: print("NO")
a,v = map(int, input().split()) b,w = map(int, input().split()) t = int(input()) oni = v*t nige = w*t sa = abs(b-a) if oni - nige >= sa: print("YES") else: print("NO")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]]
5
79
#include <bits/stdc++.h> using namespace std; typedef long long LL; #define fi first #define se second #define pb push_back #define forn(i, n) for (int i = 0; i < (n); i++) #define for1(i, n) for (int i = 1; i <= n; i++) #define forr(i, n) for (int i = n; i >= 0; i--) #define all(x) x.begin(), x.end() const int MAXN = ...
#include <bits/stdc++.h> using namespace std; typedef long long LL; #define fi first #define se second #define pb push_back #define forn(i, n) for (int i = 0; i < (n); i++) #define for1(i, n) for (int i = 1; i <= n; i++) #define forr(i, n) for (int i = n; i >= 0; i--) #define all(x) x.begin(), x.end() const int MAXN = ...
[["-", 0, 2, 3, 4, 0, 16, 12, 118, 119, 120], ["+", 0, 2, 3, 4, 0, 16, 12, 118, 119, 120]]
1
203
#include <bits/stdc++.h> #define rep(i, cc, n) for (int i = cc; i <= n; ++i) #define drep(i, cc, n) for (int i = cc; i >= n; --i) #define sz(s) (int)(s.size()) #define vecprint(v) \ rep(i, 0, v.size() - 1) cout << v[i] << " "; ...
#include <bits/stdc++.h> #define rep(i, cc, n) for (int i = cc; i <= n; ++i) #define drep(i, cc, n) for (int i = cc; i >= n; --i) #define sz(s) (int)(s.size()) #define vecprint(v) \ rep(i, 0, v.size() - 1) cout << v[i] << " "; ...
[["+", 15, 339, 51, 16, 31, 16, 31, 74, 0, 24], ["+", 51, 16, 31, 16, 31, 74, 39, 77, 39, 40], ["+", 15, 339, 51, 16, 31, 16, 31, 74, 0, 25]]
1
206
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int a, b, v, w, t; cin >> a >> v >> b >> w >> t; cout << ((long long)t * (v - w) >= abs(a - b) ? "Yes" : "No"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int a, b, v, w, t; cin >> a >> v >> b >> w >> t; cout << ((long long)t * (v - w) >= abs(a - b) ? "YES" : "NO"); return 0; }
[["-", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
90
#include <bits/stdc++.h> #pragma GCC optimize("Ofast,no-stack-protector,unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #define ll long long #define pb push_back #define eb emplace_back #define mp make_pair #define pii pair<ll, ll> #define vi vector<ll> #define vii vector<pi...
#include <bits/stdc++.h> #pragma GCC optimize("Ofast,no-stack-protector,unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #define ll long long #define pb push_back #define eb emplace_back #define mp make_pair #define pii pair<ll, ll> #define vi vector<ll> #define vii vector<pi...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
214
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(0); ll A; cin >> A; ll V; cin >> V; ll B; cin >> B; ll W; cin >> W; ll T; cin >> T; ll D = abs(A - B); string ans = "NO"; if (T * V >= T * W + D) ans = "Yes"; cou...
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(0); ll A; cin >> A; ll V; cin >> V; ll B; cin >> B; ll W; cin >> W; ll T; cin >> T; ll D = abs(A - B); string ans = "NO"; if (T * V >= T * W + D) ans = "YES"; cou...
[["-", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6]]
1
113
#define ll long long #define ull unsigned long long #define pb push_back #define mp make_pair #include <bits/stdc++.h> #include <iostream> using namespace std; int isprime(int n) { int count = 0; for (int i = 2; i <= sqrt(n); i++) if (n % i == 0) count++; if (count) return 0; return 1; } int main(...
#define ll long long #define ull unsigned long long #define pb push_back #define mp make_pair #include <bits/stdc++.h> #include <iostream> using namespace std; int isprime(int n) { int count = 0; for (int i = 2; i <= sqrt(n); i++) if (n % i == 0) count++; if (count) return 0; return 1; } int main(...
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
1
168
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i < n; i++) #define INF 2e9 #define ALL(v) v.begin(), v.end() using namespace std; typedef long long ll; int main() { ll A, B, T, V, W, tmp, d; cin >> A >> V >>...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; i >= 0; i--) #define FOR(i, m, n) for (int i = m; i < n; i++) #define INF 2e9 #define ALL(v) v.begin(), v.end() using namespace std; typedef long long ll; int main() { ll A, B, T, V, W, tmp, d; cin >> A >> V >>...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
144
#include <bits/stdc++.h> using namespace std; int main() { int x, y, v, w, d; cin >> x >> y >> v >> w >> d; int dis = abs(x - y); if (dis <= (v - w) * d) { cout << "YES\n"; } else { cout << "NO\n"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long x, y, v, w, d; cin >> x >> v >> y >> w >> d; long long dis = abs(x - y); if (dis <= (v - w) * d) { cout << "YES\n"; } else { cout << "NO\n"; } return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 152], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22]]
1
79
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)<(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: print("NO") else: if abs(b-a)<=t*(v-w): 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], ["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 18], ["-", 8, 196, 0, 57, 15, 666, 0, 23, 0, 24], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 15, 666, 0, 23, 0, 657, 12, 23, 0, 25]]
5
85
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines A, V = map(int, readline().split()) B, W = map(int, readline().split()) T = int(readline()) if W >= V: print('NO') sys.exit() if (abs(A-B)//(V-W)) <= T: print('YES') else: print('NO')
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines A, V = map(int, readline().split()) B, W = map(int, readline().split()) T = int(readline()) if W >= V: print('NO') sys.exit() if (abs(A-B)/(V-W)) <= T: print('YES') else: print('NO')
[["-", 0, 57, 15, 666, 0, 23, 0, 657, 17, 676], ["+", 0, 57, 15, 666, 0, 23, 0, 657, 17, 85]]
5
117
#include <cmath> #include <iostream> #include <stdio.h> using namespace std; typedef long long ll; int main() { ll A, B, V, W, T; scanf("%lld %lld", &A, &V); scanf("%lld %lld", &B, &W); scanf("%lld", &T); if (abs(A - B) < (V - W) * T) { cout << "YES" << endl; } else { cout << "N0" << endl; }...
#include <cmath> #include <iostream> #include <stdio.h> using namespace std; typedef long long ll; int main() { ll A, B, V, W, T; scanf("%lld %lld", &A, &V); scanf("%lld %lld", &B, &W); scanf("%lld", &T); if (abs(A - B) <= (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], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
106