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
'use strict'; function Main(stdin) { const input = stdin.trim().split(/\r?\n/g); const A_V = input[0].split(' ').map(str => BigInt(str)); const A = A_V[0], V = A_V[1]; const B_W = input[1].split(' ').map(str => BigInt(str)); const B = B_W[0], W = B_W[1]; const T = BigInt(input[2]); let result = 'NO'; le...
'use strict'; function Main(stdin) { const input = stdin.trim().split(/\r?\n/g); const A_V = input[0].split(' ').map(str => BigInt(str)); const A = A_V[0], V = A_V[1]; const B_W = input[1].split(' ').map(str => BigInt(str)); const B = B_W[0], W = B_W[1]; const T = BigInt(input[2]); let result = 'NO'; le...
[["-", 64, 556, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 64, 556, 0, 57, 15, 23, 0, 16, 17, 20]]
2
276
if __name__ == '__main__': a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) l =abs(a - b) s=abs(v - w) if w >= v or l // s > t: print("NO") else: print("YES")
if __name__ == '__main__': a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) l =abs(a - b) s=abs(v - w) if w >= v or l / s > t: print("NO") else: print("YES")
[["-", 0, 57, 15, 679, 12, 666, 0, 657, 17, 676], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 85]]
5
88
((stdin) => { let [a, v, b, w, t] = stdin.split(/\s/); [a, v, b, w, t] = [ +a, +v, +b, +w, +t ]; let distance = a - b; let speed = v - w; let move = t * speed; if (b > a) { if (move + distance > 0) { console.log('YES'); } else { console.log('NO'); } } else { if (move - distan...
((stdin) => { let [a, v, b, w, t] = stdin.split(/\s/); [a, v, b, w, t] = [ +a, +v, +b, +w, +t ]; let distance = a - b; let speed = v - w; let move = t * speed; if (b > a) { if (move + distance >= 0) { console.log('YES'); } else { console.log('NO'); } } else { if (move - dista...
[["-", 64, 556, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 64, 556, 0, 57, 15, 23, 0, 16, 17, 20], ["-", 0, 556, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 0, 556, 0, 57, 15, 23, 0, 16, 17, 20]]
2
173
#include <bits/stdc++.h> using namespace std; int main(void) { long long int A, B, V, W, T; cin >> A >> W; cin >> B >> V; cin >> T; if (abs(A - B) <= T * (V - W)) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { long long int A, B, V, W, T; cin >> A >> W; cin >> B >> V; cin >> T; if (abs(A - B) <= T * (W - V)) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[["-", 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
83
#include <bits/stdc++.h> using intl = long long; using itnl = long long; // typo用 using uintl = unsigned long long; using itn = int; // typo用 using ld = long double; using namespace std; #define rep(i, n) for (intl i = 0; i < (intl)(n); i++) #define rrep(i, n) for (intl i = (intl)(n)-1; i >= 0; i--) #define repi(i, a, ...
#include <bits/stdc++.h> using intl = long long; using itnl = long long; // typo用 using uintl = unsigned long long; using itn = int; // typo用 using ld = long double; using namespace std; #define rep(i, n) for (intl i = 0; i < (intl)(n); i++) #define rrep(i, n) for (intl i = (intl)(n)-1; i >= 0; i--) #define repi(i, a, ...
[["+", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["+", 15, 339, 51, 16, 31, 2, 3, 4, 0, 24], ["+", 31, 2, 3, 4, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 16, 31, 74, 39, 77, 39, 40], ["+", 31, 2, 3, 4, 0, 16, 31, 74, 0, 25], ["+", 15, 339, 51, 16, 31, 2, 3, 4, 0, 25]]
1
547
a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) 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 abs(b-a)<= (v-w)*t: 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()) ans = "Yes" if(V<=W): ans = "No" elif(abs(A-B)>T*abs(V-W)): ans = "No" print(ans)
A, V = map(int,input().split()) B, W = map(int,input().split()) T = int(input()) ans = "YES" if(V<=W): ans = "NO" elif(abs(A-B)>T*abs(V-W)): ans = "NO" print(ans)
[["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]]
5
85
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) dis = abs(A-B) v = V-W if v >= 0 and dis/v <= T: print("Yes") else: print("No")
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) dis = abs(A-B) v = V-W if v > 0 and dis/v <= T: print("YES") else: print("NO")
[["-", 0, 656, 0, 57, 15, 679, 31, 666, 667, 20], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 47], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
78
A, V = map(int,input().split()) B, W = map(int,input().split()) T = int(input()) if W >= V: print('NO') elif (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 W >= V: print('NO') elif abs(B-A)/(V-W) <= T: print('YES') else: print('NO')
[["+", 75, 665, 15, 666, 0, 657, 31, 652, 63, 22], ["-", 0, 57, 75, 665, 15, 666, 0, 657, 17, 676], ["+", 0, 57, 75, 665, 15, 666, 0, 657, 17, 85]]
5
80
#include <bits/stdc++.h> using namespace std; int main() { int A, B, V, W, T; cin >> A >> V >> B >> W >> T; string ans = "YES"; if (V <= W) { ans = "NO"; } else if (abs(A - B) >= T * (V - W)) { ans = "NO"; } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long int A, B, V, W, T; cin >> A >> V >> B >> W >> T; string ans = "YES"; if (V <= W) { ans = "NO"; } else if (abs(A - B) > T * (V - W)) { ans = "NO"; } cout << ans << endl; }
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47]]
1
88
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) behind = B - A move = V - W if behind <= move * T: print('YES') else: print('NO')
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) behind = abs(B - A) move = V - W if behind <= move * 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
71
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if v <= w: print('NO') exit(0) if abs(a-b)%(v-w) == 0: f = abs(a-b//(v-w)) else: f = abs(a-b//(v-w)+1) if f <= 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(0) if abs(a-b)%(v-w) == 0: f = abs(a-b)//(v-w) else: f = abs(a-b)//(v-w)+1 if f <= t: print('YES') else: print('NO')
[["+", 0, 662, 12, 657, 31, 652, 3, 4, 0, 25], ["-", 3, 4, 0, 657, 12, 657, 12, 23, 0, 25], ["+", 12, 657, 31, 657, 31, 652, 3, 4, 0, 25], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
122
[a, v] = map(int, input().split(' ')) [b, w] = map(int, input().split(' ')) t = int(input()) b0 = b - a if (abs(b0) + t * w) < t * v: print('YES') else: print('NO')
[a, v] = map(int, input().split(' ')) [b, w] = map(int, input().split(' ')) t = int(input()) b0 = b - a if (abs(b0) + t * w) <= t * v: 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
85
<?php // 標準入力取得 $hanter = fgets(STDIN); $hanter = str_replace(PHP_EOL, '', $hanter); list($hanterZ, $hanterV) = preg_split('/\s+/', $hanter); // $nums = preg_split('/\s+/', $line); $runner = fgets(STDIN); $runner = str_replace(PHP_EOL, '', $runner); list($runnerZ, $runnerV) = preg_split('/\s+/', $run...
<?php // 標準入力取得 $hanter = fgets(STDIN); $hanter = str_replace(PHP_EOL, '', $hanter); list($hanterZ, $hanterV) = preg_split('/\s+/', $hanter); // $nums = preg_split('/\s+/', $line); $runner = fgets(STDIN); $runner = str_replace(PHP_EOL, '', $runner); list($runnerZ, $runnerV) = preg_split('/\s+/', $runne...
[["-", 0, 493, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 0, 493, 0, 57, 15, 23, 0, 16, 17, 20]]
6
180
#include <bits/stdc++.h> using namespace std; int main() { long long A, B, V, W, T; cin >> A >> V; cin >> B >> W; cin >> T; if ((B - A) + (W - V) * T <= 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { long long A, B, V, W, T; cin >> A >> V; cin >> B >> W; cin >> T; if (abs(B - A) + (W - V) * T <= 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[["+", 15, 339, 51, 16, 31, 16, 31, 2, 63, 22]]
1
79
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) int main() { int a, b; int v, w; int kyori; int speed, t; cin >> a >> v >> b >> w >> t; kyori = abs(b - a); speed = v - w; if (speed * t - kyori > 0) { cout << "YES" << endl; } else { cout << "NO...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) int main() { long a, b; long v, w; long kyori; long speed, t; cin >> a >> v >> b >> w >> t; kyori = abs(b - a); speed = v - w; if (speed * t - kyori >= 0) { cout << "YES" << endl; } else { cout <...
[["-", 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
96
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if W >= V: print("No") else: L = abs(B - A) if T * (V - W) >= L : 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: L = abs(B - A) if T * (V - W) >= L : 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
86
#include <bits/stdc++.h> using ll = long long; using namespace std; using Graph = vector<vector<ll>>; int main() { ll a, v, b, w; cin >> a >> v >> b >> w; ll t; cin >> t; ll dist = abs(a - b); ll diff = v - w; if (dist >= diff * t) { cout << "NO" << endl; } else { cout << "YES" << endl; } }
#include <bits/stdc++.h> using ll = long long; using namespace std; using Graph = vector<vector<ll>>; int main() { ll a, v, b, w; cin >> a >> v >> b >> w; ll t; cin >> t; ll dist = abs(a - b); ll diff = v - w; if (dist > diff * t) { cout << "NO" << endl; } else { cout << "YES" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
101
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define puts(i) cout << i << endl #define pi 3.14159265358979323846264338 #define pb push_back #define mp make_pair #define inf 10000 using ll = long long; using P = pair<int, int>; using Pll = pair<ll, ll>; ll divisor = 100000...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define puts(i) cout << i << endl #define pi 3.14159265358979323846264338 #define pb push_back #define mp make_pair #define inf 10000 using ll = long long; using P = pair<int, int>; using Pll = pair<ll, ll>; ll divisor = 100000...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
133
#include <cstdlib> #include <iostream> using namespace std; int main() { long long a, b, v, w, t, le, sp; cin >> a >> v; cin >> b >> w; cin >> t; le = abs(a - b); sp = (v - w) * t; if (sp >= le) { cout << "yes"; } else { cout << "no"; } }
#include <cstdlib> #include <iostream> using namespace std; int main() { long long a, b, v, w, t, le, sp; cin >> a >> v; cin >> b >> w; cin >> t; le = abs(a - b); sp = (v - w) * t; if (sp >= le) { cout << "YES"; } else { cout << "NO"; } }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
88
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int A = s.nextInt(); int V = s.nextInt(); int B = s.nextInt(); int W = s.nextInt(); double T = s.nextInt(); double D = Math.abs(A - B); double sokudosa = V - W; ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int A = s.nextInt(); int V = s.nextInt(); int B = s.nextInt(); int W = s.nextInt(); double T = s.nextInt(); double D = Math.abs(A - B); double sokudosa = V - W; ...
[["-", 75, 196, 0, 57, 15, 15, 0, 16, 17, 20], ["+", 75, 196, 0, 57, 15, 15, 0, 16, 17, 47]]
3
156
#include <stdio.h> #include <stdlib.h> int main() { long int a, v, b, w, t; scanf("%ld %ld", &a, &v); scanf("%ld %ld", &b, &w); scanf("%ld", &t); if (v <= w) { printf("NO"); exit(0); } else { if ((double)(labs(a - b) / (v - w)) <= t) printf("YES"); else printf("NO"); } }
#include <stdio.h> #include <stdlib.h> int main() { long int a, v, b, w, t; scanf("%ld %ld", &a, &v); scanf("%ld %ld", &b, &w); scanf("%ld", &t); if (v <= w) { printf("NO"); exit(0); } else { if (((double)labs(a - b) / (double)(v - w)) <= t) printf("YES"); else printf("NO"); ...
[["+", 0, 16, 31, 23, 0, 16, 31, 74, 0, 24], ["-", 15, 23, 0, 16, 31, 74, 51, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 16, 12, 74, 0, 24], ["+", 31, 23, 0, 16, 12, 74, 39, 77, 39, 40], ["+", 0, 16, 31, 23, 0, 16, 12, 74, 0, 25]]
0
118
// clang-format off #include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i,n) for(int i=0;i<(int)(n);++i) #define all(x) (x).begin(),(x).end() #define pb push_back #define fi first #define se second #define dbg(x) cout<<#x" = "<<((x))<<endl template<class T,class U> ostream& operator<<(ostrea...
// clang-format off #include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i,n) for(int i=0;i<(int)(n);++i) #define all(x) (x).begin(),(x).end() #define pb push_back #define fi first #define se second #define dbg(x) cout<<#x" = "<<((x))<<endl template<class T,class U> ostream& operator<<(ostrea...
[["-", 0, 14, 8, 9, 0, 37, 0, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 37, 0, 16, 17, 20]]
1
244
#include <stdio.h> int main() { long a, v, b, w, t; scanf("%ld %ld", &a, &v); scanf("%ld %ld", &b, &w); scanf("%ld", &t); if (b > a) { if (b + w * t > a + v * t) printf("NO"); else printf("YES"); } else { if (b + w * t < a + v * t) printf("NO"); else printf("YES"); ...
#include <stdio.h> int main() { long a, v, b, w, t; scanf("%ld %ld", &a, &v); scanf("%ld %ld", &b, &w); scanf("%ld", &t); if (b > a) { if (b + w * t > a + v * t) printf("NO"); else printf("YES"); } else { if (b - w * t < a - v * t) printf("NO"); else printf("YES"); ...
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 33], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 72], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 33]]
0
127
#include <bits/stdc++.h> #define arep(a, i, n) for (int i = (a); i < (n); i++) #define rep(i, n) for (int i = 0; i < (n); i++) #define cinf(x, n) \ for (int i = 0; i < (n); i++) \ cin >> x[i]; #define coutf(...
#include <bits/stdc++.h> #define arep(a, i, n) for (int i = (a); i < (n); i++) #define rep(i, n) for (int i = 0; i < (n); i++) #define cinf(x, n) \ for (int i = 0; i < (n); i++) \ cin >> x[i]; #define coutf(...
[["-", 36, 36, 36, 36, 0, 30, 0, 14, 39, 78], ["+", 36, 36, 36, 36, 0, 30, 0, 14, 39, 78], ["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
166
a, v = map(int,input().split()) b, w = map(int,input().split()) T = int(input()) if a<b: A = a + v * T B = b + w * T if A>= B: print("Yes") else: print("NO") else: A = a - v*T B = b - w * T if A <= B: print("Yes") else: print("NO")
a, v = map(int,input().split()) b, w = map(int,input().split()) T = int(input()) if a<b: A = a + v * T B = b + w * T if A>= B: print("YES") else: print("NO") else: A = a - v*T B = b - w * T if 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
113
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a, v, b, w, t; cin >> a >> v >> b >> w >> t; if ((b - a) <= (v - w) * t) cout << "YES" << endl; else cout << "NO" << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (abs(b - a) <= (v - w) * t) cout << "YES" << endl; else cout << "NO" << endl; }
[["+", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22]]
1
73
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, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
83
import sys a,v = map(int,input().split()) b,w = map(int,input().split()) t = int(input()) if v<=w: print("NO") sys.exit() if a<b: if a+t*v>b+t*w: print("YES") else: print("NO") else: if a-t*v<b-t*w: print("YES") else: print("NO")
import sys a,v = map(int,input().split()) b,w = map(int,input().split()) t = int(input()) if v<=w: print("NO") sys.exit() if a<b: if a+t*v>=b+t*w: print("YES") else: print("NO") else: if a-t*v<=b-t*w: print("YES") else: print("NO")
[["-", 0, 57, 64, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 667, 20], ["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 19]]
5
119
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) if abs(B-A)<=abs((V-W))*T: print('YES') else: print('NO')
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) if abs(B-A)<=(V-W)*T: print('YES') else: print('NO')
[["-", 0, 57, 15, 666, 0, 657, 31, 652, 63, 22], ["-", 0, 657, 31, 652, 3, 4, 0, 23, 0, 24], ["-", 0, 657, 31, 652, 3, 4, 0, 23, 0, 25]]
5
73
A, S_A = map(int, input().split(' ')) B, S_B = map(int, input().split(' ')) T = int(input()) if A < B: is_catchable = S_A * T + A >= S_B * T + B else: is_catchable = S_A * T + A <= S_B * T + B if is_catchable: print('YES') else: print('NO')
A, S_A = map(int, input().split(' ')) B, S_B = map(int, input().split(' ')) T = int(input()) if A < B: is_catchable = S_A * T + A >= S_B * T + B else: is_catchable = -1 * S_A * T + A <= -1 * S_B * T + B if is_catchable: print('YES') else: print('NO')
[["+", 0, 657, 31, 657, 31, 657, 31, 664, 17, 33], ["+", 0, 657, 31, 657, 31, 657, 31, 664, 28, 612], ["+", 12, 666, 0, 657, 31, 657, 31, 657, 17, 48]]
5
96
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 1e18; const int inf = 1e9; #define rep(i, a, b) for (int i = a; i < b; i++) #define per(i, b, a) for (int i = a - 1; i >= b; i--) using Graph = vector<vector<int>>; using pint = pair<int, int>; int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 1e18; const int inf = 1e9; #define rep(i, a, b) for (int i = a; i < b; i++) #define per(i, b, a) for (int i = a - 1; i >= b; i--) using Graph = vector<vector<int>>; using pint = pair<int, int>; int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13]]
1
231
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { long a = sc.nextLong(); long v = sc.nextLong(); long b = sc.nextLong(); long w = sc.nextLong(); long t = sc.nextLong(); if (a <= b) { if (a + v * t >= ...
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { long a = sc.nextLong(); long v = sc.nextLong(); long b = sc.nextLong(); long w = sc.nextLong(); long t = sc.nextLong(); if (a <= b) { if (a + v * t >= ...
[["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 33], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 72], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 33]]
3
174
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using vi = vector<int>; using vll = vector<ll>; using P = pair<int, int>; constexpr int INF = 1e9; constexpr ll INFLL = 1e18; constexpr int MOD = 1e9 + 7; const ld PI = acosl(-1); #define rep(i, n) for (int i = 0; i < (n); ++...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using vi = vector<int>; using vll = vector<ll>; using P = pair<int, int>; constexpr int INF = 1e9; constexpr ll INFLL = 1e18; constexpr int MOD = 1e9 + 7; const ld PI = acosl(-1); #define rep(i, n) for (int i = 0; i < (n); ++...
[["-", 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, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
186
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if V <= W: f = False else: t = abs(B - A) // (V - W) if t <= T: f = True else: f = False print("YES" if f else "NO")
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if V <= W: f = False else: t = abs(B - A) / (V - W) if t <= T: f = True else: f = False print("YES" if f else "NO")
[["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 85]]
5
89
a,v = map(int, input().split()) b,w = map(int, input().split()) t = int(input()) d = abs(a-b) s = v - w if s > 0 and not d%s and d/s <= 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) s = v - w if s > 0 and d/s <= t: print("YES") else: print("NO")
[["-", 0, 57, 15, 679, 31, 679, 12, 681, 0, 372], ["-", 15, 679, 31, 679, 12, 681, 28, 657, 17, 109], ["-", 15, 679, 31, 679, 12, 681, 28, 657, 12, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["-", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22]]
5
83
#include <bits/stdc++.h> using namespace std; #define mp make_pair typedef long long ll; const int N = 1e7 + 1; int main() { ll a, b, v, w, t; cin >> a >> v >> b >> w >> t; ll dis = abs(a - b), speed; speed = v - w; if (speed <= 0) { cout << "NO"; return 0; } ll time = dis / speed; if (time <= ...
#include <bits/stdc++.h> using namespace std; #define mp make_pair typedef long long ll; const int N = 1e7 + 1; int main() { ll a, b, v, w, t; cin >> a >> v >> b >> w >> t; double dis = abs(a - b), speed; speed = v - w; if (speed <= 0) { cout << "NO"; return 0; } double time = dis / speed; if (...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
115
import java.util.Scanner; class Main { 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(); boolean esc = false; if (a <= b) { if (a +...
import java.util.Scanner; class Main { 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(); boolean esc = false; if (a <= b) { if (a +...
[["-", 15, 15, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 12, 22]]
3
166
A,V=map(int,input().split()) B,W=map(int,input().split()) T=input() if B>=A: print("YES" if A+V*T>=B+W*T else "NO") else: print("YES" if B-W*T>=A-V*T else "NO")
A,V=map(int,input().split()) B,W=map(int,input().split()) T=int(input()) if B>=A: print("YES" if A+V*T>=B+W*T else "NO") else: print("YES" if B-W*T>=A-V*T else "NO")
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
88
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) distance = abs(B-A) diff = V-W if distance - diff * T <= 0: print('Yes') else: print('No')
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) distance = abs(B-A) diff = V-W if distance - diff * T <= 0: 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; typedef long long ll; #define ALL(obj) (obj).begin, (obj).end() int main() { ll A, B, V, W, T; cin >> A >> V; cin >> B >> W; cin >> T; if (V <= W) { cout << "NO" << endl; return 0; } else { ll d = abs(A - B); ll vel = V - W; if (d / vel <= T...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define ALL(obj) (obj).begin, (obj).end() int main() { ll A, B, V, W, T; cin >> A >> V; cin >> B >> W; cin >> T; if (V <= W) { cout << "NO" << endl; return 0; } else { ll d = abs(A - B); ll vel = V - W; if (d <= T * vel...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]]
1
121
A,V = map(int,input().split(' ')) B,W = map(int,input().split(' ')) T = int(input()) if A <= B : print('YES' if T*V+A >= T*W+B else 'NO') else: print('NO' if T*V+A >= T*W+B else 'YES')
A,V = map(int,input().split(' ')) B,W = map(int,input().split(' ')) T = int(input()) if A <= B : print('YES' if T*V+A >= T*W+B else 'NO') else: print('YES' if T*V-A >= T*W-B else 'NO')
[["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["-", 3, 4, 0, 41, 0, 666, 0, 657, 17, 72], ["+", 3, 4, 0, 41, 0, 666, 0, 657, 17, 33]]
5
97
import sys orga = list(map(int, input().split())) child = list(map(int, input().split())) time = int(input()) speed = orga[1] - child[1] dis = abs(orga[0] - child[0]) if speed <= 0: print("No") sys.exit() if dis / speed <= time: print("Yes") else: print("No")
import sys orga = list(map(int, input().split())) child = list(map(int, input().split())) time = int(input()) speed = orga[1] - child[1] dis = abs(orga[0] - child[0]) if speed <= 0: print("NO") sys.exit() if dis / speed <= time: 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
106
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if a <= b and a + v*t >= b + w*t: print("Yes") elif a > b and 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 and a + v*t >= b + w*t: print("YES") elif a > b and a - v*t <= b - 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
94
#include <bits/stdc++.h> #define ll long long using namespace std; struct p { ll ads; ll verb; }; int main() { p a, b; ll t; while (cin >> a.ads >> a.verb >> b.ads >> b.verb >> t) { if (a.ads < b.ads) // a is behind b { if ((a.verb - b.verb) * t >= b.ads - a.ads) printf("YES\n"); ...
#include <bits/stdc++.h> #define ll long long using namespace std; struct p { ll ads; ll verb; }; int main() { p a, b; ll t; while (cin >> a.ads >> a.verb >> b.ads >> b.verb >> t) { if (a.ads < b.ads) // a is behind b { if ((a.verb - b.verb) * t >= b.ads - a.ads) printf("YES\n"); ...
[["-", 31, 16, 31, 23, 0, 16, 31, 118, 28, 22], ["+", 31, 16, 31, 23, 0, 16, 31, 118, 28, 22], ["-", 31, 16, 31, 23, 0, 16, 12, 118, 28, 22], ["+", 31, 16, 31, 23, 0, 16, 12, 118, 28, 22]]
1
155
A,V = [int(hoge) for hoge in input().split()] B,W = [int(hoge) for hoge in input().split()] T = int(input()) dist = abs(A-B) oni = (V-W) * T if dist <= oni: print("Yes") else: print("No")
A,V = [int(hoge) for hoge in input().split()] B,W = [int(hoge) for hoge in input().split()] T = int(input()) dist = abs(A-B) oni = (V-W) * T if dist <= oni: 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()) First=abs(A-B) Move=W-V if First+(Move*T)<0: print("YES") else: print("NO")
A,V= map(int,input().split()) B,W= map(int,input().split()) T=int(input()) First=abs(A-B) Move=W-V if First+(Move*T)<=0: 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
78
#include <bits/stdc++.h> using namespace std; int main() { int A, V, B, W, T; cin >> A >> V >> B >> W >> T; int second; second = (B - A) / (V - W); // 追いつかない場合 if (V <= W) { cout << "NO" << endl; } // T秒以内に追いつく場合 else if (second <= T) { cout << "YES" << endl; } else { cout << "NO" << en...
#include <bits/stdc++.h> using namespace std; int main() { double A, V, B, W, T; cin >> A >> V >> B >> W >> T; double second; second = abs(B - A) / (V - W); // 追いつかない場合 if (V <= W) { cout << "NO" << endl; } // T秒以内に追いつく場合 else if (second <= T) { cout << "YES" << endl; } else { cout << "...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 1, 0, 11, 12, 16, 31, 2, 63, 22]]
1
98
#include <bits/stdc++.h> using namespace std; int main() { long long A, B, V, W, T; cin >> A >> V >> B >> W >> T; if (A < B) { if ((A + V * T) >= (B + W * T)) { cout << "YES" << endl; return 0; } else { cout << "NO" << endl; return 0; } } else { if ((A + V * T) <= (B + W...
#include <bits/stdc++.h> using namespace std; int main() { long long A, B, V, W, T; cin >> A >> V >> B >> W >> T; if (A < B) { if ((A + V * T) >= (B + W * T)) { cout << "YES" << endl; return 0; } else { cout << "NO" << endl; return 0; } } else { if ((A - V * T) <= (B - W...
[["-", 15, 339, 51, 16, 31, 23, 0, 16, 17, 72], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 33], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 72], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 33]]
1
131
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll a, b, v, w, t, temp1, temp2, dist, speed; string ans; cin >> a >> v >> b >> w >> t; dist = abs(b - a); speed = abs(v - w); if (speed * t >= dist) { ans = "YES"; } else { ans = "NO"; } // cout << "dist:" << ...
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll a, b, v, w, t, temp1, temp2, dist, speed; string ans; cin >> a >> v >> b >> w >> t; dist = abs(b - a); speed = v - w; if (speed * t >= dist) { ans = "YES"; } else { ans = "NO"; } // cout << "dist:" << dist ...
[["-", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["-", 0, 1, 0, 11, 12, 2, 3, 4, 0, 24], ["-", 0, 1, 0, 11, 12, 2, 3, 4, 0, 25]]
1
102
#n, m, q = map(int, input().split()) #List = list(map(int, input().split())) #req = [list(map(int, input().split())) for _ in range(q)] #t = t[:-1] #print(ans[j], end = "") 改行無しで出力 #[0]*n import math from decimal import * a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) c = Decimal(b...
#n, m, q = map(int, input().split()) #List = list(map(int, input().split())) #req = [list(map(int, input().split())) for _ in range(q)] #t = t[:-1] #print(ans[j], end = "") 改行無しで出力 #[0]*n import math from decimal import * a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) c = abs(Decim...
[["+", 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], ["+", 0, 656, 0, 1, 0, 662, 12, 23, 0, 24], ["+", 0, 657, 12, 657, 12, 652, 3, 4, 0, 25]]
5
103
#include <bits/stdc++.h> using namespace std; int main() { long long A, V, B, W, T, dist; cin >> A >> V >> B >> W >> T; // vector<long long> A(N); dist = V * T - W * T; if (B - A <= dist) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { long long A, V, B, W, T, dist; cin >> A >> V >> B >> W >> T; // vector<long long> A(N); dist = V * T - W * T; if (llabs(B - A) <= dist) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[["+", 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
78
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) dis = abs(max(A,B) - min(A,B)) velo = V - W if velo <= 0: print('NO') exit() if (dis/velo) < T: print('YES') else: print('NO')
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) dis = abs(max(A,B) - min(A,B)) velo = V - W if velo <= 0: print('NO') exit() if (dis/velo) <= 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
100
#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; cin >> A >> V >> B >> W >> T; if (W >= V || abs(A - B) / (V - W) > T) cout << "NO" << endl; else cout << "YES" << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { long double A, B, V, W, T; cin >> A >> V >> B >> W >> T; if (W >= V || abs(A - B) / (V - W) > T) cout << "NO" << endl; else cout << "YES" << endl; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]]
1
82
#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 or abs(a - b) / abs(v - w) > t) cout << "NO" << "\n"; else cout << "YES" << "\n"; }
#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 or (long double) abs(a - b) / abs(v - w) > t) cout << "NO" << "\n"; else cout << "YES" << "\n"; }
[["+", 51, 16, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 31, 16, 31, 74, 39, 77, 39, 86, 0, 96], ["+", 31, 16, 31, 74, 39, 77, 39, 86, 39, 40], ["+", 51, 16, 12, 16, 31, 16, 31, 74, 0, 25]]
1
79
Oni = input().split(" ") A = int(Oni[0]) V = int(Oni[1]) child = input().split(" ") B = int(child[0]) W = int(child[1]) T = int(input()) if V - W > 0: X = V - W Y = abs(A -B) if X * T > Y: print("YES") else: print("NO") else: print("NO")
Oni = input().split(" ") A = int(Oni[0]) V = int(Oni[1]) child = input().split(" ") B = int(child[0]) W = int(child[1]) T = int(input()) if V - W > 0: X = V - W Y = abs(A - B) if X * T >= Y: print("YES") else: print("NO") else: print("NO")
[["-", 0, 57, 64, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 667, 20]]
5
117
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #include <math.h> #include <set> #define pai arccos(-1); #define keta(n) cout << fixed << setprecision((n)); #define ll long long; int main() { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (v * t - w * t >= b...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #include <math.h> #include <set> #define pai arccos(-1); #define keta(n) cout << fixed << setprecision((n)); #define ll long long; int main() { long long int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (v * t -...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 57, 15, 339, 51, 16, 12, 2, 63, 22], ["+", 15, 339, 51, 16, 12, 2, 3, 4, 0, 24], ["+", 15, 339, 51, 16, 12, 2, 3, 4, 0, 25]]
1
90
import java.util.Scanner; public class Main { // final int MOD = 1000000007; // public static int min = 3000000; public static void main(String[] args) { int ans = 0; Scanner sc = new Scanner(System.in); boolean f = false; // long k = sc.nextLong(); // int n = sc.nextInt(); long a ...
import java.util.Scanner; public class Main { // final int MOD = 1000000007; // public static int min = 3000000; public static void main(String[] args) { int ans = 0; Scanner sc = new Scanner(System.in); boolean f = false; // long k = sc.nextLong(); // int n = sc.nextInt(); long a ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]]
3
193
import sys reader = (s.rstrip() for s in sys.stdin) input = reader.__next__ # do magic here a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) distA = v*t distB = w*t if a < b: if a+distA >= b+distB: print("YES") else: print("NO") else: if a-distB >= b-distB...
import sys reader = (s.rstrip() for s in sys.stdin) input = reader.__next__ # do magic here a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) distA = v*t distB = w*t # diff = abs(a-b) if a < b: if a+distA >= b+distB: print("YES") else: print("NO") else: if ...
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22], ["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 19]]
5
126
#define _USE_MATH_DEFINES #include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <cstdint> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <new> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #defin...
#define _USE_MATH_DEFINES #include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <cstdint> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <new> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #defin...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 9, 0, 57, 75, 76, 0, 95], ["-", 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
395
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if v <= w: print('NO') exit() if a > b: d1 = a + v * t d2 = b + w * t if d1 < d2: print('NO') exit() else: d1 = a - v * t d2 = b - w * t if d1 > d2: print('NO') exit() pr...
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if v <= w: print('NO') exit() if a < b: d1 = a + v * t d2 = b + w * t if d1 < d2: print('NO') exit() else: d1 = a - v * t d2 = b - w * t if d1 > d2: print('NO') exit() pr...
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18]]
5
123
def input_int(): return map(int, input().split()) def one_int(): return int(input()) def one_str(): return input() def many_int(): return list(map(int, input().split())) A, V = input_int() B, W = input_int() T = one_int() speed = (V-W) kyori = (B-A) if speed*T >= kyori: print("YES") else: ...
def input_int(): return map(int, input().split()) def one_int(): return int(input()) def one_str(): return input() def many_int(): return list(map(int, input().split())) A, V = input_int() B, W = input_int() T = one_int() speed = (V-W) kyori = abs(B-A) if speed*T >= kyori: print("YES") else:...
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
114
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) distance = abs(a - b) distance_t = (v * t) - (w * t) if distance - distance_t <= 0: print('Yes') else: print('No')
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) distance = abs(a - b) distance_t = (v * t) - (w * t) if distance - distance_t <= 0: 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
82
A,V=map(int,input().split()) B,W=map(int,input().split()) T=int(input()) if V==W: print("NO") elif (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") elif abs((B-A))/(V-W) <= T: print("YES") else: print("NO")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 75, 665, 15, 666, 0, 657, 31, 652, 63, 22], ["+", 0, 657, 31, 652, 3, 4, 0, 23, 0, 24], ["+", 15, 666, 0, 657, 31, 652, 3, 4, 0, 25], ["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 20], ["+", 0, 656, 0, 57, 75, 665, 15, ...
5
80
#include <bits/stdc++.h> using namespace std; int main() { long long a, b; long long v, w; long long t; cin >> a >> v; cin >> b >> w; cin >> t; if (v > w) { if (abs(a - b) / (v - w) <= t) { cout << "YES" << endl; return 0; } } cout << "NO" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b; long long v, w; long long t; cin >> a >> v; cin >> b >> w; cin >> t; if (v > w) { if ((double)abs(a - b) / (v - w) <= t) { cout << "YES" << endl; return 0; } } cout << "NO" << endl; }
[["+", 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
90
import java.util.Scanner; public class Main { 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(); boolean catched = false; long dist = Ma...
import java.util.Scanner; public class Main { 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(); boolean catched = false; long dist = Ma...
[["+", 75, 57, 15, 15, 0, 16, 31, 16, 17, 48], ["+", 75, 57, 15, 15, 0, 16, 31, 16, 12, 22], ["-", 75, 57, 15, 15, 0, 16, 12, 16, 17, 85], ["-", 75, 57, 15, 15, 0, 16, 12, 16, 12, 22]]
3
168
//#pragma GCC optimize ("Ofast") //#pragma GCC optimize ("unroll-loops") //#pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <ext/rope> #define pb push_back #define F first #define S second #define ins insert #define mp ma...
//#pragma GCC optimize ("Ofast") //#pragma GCC optimize ("unroll-loops") //#pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <ext/rope> #define pb push_back #define F first #define S second #define ins insert #define mp ma...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
579
a,v=map(int,input().split())#鬼 b,w=map(int,input().split()) t=int(input()) if w>=v: print("No") else:#v>w dif=v-w if dif*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 w>=v: print("NO") else:#v>w dif=v-w if dif*t>=abs(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
86
a, v = [int(i) for i in input().split()] b, w = [int(i) for i in input().split()] t = int(input()) l = b-a v_l = v-w if l > 0: if l <=( v_l * t): print("YES") else: print("NO") else: if l >= (v_l * t): print("YES") else: print("NO")
a, v = [int(i) for i in input().split()] b, w = [int(i) for i in input().split()] t = int(input()) l = b-a v_l = v-w if l > 0: if l <=( v_l * t): print("YES") else: print("NO") else: if -l <= (v_l * t): print("YES") else: print("NO")
[["+", 8, 196, 0, 57, 15, 666, 0, 664, 17, 33], ["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 19]]
5
111
A, V = [int(n) for n in input().split()] B, W = [int(n) for n in input().split()] T = int(input()) print('YES' if (V-W)*T >= (B-A) else 'NO')
A, V = [int(n) for n in input().split()] B, W = [int(n) for n in input().split()] T = int(input()) print('YES' if (V-W)*T >= abs(B-A) else 'NO')
[["+", 3, 4, 0, 41, 0, 666, 0, 652, 63, 22]]
5
72
i=(input().split()) j=(input().split()) k=(input()) A=int(i[0]) V=int(i[1]) B=int(j[0]) W=int(j[1]) T=int(k) print(B) if (B-A)+W*T <= V*T: print("YES") elif (B-A)+W*T > V*T: print("NO")
i=(input().split()) j=(input().split()) k=(input()) A=int(i[0]) V=int(i[1]) B=int(j[0]) W=int(j[1]) T=int(k) if abs(B-A)+W*T <= V*T: print("YES") elif abs(B-A)+W*T > V*T: print("NO")
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["+", 0, 57, 15, 666, 0, 657, 31, 652, 63, 22], ["+", 75, 665, 15, 666, 0, 657, 31, 652, 63, 22]]
5
117
#include <bits/stdc++.h> using namespace std; int main() { long long int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (w - v >= 0) { cout << "No" << endl; return 0; } else { long long int d = v - w; if (abs(a - b) <= d * t) { cout << "Yes" << endl; } else { cout << "No" <<...
#include <bits/stdc++.h> using namespace std; int main() { long long int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (w - v >= 0) { cout << "NO" << endl; return 0; } else { long long int d = v - w; if (abs(a - b) <= d * t) { cout << "YES" << endl; } else { cout << "NO" <<...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
107
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; void solve() { ll a, v, b, w, t; cin >> a >> v; cin >> b >> w; cin >> t; ll p = v * t; ll q = w * t; bool flag = false; if (a < b) { p += a; q += b; if (p > q) { flag = true; } } else { ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; void solve() { ll a, v, b, w, t; cin >> a >> v; cin >> b >> w; cin >> t; ll p = v * t; ll q = w * t; bool flag = false; if (a < b) { p += a; q += b; if (p >= q) { flag = true; } } else {...
[["-", 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, 47], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
177
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if A <= B: print("NO") exit() diff = max(A, B) - min(A, B) speed = V - W if 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") exit() diff = max(A, B) - min(A, B) speed = V - W if diff / speed <= T: print("YES") else: print("NO")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]]
5
95
#include <bits/stdc++.h> using namespace std; // 型定義 typedef long long ll; typedef pair<ll, ll> P; // forループ #define REP(i, n) for (ll i = 0; i < (ll)(n); ++i) // 定数宣言 const int INF = 1e9; const int MOD = 1e9 + 7; const ll LINF = 1e18; // グラフ表現 using Graph = vector<vector<int>>; // グラフの辺表現 using Edge = map<pair<in...
#include <bits/stdc++.h> using namespace std; // 型定義 typedef long long ll; typedef pair<ll, ll> P; // forループ #define REP(i, n) for (ll i = 0; i < (ll)(n); ++i) // 定数宣言 const int INF = 1e9; const int MOD = 1e9 + 7; const ll LINF = 1e18; // グラフ表現 using Graph = vector<vector<int>>; // グラフの辺表現 using Edge = map<pair<in...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
304
#include <bits/stdc++.h> using namespace std; int main() { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (v < w || v == w) { cout << "NO" << endl; return 0; } int ans = 0; if (abs(a - b) % abs(v - w) != 0) { ans = abs(a - b) % abs(v - w) + 1; } else { ans = abs(a - b) % abs(v - w); ...
#include <bits/stdc++.h> using namespace std; int main() { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (v < w || v == w) { cout << "NO" << endl; return 0; } int ans = 0; if (abs(a - b) % abs(v - w) != 0) { ans = abs(a - b) / abs(v - w) + 1; } else { ans = abs(a - b) / abs(v - w); ...
[["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 109], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 85], ["-", 0, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 17, 85]]
1
147
#include <bits/stdc++.h> #define rep(i, n) for (int64_t i = 0; i < (int64_t)(n); i++) #define all(v) v.begin(), v.end() using ll = long long; using namespace std; int main() { ll a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (v <= w) { cout << "NO"; return 0; } if (b < a) swap(a, b); rep(i, t...
#include <bits/stdc++.h> #define rep(i, n) for (int64_t i = 0; i < (int64_t)(n); i++) #define all(v) v.begin(), v.end() using ll = long long; using namespace std; int main() { ll a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (v <= w) { cout << "NO"; return 0; } if (b < a) swap(a, b); rep(i, t...
[["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
127
#include <bits/stdc++.h> using namespace std; int main() { int64_t a, v, b, w, t; // a,v鬼 b,w子供 t時間 int ans = 0; int i = 0; cin >> a >> v >> b >> w >> t; for (i = 0; i < t; i++) { if (a > b) { a -= v; b -= w; if (a == b || a << b) { ans = 1; i = t; } else { ...
#include <bits/stdc++.h> using namespace std; int main() { int64_t a, v, b, w, t; // a,v鬼 b,w子供 t時間 int ans = 0; int i = 0; cin >> a >> v >> b >> w >> t; for (i = 0; i < t; i++) { if (a > b) { a -= v; b -= w; if (a == b || a < b) { ans = 1; i = t; } else { ...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 151], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 152], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47]]
1
161
#include <bits/stdc++.h> using namespace std; int main() { long long A, B, V, W, T; cin >> A >> V; cin >> B >> W; cin >> T; if (V <= W) { cout << "NO" << endl; } else if (T * (V - W) < abs(A - B)) { cout << "NO" << endl; } else { cout << "Yes" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { long long A, B, V, W, T; cin >> A >> V; cin >> B >> W; cin >> T; if (V <= W) { cout << "NO" << endl; } else if (T * (V - W) < abs(A - B)) { cout << "NO" << endl; } else { cout << "YES" << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
95
#include <iostream> #include <math.h> using namespace std; int main() { long long a, b; long long v, w, t; cin >> a >> v >> b >> w >> 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"...
#include <iostream> #include <math.h> using namespace std; int main() { long long a, b; long long v, w, t; cin >> a >> v >> b >> w >> 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"...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 33], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 72], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 33]]
1
116
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) #define RREP(i, n) for (int i = (int)(n)-1; i >= 0; --i) #define FOR(i, a, n) for (int i = (a); i < (n); ++i) #define RFOR(i, a, n) for (int i = (int)(n)-1; i >= (a); --i) #define SZ(x) ((int)(x).size()) #define ALL(x) (x)....
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < (n); ++i) #define RREP(i, n) for (int i = (int)(n)-1; i >= 0; --i) #define FOR(i, a, n) for (int i = (a); i < (n); ++i) #define RFOR(i, a, n) for (int i = (int)(n)-1; i >= (a); --i) #define SZ(x) ((int)(x).size()) #define ALL(x) (x)....
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 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
448
#include <stdio.h> int main() { long long int a, b, c, d, e, f, g; scanf("%lld %lld", &a, &b); scanf("%lld %lld", &c, &d); scanf("%lld", &e); f = d - b; g = c - a; if (g < 0) g = -g; if (f * e >= g) printf("YES\n"); else printf("NO\n"); return 0; }
#include <stdio.h> int main() { long long int a, b, c, d, e, f, g; scanf("%lld %lld", &a, &b); scanf("%lld %lld", &c, &d); scanf("%lld", &e); f = b - d; g = c - a; if (g < 0) g = -g; if (f * e >= g) printf("YES\n"); else printf("NO\n"); return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]]
0
112
a,v=map(int, input().split()) b,w=map(int, input().split()) t=int(input()) n=b-a if n+((w-v)*t)<=0: print('YES') else: print('NO')
a,v=map(int, input().split()) b,w=map(int, input().split()) t=int(input()) n=abs(b-a) if n+(w-v)*t<=0: 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], ["-", 0, 657, 12, 23, 0, 657, 31, 23, 0, 24], ["-", 0, 57, 15, 666, 0, 657, 12, 23, 0, 25]]
5
74
#include <bits/stdc++.h> using namespace std; typedef long long int big; big relVel(big v, big w) { return v - w; } bool posbl(big a, big v, big b, big w, big dead) { big dist = (b - a); big rel = relVel(v, w); // cout<<rel<<" "; if (rel > 0) { double time = ((double)abs(dist)) / ((double)abs(rel)); ...
#include <bits/stdc++.h> using namespace std; typedef long long int big; big relVel(big v, big w) { return v - w; } bool posbl(big a, big v, big b, big w, big dead) { big dist = (b - a); big rel = relVel(v, w); // cout<<rel<<" "; if (rel > 0) { double time = ((double)abs(dist)) / ((double)abs(rel)); ...
[["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
191
#include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, n) for (ll i = 0; i < n; i++) #define P pair<ll, ll> #define Graph vector<vector<ll>> #define INF (1ll << 60) #define mod 1000000007 template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return...
#include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, n) for (ll i = 0; i < n; i++) #define P pair<ll, ll> #define Graph vector<vector<ll>> #define INF (1ll << 60) #define mod 1000000007 template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return...
[["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 31, 2, 3, 4, 0, 25], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 12, 13]]
1
191
#include <cmath> #include <ctype.h> #include <iostream> #include <limits.h> #include <sstream> #include <stdio.h> #include <string.h> #include <string> #include <vector> using namespace std; long long A, B, V, W, T; int main() { cin >> A >> V >> B >> W >> T; if (abs(A - B) < (V - W) * T) { cout << "YES" << en...
#include <cmath> #include <ctype.h> #include <iostream> #include <limits.h> #include <sstream> #include <stdio.h> #include <string.h> #include <string> #include <vector> using namespace std; long long A, B, V, W, T; int main() { cin >> A >> V >> B >> W >> T; if (abs(A - B) <= (V - W) * T) { cout << "YES" << e...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
93
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if b > a: if a < 0: if b < 0: ab = -b - -a else: ab = -a + b else: ab = b - a else: if b < 0: if q < 0: ab = -a - -b else: ab = -b + a ...
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if b > a: if a < 0: if b < 0: ab = -a - -b else: ab = -a + b else: ab = b - a else: if b < 0: if a < 0: ab = -b - -a else: ab = -b + a ...
[["-", 0, 1, 0, 662, 12, 657, 31, 664, 28, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 664, 28, 22], ["-", 0, 1, 0, 662, 12, 657, 12, 664, 28, 22], ["+", 0, 1, 0, 662, 12, 657, 12, 664, 28, 22], ["-", 0, 57, 64, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 0, 22]]
5
142
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define MOD (long long)(1e9 + 7) #define INF (1LL << 60) #define rep(i, n) for (ll i = 0; i < (n); i++) #define rep1(i, n) for (ll i = 1; i <= (n); i++) template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; }...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define MOD (long long)(1e9 + 7) #define INF (1LL << 60) #define rep(i, n) for (ll i = 0; i < (n); i++) #define rep1(i, n) for (ll i = 1; i <= (n); i++) template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; }...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]]
1
451
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 if (A - B).abs <= (V - W) * T puts 'Yes' else puts 'No' end
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 if (A - B).abs <= (V - W) * T puts 'YES' else puts 'NO' end
[["-", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6]]
4
67
A, V = input().split() B, W = input().split() T = input() A = int(A) V = int(V) B = int(B) W = int(W) T = int(T) result = (B - A) + (W * T) - V * T if result <= 0: print('YES') else: print('NO')
A, V = input().split() B, W = input().split() T = input() A = int(A) V = int(V) B = int(B) W = int(W) T = int(T) result = abs((B - A)) + (W * T) - V * T if result <= 0: print('YES') else: print('NO')
[["+", 0, 662, 12, 657, 31, 657, 31, 652, 63, 22], ["+", 31, 657, 31, 652, 3, 4, 0, 23, 0, 24], ["+", 31, 657, 31, 652, 3, 4, 0, 23, 0, 25]]
5
93
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); ++i) #define ALL(v) v.begin(), v.end() using namespace std; using ll = long long; using P = pair<int, int>; int main() { int a, v, b, w, t; cin >> a >> v; cin >> b >> w; cin >> t; int le, vs; le = abs(a - b); vs = v - w; if (vs * t ...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); ++i) #define ALL(v) v.begin(), v.end() using namespace std; using ll = long long; using P = pair<int, int>; int main() { ll a, v, b, w, t; cin >> a >> v; cin >> b >> w; cin >> t; ll le, vs; le = abs(a - b); // min = 1; vs = v - w; i...
[["-", 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, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
117
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define fi first #define se second #define mp make_pair #define pb push_back #define fbo find_by_order #define ook order_of_key typedef long long ll; typedef pair<ll...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define fi first #define se second #define mp make_pair #define pb push_back #define fbo find_by_order #define ook order_of_key typedef long long ll; typedef pair<ll...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
172
// header #ifdef LOCAL #include "cxx-prettyprint-master/prettyprint.hpp" #define debug(x) cout << x << endl #else #define debug(...) 42 #endif #pragma GCC optimize("Ofast") #include <bits/stdc++.h> // types using namespace std; using ll = long long; using ul = unsigned long long; using ld = long double; typedef pair<ll...
// header #ifdef LOCAL #include "cxx-prettyprint-master/prettyprint.hpp" #define debug(x) cout << x << endl #else #define debug(...) 42 #endif #pragma GCC optimize("Ofast") #include <bits/stdc++.h> // types using namespace std; using ll = long long; using ul = unsigned long long; using ld = long double; typedef pair<ll...
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
1,267
eval"A,V,B,W,T="+`dd`.split*?, puts (A-B).abs <= (V-W)*T ? :Yes : :No
eval"A,V,B,W,T="+`dd`.split*?, puts (A-B).abs <= (V-W)*T ? :YES : :NO
[["-", 0, 493, 0, 652, 3, 4, 0, 754, 64, 753], ["+", 0, 493, 0, 652, 3, 4, 0, 754, 64, 753], ["-", 0, 493, 0, 652, 3, 4, 0, 754, 75, 753], ["+", 0, 493, 0, 652, 3, 4, 0, 754, 75, 753]]
4
32
def LI(): return list(map(int, input().split())) a, v = LI() b, w = LI() t = int(input()) if (v-w)*t >= abs(a-b): print('YES') else: print('No')
def LI(): return list(map(int, input().split())) a, v = LI() b, w = LI() t = int(input()) if (v-w)*t >= abs(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
73
A, V = list(map(int, input().split())) B, W = list(map(int, input().split())) T = int(input()) kyori = max(A-B, B-A) if W>V: print("NO") else: if (W-V)*T>=kyori: print("YES") else: print("NO")
A, V = list(map(int, input().split())) B, W = list(map(int, input().split())) T = int(input()) kyori = max(A-B, B-A) if W>V: print("NO") else: if (V-W)*T>=kyori: print("YES") else: print("NO")
[["-", 15, 666, 0, 657, 31, 23, 0, 657, 31, 22], ["-", 15, 666, 0, 657, 31, 23, 0, 657, 17, 33], ["+", 15, 666, 0, 657, 31, 23, 0, 657, 17, 33], ["+", 15, 666, 0, 657, 31, 23, 0, 657, 12, 22]]
5
96
#include <bits/stdc++.h> using namespace std; #define mod 1e9 + 7 int main() { long long int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (a < b) { if ((v - w) * t >= b - a) cout << "YES"; else cout << "NO"; } else { if ((w - v) * t >= a - b) cout << "YES"; ...
#include <bits/stdc++.h> using namespace std; #define mod 1e9 + 7 int main() { long long int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (a < b) { if ((v - w) * t >= b - a) cout << "YES"; else cout << "NO"; } else { if ((v - w) * t >= a - b) cout << "YES"; ...
[["-", 51, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["-", 51, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 12, 22]]
1
108
a,v=gets.split.map(&:to_i) b,w=gets.split.map(&:to_i) t=gets.to_i x=b-a x=x.abs at=v*t bt=w*t result=(at-bt).abs if result >x puts "YES" else puts "NO" end
a,v=gets.split.map(&:to_i) b,w=gets.split.map(&:to_i) t=gets.to_i x=b-a x=x.abs at=v*t bt=w*t result=(at-bt) if result >=x puts "YES" else puts "NO" end
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["-", 36, 36, 0, 493, 0, 121, 15, 738, 17, 47], ["+", 36, 36, 0, 493, 0, 121, 15, 738, 17, 20]]
4
74
#include <iostream> using namespace std; int main() { int a, v, b, w, t; int sp, de; cin >> a >> v >> b >> w >> t; sp = v - w; de = b - a; if (de < 0) de *= -1; if (de < sp * t) cout << "YES\n"; else cout << "NO\n"; return 0; }
#include <iostream> using namespace std; int main() { long long a, v, b, w, t; long long sp, de; cin >> a >> v >> b >> w >> t; sp = v - w; de = b - a; if (de < 0) de *= -1; if (de <= sp * t) 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], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
88
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) #print((v-w) // (b-a), v-w, b-a) if (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()) #print((v-w) // (b-a), v-w, b-a) #if (abs(v-w)*t) % abs(b-a) == 0: if abs(b-a) <= (v-w)*t: print("YES") else: print("NO")
[["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 31, 22], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 48], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 48], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22]]
5
70