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
// author: Harsh Nema #include <bits/stdc++.h> #define ll long long int #define ld long double #define F first #define S second const ll mod = 1e9 + 7; const ll INF = 922337203685477; #define pb push_back #define deb(x) cout << '>' << #x << ':' << x << endl; #define fastio ...
// author: Harsh Nema #include <bits/stdc++.h> #define ll long long int #define ld long double #define F first #define S second const ll mod = 1e9 + 7; const ll INF = 922337203685477; #define pb push_back #define deb(x) cout << '>' << #x << ':' << x << endl; #define fastio ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
123
#include <bits/stdc++.h> using namespace std; int main() { long double a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (w >= v) cout << "NO" << endl; else { if (abs(a - b) / (v - w) < t) cout << "YES" << endl; else cout << "NO" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long double a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (w >= v) cout << "NO" << endl; else { if (abs(a - b) / (v - w) <= t) cout << "YES" << endl; else cout << "NO" << endl; } return 0; }
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
90
/*input 1 2 3 3 3 */ /* ************************** * * * AUTHOR :: knight_coder * * * ************************** */ #include <bits/stdc++.h> #define lld long long int #define pb push_back #define ppb pop_back #define endl '\n' #define mii map<lld, lld> #define msi map<string, lld> #define mis map<lld, str...
/*input 1 2 3 3 3 */ /* ************************** * * * AUTHOR :: knight_coder * * * ************************** */ #include <bits/stdc++.h> #define lld long long int #define pb push_back #define ppb pop_back #define endl '\n' #define mii map<lld, lld> #define msi map<string, lld> #define mis map<lld, str...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
293
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define MOD 1000000007 #define mod9 1000000009 #define fast \ ios_base ::sync_with_stdio(0); \ cin.tie(NULL); ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define MOD 1000000007 #define mod9 1000000009 #define fast \ ios_base ::sync_with_stdio(0); \ cin.tie(NULL); ...
[["-", 51, 16, 31, 23, 0, 16, 31, 2, 63, 22], ["-", 0, 16, 31, 2, 3, 4, 0, 16, 31, 22], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 16, 31, 2, 3, 4, 0, 16, 12, 22], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 12, 22], ["-", 51, 16, 12, 2, 3, 4, 0, 16, 31, 22], ["+", 51, 16, 12, 2, 3, 4, 0, 16, 31, 22], ["-", 51, 16, ...
1
783
def GCD(m, n) return 0 if m == 0 || n == 0 while m != 0 && n != 0 if m > n then m %= n else n %= m end end return [m, n].max end def LCM(m, n) return 0 if m == 0 || n == 0 return m * n / GCD(m, n) end a, v = gets.chomp.split.map(&:to_i) b, w = gets.chomp.split.map(&:to_i) t = gets.chomp.to_i if v ...
def GCD(m, n) return 0 if m == 0 || n == 0 while m != 0 && n != 0 if m > n then m %= n else n %= m end end return [m, n].max end def LCM(m, n) return 0 if m == 0 || n == 0 return m * n / GCD(m, n) end a, v = gets.chomp.split.map(&:to_i) b, w = gets.chomp.split.map(&:to_i) t = gets.chomp.to_i if v ...
[["-", 3, 4, 0, 754, 15, 738, 31, 738, 17, 85], ["-", 3, 4, 0, 754, 15, 738, 31, 738, 12, 22], ["+", 3, 4, 0, 754, 15, 738, 12, 738, 31, 22], ["+", 3, 4, 0, 754, 15, 738, 12, 738, 17, 48]]
4
150
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a, b, v, w, t; cin >> a >> v; cin >> b >> w; cin >> t; string ans = "NO"; if (abs(b - a) + (w - v) * t < 0) ans = "YES"; cout << ans; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a, b, v, w, t; cin >> a >> v; cin >> b >> w; cin >> t; string ans = "NO"; if (abs(b - a) + (w - v) * t <= 0) ans = "YES"; cout << ans; }
[["-", 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
80
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (a < b) cout << (a + v * t >= b + w * t ? "YES" : "NO") << endl; else cout << (a + v * t <= b + w * t ? "YES" : "NO") << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll a, v, b, w, t; cin >> a >> v >> b >> w >> t; if (a < b) cout << (a + v * t >= b + w * t ? "YES" : "NO") << endl; else cout << (a - v * t <= b - w * t ? "YES" : "NO") << endl; }
[["-", 12, 23, 0, 41, 15, 16, 31, 16, 17, 72], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 17, 33], ["-", 12, 23, 0, 41, 15, 16, 12, 16, 17, 72], ["+", 12, 23, 0, 41, 15, 16, 12, 16, 17, 33]]
1
100
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) dif = abs(B-A) speed = V-W if speed <= 0: print('No') else: if speed*T >= dif: print('Yes') else: print('No')
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) dif = abs(B-A) speed = V-W if speed <= 0: print('NO') else: if speed*T >= dif: print('YES') else: print('NO')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
87
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if a < b: print('YES' if v*t+a >= w*t+b else 'NO') else: print('YES' if v*t+a <= w*t+b else 'NO')
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if a < b: print('YES' if v*t+a >= w*t+b else 'NO') else: print('YES' if -v*t+a <= -w*t+b else 'NO')
[["+", 0, 666, 0, 657, 31, 657, 31, 664, 17, 33]]
5
91
// ConsoleApplication1.cpp : このファイルには 'main' // 関数が含まれています。プログラム実行の開始と終了がそこで行われます。 // //#include "pch.h" #include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio....
// ConsoleApplication1.cpp : このファイルには 'main' // 関数が含まれています。プログラム実行の開始と終了がそこで行われます。 // //#include "pch.h" #include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio....
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
577
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; ++i) #define rrep(i, n) for (int i = n - 1; i >= 0; --i) #define fi first #define se second using namespace std; using lint = long long; using uint = unsigned int; using ulint = unsigned long long; using ldouble = long double; using pii = pair<int, int>;...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; ++i) #define rrep(i, n) for (int i = n - 1; i >= 0; --i) #define fi first #define se second using namespace std; using lint = long long; using uint = unsigned int; using ulint = unsigned long long; using ldouble = long double; using pii = pair<int, int>;...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]]
1
313
<?php fscanf(STDIN, "%d%d", $A, $V); fscanf(STDIN, "%d%d", $B, $W); fscanf(STDIN, "%d", $T); $d = abs($A-$B); $dv = $V-$W; if($dv <= 0){ echo "NO"; }else{ echo $d <= $d * $dv ? "YES" : "NO"; }
<?php fscanf(STDIN, "%d%d", $A, $V); fscanf(STDIN, "%d%d", $B, $W); fscanf(STDIN, "%d", $T); $d = abs($A-$B); $dv = $V-$W; if($dv <= 0){ echo "NO"; }else{ echo $d <= $T * $dv ? "YES" : "NO"; }
[["-", 0, 41, 15, 16, 12, 16, 31, 606, 0, 141], ["+", 0, 41, 15, 16, 12, 16, 31, 606, 0, 141]]
6
99
// // main.cpp // T2020B // // Created by TakahiroUryu on 2020/06/15. // Copyright © 2020 TakahiroUryu. All rights reserved. // #include <iostream> using namespace std; using ll = long long; int main(int argc, const char *argv[]) { ll a, v, b, w, t; bool ok = true; cin >> a >> v >> b >> w >> t; if (w >= v)...
// // main.cpp // T2020B // // Created by TakahiroUryu on 2020/06/15. // Copyright © 2020 TakahiroUryu. All rights reserved. // #include <iostream> using namespace std; using ll = long long; int main(int argc, const char *argv[]) { ll a, v, b, w, t; bool ok = true; cin >> a >> v >> b >> w >> t; if (w >= v)...
[["-", 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, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]]
1
136
import sys import collections input = sys.stdin.readline a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if t * (v - w) >= b - a: print("YES") else: print("NO")
import sys input = sys.stdin.readline a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if t * (v - w) >= abs(b - a): print("YES") else: print("NO")
[["-", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 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
78
#include <algorithm> #include <climits> #include <iostream> #include <math.h> #include <stdio.h> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define LL long long #define Pi 3.14159265358979; int main() { ios::sync_with_stdio(false); cin.tie(nullptr)...
#include <algorithm> #include <climits> #include <iostream> #include <math.h> #include <stdio.h> #include <string> #include <vector> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define LL long long int #define Pi 3.14159265358979; int main() { ios::sync_with_stdio(false); cin.tie(null...
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 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]]
1
204
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef vector<ll> vi; #define INF (1e9) const string YES = "YES"; const string NO = "NO"; int main() { ll A; cin >> A; ll V; cin >> V; ll B; cin >> B; ll W; cin >> W; ll T; cin >> T; bool ans = false; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef vector<ll> vi; #define INF (1e9) const string YES = "YES"; const string NO = "NO"; int main() { ll A; cin >> A; ll V; cin >> V; ll B; cin >> B; ll W; cin >> W; ll T; cin >> T; bool ans = false; ...
[["-", 64, 9, 0, 1, 0, 11, 12, 16, 17, 19], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 17, 20], ["-", 0, 9, 0, 1, 0, 11, 12, 16, 17, 20], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 17, 19], ["-", 0, 16, 31, 16, 12, 23, 0, 41, 64, 22], ["-", 0, 16, 31, 16, 12, 23, 0, 41, 0, 102], ["+", 0, 16, 31, 16, 12, 23, 0, 41, 0, 102], ["+", 0, 16, 3...
1
139
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; using st = string; using ch = char; using db = double; using bl = bool; using vll = vector<long long>; using vdb = vector<db>; using vst = vector<st>; using vch = vector<char>; using vbl = vector<bl>; using vvll = vecto...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; using st = string; using ch = char; using db = double; using bl = bool; using vll = vector<long long>; using vdb = vector<db>; using vst = vector<st>; using vch = vector<char>; using vbl = vector<bl>; using vvll = vecto...
[["-", 12, 23, 0, 41, 15, 16, 31, 16, 17, 85], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 19], ["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 19], ["+", 12, 23, 0, 41, 15, 16, 12, 16, 17, 48]]
1
325
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (n); i++) #define all(x) (x).begin(), (x).end() using ll = long long; using namespace std; template <typename T> using vec = std::vector<T>; int main() { ll A, V, B, W, T; cin >> A >> V >> B >> W >> T; ll diff = (V - W); if (abs(A - B) / T <= diff) ...
#include <bits/stdc++.h> #define rep(i, n) for (ll i = 0; i < (n); i++) #define all(x) (x).begin(), (x).end() using ll = long long; using namespace std; template <typename T> using vec = std::vector<T>; int main() { ll A, V, B, W, T; cin >> A >> V >> B >> W >> T; ll diff = (V - W); if (abs(A - B) <= diff * T) ...
[["-", 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
113
#include <bits/stdc++.h> using namespace std; #define INF 1e18 typedef long long ll; typedef pair<int, int> P; int main() { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; int d = abs(a - b); if (v <= w) { cout << "NO" << endl; return 0; } int s = v - w; if (d < (ll)s * t) { cout << "YES" <<...
#include <bits/stdc++.h> using namespace std; #define INF 1e18 typedef long long ll; typedef pair<int, int> P; int main() { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; int d = abs(a - b); if (v <= w) { cout << "NO" << endl; return 0; } int s = v - w; if (d <= (ll)s * t) { cout << "YES" <...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
123
l=list(map(int, input().split(' '))) a=l[0] v=l[1] l=list(map(int, input().split(' '))) b=l[0] w=l[1] s=int(input()) ans=True if a>b: ans=a-v*s<=b-w*s else: ans=a+v*s<=b+w*s if ans: print("YES") else: print("NO")
l=list(map(int, input().split(' '))) a=l[0] v=l[1] l=list(map(int, input().split(' '))) b=l[0] w=l[1] s=int(input()) ans=True if a>b: ans=a-v*s<=b-w*s else: ans=a+v*s>=b+w*s if ans: print("YES") else: print("NO")
[["-", 8, 196, 0, 1, 0, 662, 12, 666, 667, 19], ["+", 8, 196, 0, 1, 0, 662, 12, 666, 667, 20]]
5
125
a, v = map(int,input().split()) b, w = map(int,input().split()) t = int(input()) if abs(a-b) <= (v- w)*t: print('YES') else: print('No')
a, v = map(int,input().split()) b, w = map(int,input().split()) t = int(input()) if (abs(a-b) <= (v- w)*t): print('YES') else: print('NO')
[["+", 36, 36, 0, 656, 0, 57, 15, 23, 0, 24], ["+", 36, 36, 0, 656, 0, 57, 15, 23, 0, 25], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
70
#include <bits/stdc++.h> using namespace std; typedef long long int ll; void solve() { ll a, b, v, w, x; cin >> a >> v >> b >> w >> x; ll sum = abs(b - a); for (int i = 0; i < x; i++) { sum += v - w; if (sum <= 0) { cout << "YES\n"; return; } } cout << "NO\n"; } int main() { in...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; void solve() { ll a, b, v, w, x; cin >> a >> v >> b >> w >> x; ll sum = abs(b - a); for (int i = 0; i < x; i++) { sum += w - v; if (sum <= 0) { cout << "YES\n"; return; } } cout << "NO\n"; } int main() { in...
[["-", 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]]
1
123
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; using ld = long double; #define MOD 1000000007LL #define rep(i, n) for (ll(i) = 0LL; (i) < (ll)(n); (i)++) #define rep2(i, s, e) for (ll(i) = (ll)(s); (i) < (ll)(e); (i)++) #define repi(i, n) for (ll(i) = 0LL; (i) <= ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; using ld = long double; #define MOD 1000000007LL #define rep(i, n) for (ll(i) = 0LL; (i) < (ll)(n); (i)++) #define rep2(i, s, e) for (ll(i) = (ll)(s); (i) < (ll)(e); (i)++) #define repi(i, n) for (ll(i) = 0LL; (i) <= ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
471
import java.io.*; import java.util.*; class Main { static final long MOD = 1_000_000_007; // 10^9+7 static final int MAX = 2_147_483_646; // intMax static final int INF = 1_000_000_000; // 10^9 public static void main(String[] args) throws Exception { hayami saori = new hayami(); long a = saori.saorih...
import java.io.*; import java.util.*; class Main { static final long MOD = 1_000_000_007; // 10^9+7 static final int MAX = 2_147_483_646; // intMax static final int INF = 1_000_000_000; // 10^9 public static void main(String[] args) throws Exception { hayami saori = new hayami(); long a = saori.saorih...
[["-", 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
677
A, V = [int(x) for x in input().split()] B, W = [int(x) for x in input().split()] T = int(input()) if W >= V: print('No') elif abs(A - B) <= (V - W) * T: print('Yes') else: print('No')
A, V = [int(x) for x in input().split()] B, W = [int(x) for x in input().split()] T = int(input()) if W >= V: 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]]
5
89
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if v == w: print('NO') exit() else: that = (b-a)/(v-w) if 0 <= that <= 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() else: that = abs(b-a)/(v-w) if 0 <= that <= 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], ["+", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22]]
5
90
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stdio.h> #include <vector> #define ll long long using namespace std; int main() { int a, b; int v, w; int t; cin >> a >> v; cin >> b >> w;...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stdio.h> #include <vector> #define ll long long using namespace std; int main() { int a, b; int v, w; int t; cin >> a >> v; cin >> b >> w;...
[["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 48], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 12, 13]]
1
132
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; using int64 = long long; struct aaa { aaa() { cin.tie(nullptr); ios::sync_with_stdio(fals...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; using int64 = long long; struct aaa { aaa() { cin.tie(nullptr); ios::sync_with_stdio(fals...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 72], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 33]]
1
169
#include <algorithm> #include <cassert> #include <iostream> #include <map> #include <queue> #include <set> #include <vector> #include <limits.h> using namespace std; typedef long long ll; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <cl...
#include <algorithm> #include <cassert> #include <iostream> #include <map> #include <queue> #include <set> #include <vector> #include <limits.h> using namespace std; typedef long long ll; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <cl...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 22]]
1
197
(A, V) = map(lambda a: double(a), input().split()) (B, W) = map(lambda a: double(a), input().split()) T = double(input()) D = abs(A - B) X = abs(V - W) if (X*T >= D): print("YES") else: print("NO")
(A, V) = map(lambda a: float(a), input().split()) (B, W) = map(lambda a: float(a), input().split()) T = float(input()) D = abs(A - B) X = V - W if (X*T >= D): print("YES") else: print("NO")
[["-", 12, 652, 3, 4, 0, 670, 8, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 670, 8, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 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
95
#include <iostream> #include <sstream> using namespace std; #include <algorithm> #include <bits/stdc++.h> #include <iterator> #include <utility> #define go return 0 #define rep(i, n) for (int i = 0; i < n; ++i) #define rep(j, m) for (int j = 0; j < m; ++j) #define REP(i, n) for (int i = 1; i <= n; ++i) #define all(v) (...
#include <iostream> #include <sstream> using namespace std; #include <algorithm> #include <bits/stdc++.h> #include <iterator> #include <utility> #define go return 0 #define rep(i, n) for (int i = 0; i < n; ++i) #define rep(j, m) for (int j = 0; j < m; ++j) #define REP(i, n) for (int i = 1; i <= n; ++i) #define all(v) (...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
263
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define all(v) v.begin(), v.end() int main() { long long a, b, v, w, t; cin >> a >> v >> b >> w >> t; long long l = abs(a - b); if ((w - v) >= 0) { cout << "NO" << endl; } else { if ((v - w) * t <= l) { ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define all(v) v.begin(), v.end() int main() { long long a, b, v, w, t; cin >> a >> v >> b >> w >> t; long long l = abs(a - b); if ((w - v) >= 0) { cout << "NO" << endl; } else { if ((v - w) * t >= l) { ...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
117
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(); int t = sc.nextInt(); String ans = "NO"; if (Math.abs(a - b) < ((v - w) * t)) { ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextInt(); long v = sc.nextInt(); long b = sc.nextInt(); long w = sc.nextInt(); long t = sc.nextInt(); String ans = "NO"; if (Math.abs(a - b) <= ((v - w) * ...
[["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]]
3
128
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll a, b; long long v, w, t; string ans = "NO"; cin >> a >> v >> b >> w >> t; for (ll i = 1; i <= t; i++) { if (a <= b) { if ((a + i * v) >= (b + i * w)) { ans = "YES"; break; } } else { ...
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll a, b; long long v, w, t; string ans = "NO"; cin >> a >> v >> b >> w >> t; for (ll i = 1; i <= t; i++) { if (a <= b) { if ((a + i * v) >= (b + i * w)) { ans = "YES"; break; } } else { ...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
142
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep1(i, n) for (int i = 1; i <= (int)(n); i++) using P = pair<int, int>; using pq = priority_queue<int>; typedef long long ll; int main() { ll a, v; cin >> a >> v; ll b, w; cin >> b >> w; ll t; cin >>...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep1(i, n) for (int i = 1; i <= (int)(n); i++) using P = pair<int, int>; using pq = priority_queue<int>; typedef long long ll; int main() { ll a, v; cin >> a >> v; ll b, w; cin >> b >> w; ll t; cin >>...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
144
// https://atcoder.jp/contests/tokiomarine2020/tasks/tokiomarine2020_b #include <bits/stdc++.h> using namespace std; int main() { long long A, B, V, W, T; string ans; cin >> A >> V >> B >> W >> T; if (V == W) { ans = "NO"; } else { if (abs(A - B) > T * (V - W)) ans = "No"; else ans =...
// https://atcoder.jp/contests/tokiomarine2020/tasks/tokiomarine2020_b #include <bits/stdc++.h> using namespace std; int main() { long long A, B, V, W, T; string ans; cin >> A >> V >> B >> W >> T; if (V == W) { ans = "NO"; } else { if (abs(A - B) > T * (V - W)) ans = "NO"; else ans =...
[["-", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6]]
1
96
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], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]]
5
67
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < n; i++) int main() { long long a, v, b, w; cin >> a >> v >> b >> w; long long t; cin >> t; long long dis = b - a; long long rel = v - w; if (rel > 0) { bool ans = ((dis - 1) / rel <= t); cout << (ans ? "YES" : "N...
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < n; i++) int main() { long long a, v, b, w; cin >> a >> v >> b >> w; long long t; cin >> t; long long dis = abs(b - a); long long rel = v - w; if (rel > 0) { bool ans = ((dis - 1) / rel < t); cout << (ans ? "YES" ...
[["+", 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], ["-", 0, 43, 49, 50, 51, 23, 0, 16, 17, 19], ["+", 0, 43, 49, 50, 51, 23, 0, 16, 17, 18]]
1
117
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) AB = abs(A - B) VW = V - W if VW == 0: print("No") elif AB <= VW * T: print("Yes") else: print("No")
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) AB = abs(A - B) VW = V - W if VW == 0: print("NO") elif AB <= VW * 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
85
#include <bits/stdc++.h> using namespace std; #define INF 2147483647 #define LINF 9223372036854775807 #define MOD 1000000007 #define MOD2 998244353 template <class T, class U> bool chmax(T &a, const U &b) { if (a < b) { a = b; return 1; } return 0; } template <class T, class U> bool chmin(T &a, const U ...
#include <bits/stdc++.h> using namespace std; #define INF 2147483647 #define LINF 9223372036854775807 #define MOD 1000000007 #define MOD2 998244353 template <class T, class U> bool chmax(T &a, const U &b) { if (a < b) { a = b; return 1; } return 0; } template <class T, class U> bool chmin(T &a, const U ...
[["-", 0, 57, 75, 76, 0, 9, 0, 43, 39, 40], ["+", 0, 57, 75, 76, 0, 9, 0, 43, 39, 78], ["-", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22]]
1
404
A,V=map(int,input().split()) B,W=map(int,input().split()) T=int(input()) print(['YES','NO'][abs(B-A)/(V-W)>=T] if V-W>0 else 'NO')
A,V=map(int,input().split()) B,W=map(int,input().split()) T=int(input()) print(['YES','NO'][abs(B-A)/(V-W)>T] if V-W>0 else 'NO')
[["-", 3, 4, 0, 41, 0, 206, 206, 666, 667, 20], ["+", 3, 4, 0, 41, 0, 206, 206, 666, 667, 47]]
5
78
#include <bits/stdc++.h> #define int long long using namespace std; int32_t main() { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; int res = v * t; int res1 = w * t; int d1 = a + res; int d2 = b + res1; int x = res - res1; int y = abs(a - b); if (d1 >= d2) { cout << "YES"; } else { cout <...
#include <bits/stdc++.h> #define int long long using namespace std; int32_t main() { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; int res = v * t; int res1 = w * t; int d1 = a + res; int d2 = b + res1; int x = res - res1; int y = abs(a - b); if (x >= y) { cout << "YES"; } else { cout << ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
106
import java.util.*; 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(); long dist = Math.abs(A - B); if (((V - W) * T) ...
import java.util.*; 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(); long dist = Math.abs(A - B); if (((V - W) * T) ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
133
import sys a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) if v==w or w>v: print('NO') sys.exit() else: tp=(b-a)/(v-w) tm=(a-b)/(v-w) if b>a: if t>tp: print('YES') else: print('NO') else: if t>tm: print('YES') ...
import sys a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) if v==w or w>v: print('NO') sys.exit() else: tp=(b-a)/(v-w) tm=(a-b)/(v-w) if b>a: if t>=tp: print('YES') else: print('NO') else: if t>=tm: print('YES')...
[["-", 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, 47], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 20]]
5
135
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const int INF = 1 << 30; const long long LINF = 1LL << 60; const long long MOD = (long long)1e9 + 7; int main() { ll a, v, b, w, t; cin >> a >> v >> b >> w >> t; string ans; if (a < b) { ans = ((a + v * t >= b + w * t) ? "Yes" : "No"...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const int INF = 1 << 30; const long long LINF = 1LL << 60; const long long MOD = (long long)1e9 + 7; int main() { ll a, v, b, w, t; cin >> a >> v >> b >> w >> t; string ans; if (a < b) { ans = ((a + v * t >= b + w * t) ? "YES" : "NO"...
[["-", 0, 11, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 11, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 0, 11, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 11, 12, 23, 0, 41, 75, 5, 0, 6], ["-", 0, 41, 15, 23, 0, 16, 31, 16, 17, 72], ["+", 0, 41, 15, 23, 0, 16, 31, 16, 17, 33], ["-", 0, 41, 15, 23, 0, 16, 12, 16, 17, 72], ["+", 0, 41, 15,...
1
146
a,v=gets.chomp.split(" ").map(&:to_i); b,w=gets.chomp.split(" ").map(&:to_i); t=gets.chomp.to_i kyo = (a-b).to_f if (v-w)*t >= kyo puts "YES" else puts "NO" end
a,v=gets.chomp.split(" ").map(&:to_i); b,w=gets.chomp.split(" ").map(&:to_i); t=gets.chomp.to_i kyo = (a-b).abs if (v-w)*t >= kyo puts "YES" else puts "NO" end
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
78
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <math.h> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { ll A, V; cin >> A >> V; ll B, W; cin >> B >> W; ll T; cin >> T; if (V <...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <math.h> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { ll A, V; cin >> A >> V; ll B, W; cin >> B >> W; ll T; cin >> T; if (V <...
[["-", 49, 50, 51, 2, 3, 4, 0, 11, 17, 32], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 17, 33]]
1
131
A, V = map(int,input(),split()) B, W = map(int,input(),split()) T = input() if (V <= W): print("NO") elif(T < abs(A - B)/(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)/(V-W)): print("NO") else: print("YES")
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 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
82
# -*- coding: utf-8 -*- # B import sys from collections import defaultdict, deque from heapq import heappush, heappop import math import bisect input = sys.stdin.readline # 再起回数上限変更 # sys.setrecursionlimit(1000000) a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if v <= w: pri...
# -*- coding: utf-8 -*- # B import sys from collections import defaultdict, deque from heapq import heappush, heappop import math import bisect input = sys.stdin.readline # 再起回数上限変更 # sys.setrecursionlimit(1000000) a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) if v <= w: pri...
[["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 20]]
5
112
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) d = abs(b-a) d2 = w-v print('YES' if d <= d2*t else 'NO')
a, v = map(int, input().split()) b, w = map(int, input().split()) t = int(input()) d = abs(b-a) d2 = v-w print('YES' if d <= d2*t else 'NO')
[["-", 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, 17, 33], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22]]
5
69
stdin = [input() for i in range(3)] line = stdin[0].split(' ') A = int(line[0]) V = int(line[1]) line = stdin[1].split(' ') B = int(line[0]) W = int(line[1]) T = int(stdin[2]) length = 0 if B < A: length = B-A else: length = A-B if (V-W)*T < length: print('NO') else: print('YES')
stdin = [input() for i in range(3)] line = stdin[0].split(' ') A = int(line[0]) V = int(line[1]) line = stdin[1].split(' ') B = int(line[0]) W = int(line[1]) T = int(stdin[2]) length = 0 if B > A: length = B-A else: length = A-B if (V-W)*T < length: print('NO') else: print('YES')
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]]
5
130
A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) if V-W == 0: print("NO") elif 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 W>=V: print("NO") elif abs(B-A)/(V-W) <= T: print("YES") else: print("NO")
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 31, 22], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 33], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]]
5
83
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a, av; ll b, bv; ll t; cin >> a >> av; cin >> b >> bv >> t; if (av * t - bv * t >= b - a) cout << "YES" << endl; else cout << "NO" << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll a, av; ll b, bv; ll t; cin >> a >> av; cin >> b >> bv >> t; if (av * t - bv * t >= abs(b - a)) cout << "YES" << endl; else cout << "NO" << endl; }
[["+", 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
75
#include <bits/stdc++.h> using namespace std; int main() { int a, v, b, w; cin >> a >> v >> b >> w; int t; cin >> t; if (abs((v - w) * t) >= abs(b - a)) cout << "YES" << endl; else cout << "NO" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, v, b, w; cin >> a >> v >> b >> w; int t; cin >> t; if ((long long)(v - w) * t >= abs(b - a)) cout << "YES" << endl; else cout << "NO" << endl; }
[["-", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["+", 31, 16, 31, 74, 39, 77, 39, 86, 0, 96], ["+", 15, 339, 51, 16, 31, 16, 31, 74, 0, 25], ["-", 15, 339, 51, 16, 31, 2, 3, 4, 0, 25]]
1
75
#include <bits/stdc++.h> using namespace std; //#include <boost/multiprecision/cpp_int.hpp> // using namespace boost::multiprecision; #define fio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> using namespace std; //#include <boost/multiprecision/cpp_int.hpp> // using namespace boost::multiprecision; #define fio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[["+", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["+", 51, 16, 31, 2, 3, 4, 0, 23, 0, 24], ["+", 51, 16, 31, 2, 3, 4, 0, 23, 0, 25]]
1
991
#include <bits/stdc++.h> #define rep(i, n) for (int i = (0); i < (n); i++) using namespace std; typedef long long ll; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a, const T &b) { if (a > b) { a = b; return 1; ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = (0); i < (n); i++) using namespace std; typedef long long ll; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a, const T &b) { if (a > b) { a = b; return 1; ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
195
#include <algorithm> #include <bits/stdc++.h> using namespace std; vector<pair<int, int>> g; int main() { int a, v, b, w, t; cin >> a >> v >> b >> w >> t; if ((v * t - w * t) - abs(a - b) > 0) { cout << "YES"; } else { cout << "NO"; } }
#include <algorithm> #include <bits/stdc++.h> using namespace std; vector<pair<int, int>> g; int main() { long long a, v, b, w, t; cin >> a >> v >> b >> w >> t; if ((v * t - w * t) - abs(a - b) >= 0) { cout << "YES"; } else { cout << "NO"; } }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
86
/* * author :Sadik Hassan * */ #include "bits/stdc++.h" using namespace std; #define ll long long #define nl "\n" #define pb push_back #define fi first #define se second #define PI (acos(-1.0)) #define _SAD() \ ios::sync_with_stdio(0), cin.tie(0), cou...
/* * author :Sadik Hassan * */ #include "bits/stdc++.h" using namespace std; #define ll long long #define nl "\n" #define pb push_back #define fi first #define se second #define PI (acos(-1.0)) #define _SAD() \ ios::sync_with_stdio(0), cin.tie(0), cou...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["-", 8, 9, 0, 1, 0, 11, 12, 91, 17, 33], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 110]]
1
231
#include <bits/stdc++.h> using namespace std; #define Pb push_back #define Mp make_pair #define ff first #define ss second #define Max(x, y, z) max(x, max(y, z)) #define Min(x, y, z) min(x, min(y, z)) #define INF LONG_LONG_MAX #define MINF LONG_LONG_MIN #define endl "\n" #define IOS ...
#include <bits/stdc++.h> using namespace std; #define Pb push_back #define Mp make_pair #define ff first #define ss second #define Max(x, y, z) max(x, max(y, z)) #define Min(x, y, z) min(x, min(y, z)) #define INF LONG_LONG_MAX #define MINF LONG_LONG_MIN #define endl "\n" #define IOS ...
[["-", 49, 50, 51, 16, 31, 16, 31, 2, 63, 22]]
1
226
#include <bits/stdc++.h> #define IO \ std::ios_base::sync_with_stdio(false); \ std::cin.tie(NULL); \ std::cout.tie(NULL); #define FIN freopen("entrada...
#include <bits/stdc++.h> #define IO \ std::ios_base::sync_with_stdio(false); \ std::cin.tie(NULL); \ std::cout.tie(NULL); #define FIN freopen("entrada...
[["-", 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
111
import sys a = list(map(int,input().split())) b = list(map(int,input().split())) t = int(input()) if a[1] <= b[1]: print('NO') sys.exit() elif abs(a[0]-b[0])//(a[1]-b[1]) <= t: print('YES') sys.exit() else: print('NO')
import sys a = list(map(int,input().split())) b = list(map(int,input().split())) t = int(input()) if a[1] <= b[1]: print('NO') sys.exit() elif abs(a[0]-b[0])/abs(a[1]-b[1]) <= t: print('YES') sys.exit() else: print('NO')
[["-", 0, 57, 75, 665, 15, 666, 0, 657, 17, 676], ["+", 0, 57, 75, 665, 15, 666, 0, 657, 17, 85], ["+", 75, 665, 15, 666, 0, 657, 12, 652, 63, 22]]
5
113
#include <bits/stdc++.h> #define vsort(v) sort(v.begin(), v.end()) #define rvsort(v) sort(v.begin(), v.end(), greater<ll>()) #define ll long long #define ld long double #define rep(i, s, g) for (ll i = (s); i < (g); i++) #define mod 1000000007 #define vfind(v, target) find(v.begin(), v.end(), target) #define notFound(v...
#include <bits/stdc++.h> #define vsort(v) sort(v.begin(), v.end()) #define rvsort(v) sort(v.begin(), v.end(), greater<ll>()) #define ll long long #define ld long double #define rep(i, s, g) for (ll i = (s); i < (g); i++) #define mod 1000000007 #define vfind(v, target) find(v.begin(), v.end(), target) #define notFound(v...
[["-", 31, 23, 0, 16, 31, 74, 39, 77, 39, 78], ["+", 31, 23, 0, 16, 31, 74, 39, 77, 39, 78]]
1
129
#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; } else { long long kyori0 = b - a; long long kyori1 = v - w; if (kyori0 > 0 && kyori0 <= t * kyori1) { 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 (v <= w) { cout << "NO" << endl; return 0; } else { long long kyori0 = b - a; long long kyori1 = v - w; if (abs(kyori0) <= t * kyori1) { cout << "YES" << endl; } els...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 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
110
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); long long a, b, v, w, t; cin >> a >> v >> b >> w >> t; long long d = abs(a - b); if (v > w && d >= (v - w) * t) cout << "YES" << '\n'; else cout << "NO" << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); long long a, b, v, w, t; cin >> a >> v >> b >> w >> t; long long d = abs(a - b); if (v > w && d <= (v - w) * t) cout << "YES" << '\n'; else cout << "NO" << '\n'; return 0; }
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]]
1
101
#pragma GCC optimize("Ofast") #include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <complex> #include <iostream> #define FIXED_FLOAT(x) std::fixed << std::setprecision(7) << (x) #define fast \ ios::sync_with_stdio(0); ...
#pragma GCC optimize("Ofast") #include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <complex> #include <iostream> #define FIXED_FLOAT(x) std::fixed << std::setprecision(7) << (x) #define fast \ ios::sync_with_stdio(0); ...
[["-", 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, 17, 152], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22]]
1
158
a,v = map(int,input().split()) b,w = map(int,input().split()) t = int(input()) ans = 'NO' d = abs(a-b) m = (v-w)*t if d-m < 0: ans = 'YES' print(ans)
a,v = map(int,input().split()) b,w = map(int,input().split()) t = int(input()) ans = 'NO' d = abs(a-b) m = (v-w)*t if d-m <= 0: ans = 'YES' print(ans)
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]]
5
78
a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) if a<b and v<=w: print("NO") else: if abs(b-a)<=t*abs(v-w): print("YES") else: print("NO")
a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) if a<b and v<=w: print("NO") else: if abs(b-a)<=t*(v-w): print("YES") else: print("NO")
[["-", 0, 57, 15, 666, 0, 657, 12, 652, 63, 22]]
5
88
#!/usr/bin/env python def run(a, vt, b, wt): if a < b: if b + wt <= a + vt: return 'Yes' else: return 'No' else: if a - vt <= b - wt: return 'Yes' else: return 'No' def main(): A, V = list(map(int, input().split())) B, W...
#!/usr/bin/env python def run(a, vt, b, wt): if a < b: if b + wt <= a + vt: return 'YES' else: return 'NO' else: if a - vt <= b - wt: return 'YES' else: return 'NO' def main(): A, V = list(map(int, input().split())) B, W...
[["-", 0, 57, 64, 196, 0, 37, 0, 557, 0, 6], ["+", 0, 57, 64, 196, 0, 37, 0, 557, 0, 6], ["-", 75, 76, 8, 196, 0, 37, 0, 557, 0, 6], ["+", 75, 76, 8, 196, 0, 37, 0, 557, 0, 6]]
5
136
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll a, b, v, w, t; cin >> a >> v; cin >> b >> w; cin >> t; if (v <= w) { cout << "NO"; } else { ll k = abs(b - a); if (k / (v - w) <= t) { cout << "YES"; } else { cout << "NO"; } } return 0; }...
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll a, b, v, w, t; cin >> a >> v; cin >> b >> w; cin >> t; if (v == w) { cout << "NO"; } else { ll k = abs(b - a); if (k <= (v - w) * t) { cout << "YES"; } else { cout << "NO"; } } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]]
1
101
#include <bits/stdc++.h> using namespace std; using ll = long long; // print(fixed << setprecision(10)); #define rep(i, n) for (ll i = 0; i < (n); i++) #define repk(i, n, k) for (ll i = k; i < (n); i++) #define all(n) n.begin(), n.end() #define print(n) cout << n << endl double PI = acos(-1.0); int INF = 1e9; ll LINF ...
#include <bits/stdc++.h> using namespace std; using ll = long long; // print(fixed << setprecision(10)); #define rep(i, n) for (ll i = 0; i < (n); i++) #define repk(i, n, k) for (ll i = k; i < (n); i++) #define all(n) n.begin(), n.end() #define print(n) cout << n << endl double PI = acos(-1.0); int INF = 1e9; ll LINF ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]]
1
150
def LI(): return list(map(int, input().split())) def I(): return map(int, input().split()) mod = 10**9 + 7 def main(): a, v = I() b, w = I() t = int(input()) if v <= w: print('NO') else: if abs(a-b) // (v-w) <= t: print('YES') else: print('NO') if __name__ == '__main__': main()
def LI(): return list(map(int, input().split())) def I(): return map(int, input().split()) mod = 10**9 + 7 def main(): a, v = I() b, w = I() t = int(input()) if v <= w: print('NO') else: if abs(a-b) <= (v-w)*t : print('YES') else: print('NO') if __name__ == '__main__': main()
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 676], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 48]]
5
126
def LI(): return list(map(int, input().split())) def I(): return map(int, input().split()) mod = 10**9 + 7 def main(): a, v = I() b, w = I() t = int(input()) if v <= w: print('NO') else: if abs(a-b) // (v-w) <= t: print('YES') else: print('NO') if __name__ == '__main__': main()
def LI(): return list(map(int, input().split())) def I(): return map(int, input().split()) mod = 10**9 + 7 def main(): a, v = I() b, w = I() t = int(input()) if v <= w: print('NO') else: if abs(a-b) / (v-w) <= t: print('YES') else: print('NO') if __name__ == '__main__': main()
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 676], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 85]]
5
126
/* * main.c * * Created on: 2020/03/28 * Author: family */ #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX(a, b) (a > b ? a : b) #define MIN(a, b) (a > b ? b : a) typedef long long int ll; typedef unsigned long long int ull; int sort_inc(const void *a, const void *b...
/* * main.c * * Created on: 2020/03/28 * Author: family */ #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX(a, b) (a > b ? a : b) #define MIN(a, b) (a > b ? b : a) typedef long long int ll; typedef unsigned long long int ull; int sort_inc(const void *a, const void *b...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]]
0
597
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; #define pri(str) cout << str << endl using ll = long long; using P = pair<int, int>; const ll MX = 1e18; const long double PI = acos(-1); int main() { ll a, b, v, w, t; cin >> a >> v >> b >> w >> t; if ((b - a) <= t * ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; #define pri(str) cout << str << endl using ll = long long; using P = pair<int, int>; const ll MX = 1e18; const long double PI = acos(-1); int main() { ll a, b, v, w, t; cin >> a >> v >> b >> w >> t; if (abs(b - a) <= ...
[["+", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["-", 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
115
// The comment below is the wrong answer #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <utility> #include <vector> using namespace std; using ...
// The comment below is the wrong answer #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <utility> #include <vector> using namespace std; using ...
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]]
1
146
#include <bits/stdc++.h> #define PI 3.14159265359 #define rep(i, a, n) for (int i = a; i < (int)n; ++i) #define SZ(x) ((int)(x).size()) // size() unsigned -> int #define descSort(a) sort(a.begin(), a.end(), std::greater<int>()) using namespace std; typedef long long ll; const ll INF = 1e9 + 7; ll gcd(ll x, ll y) { i...
#include <bits/stdc++.h> #define PI 3.14159265359 #define rep(i, a, n) for (int i = a; i < (int)n; ++i) #define SZ(x) ((int)(x).size()) // size() unsigned -> int #define descSort(a) sort(a.begin(), a.end(), std::greater<int>()) using namespace std; typedef long long ll; const ll INF = 1e9 + 7; ll gcd(ll x, ll y) { i...
[["-", 31, 16, 31, 2, 3, 4, 0, 11, 17, 32], ["+", 31, 16, 31, 2, 3, 4, 0, 16, 17, 33]]
1
161
int main(void) { int a, b, v, w, t; scanf("%d%d%d%d%d", &a, &b, &v, &w, &t); int d = a > b ? a - b : b - a; if (d <= (long)(v - w) * t) { puts("YES"); } else { puts("NO"); } }
int main(void) { int a, b, v, w, t; scanf("%d%d%d%d%d", &a, &v, &b, &w, &t); int d = a > b ? a - b : b - a; if (d <= (long)(v - w) * t) { puts("YES"); } else { puts("NO"); } }
[["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22]]
0
89
A,V = [int(i) for i in input().split() ] B,W = [int(i) for i in input().split() ] T = int(input()) print ("YES" if V-W > 0 and abs(A-B) // (V-W) <= T else "NO" )
A,V = [int(i) for i in input().split() ] B,W = [int(i) for i in input().split() ] T = int(input()) print ("YES" if V-W > 0 and abs(A-B) / (V-W) <= T else "NO" )
[["-", 0, 41, 0, 679, 12, 666, 0, 657, 17, 676], ["+", 0, 41, 0, 679, 12, 666, 0, 657, 17, 85]]
5
79
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, v, w, t; cin >> a >> v >> b >> w >> t; long long c = (v - w) * t, d = b - a; if (c >= d) cout << "YES\n"; else cout << "NO\n"; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, v, w, t; cin >> a >> v >> b >> w >> t; long long c = (v - w) * t, d = abs(a - b); if (c >= d) cout << "YES\n"; else cout << "NO\n"; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 24], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 17, 33], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 25]]
1
75
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ll A, V; cin >> A >> V; ll B, W; cin >> B, W; ll T; cin >> T; ll D = A - B; ll D2 = (V - W) * T; puts(D <= D2 ? "YES" : "NO"); }
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ll A, V; cin >> A >> V; ll B, W; cin >> B >> W; ll T; cin >> T; ll D = abs(A - B); ll D2 = (V - W) * T; puts(D <= D2 ? "YES" : "NO"); }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 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
80
import java.util.Scanner; public class Main { public static void main(String[] args) { @SuppressWarnings("resource") 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(); if (v <= w) { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { @SuppressWarnings("resource") 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(); if (v <= w) { ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
158
#include <stdio.h> #include <stdlib.h> #include <string.h> int verbose = 1; int main(void) { long int a, b, v, w, t; if (fscanf(stdin, "%ld %ld", &a, &v) == EOF) { printf("NO\n"); } if (fscanf(stdin, "%ld %ld", &b, &w) == EOF) { printf("NO\n"); } if (fscanf(stdin, "%ld", &t) == EOF) { printf("...
#include <stdio.h> #include <stdlib.h> #include <string.h> int verbose = 1; int main(void) { long int a, b, v, w, t; if (fscanf(stdin, "%ld %ld", &a, &v) == EOF) { printf("NO\n"); } if (fscanf(stdin, "%ld %ld", &b, &w) == EOF) { printf("NO\n"); } if (fscanf(stdin, "%ld", &t) == EOF) { printf("...
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 33], ["+", 0, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["-", 0, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 48]]
0
174
#include <iostream> #include <string> using namespace std; int main() { long long a, v, b, w, t = 0; cin >> a; cin >> v; cin >> b; cin >> w; cin >> t; if (abs(a - b) == (v - w) * t) { puts("YES"); } else { puts("NO"); } return 0; }
#include <iostream> #include <string> using namespace std; int main() { long long a, v, b, w, t = 0; cin >> a; cin >> v; cin >> b; cin >> w; cin >> t; if (abs(a - b) <= (v - w) * t) { puts("YES"); } else { puts("NO"); } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
87
import sys input = sys.stdin.readline P = [list(map(int,input().split())) for i in range(2)] T = int(input()) if(P[0][1]<P[1][1]): print('NO') else: if(abs(P[0][0]-P[1][0])<abs(P[0][1]-P[1][1])*T): print('YES') else: print('NO')
import sys input = sys.stdin.readline P = [list(map(int,input().split())) for i in range(2)] T = int(input()) if(P[0][1]<P[1][1]): print('NO') else: if(abs(P[0][0]-P[1][0])<=abs(P[0][1]-P[1][1])*T): print('YES') else: print('NO')
[["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 19]]
5
127
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if(V <= W): print("NO") elif(abs(B - A) >= abs(V - W) * T): print("NO") else: print("YES")
A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if(V <= W): print("NO") elif(abs(B - A) > abs(V - W) * T): print("NO") else: print("YES")
[["-", 0, 57, 75, 665, 15, 23, 0, 666, 667, 20], ["+", 0, 57, 75, 665, 15, 23, 0, 666, 667, 47]]
5
86
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < (n); i++) #define REP2(i, x, n) for (int i = x; i < (n); i++) #define ALL(n) begin(n), end(n) #define sz(x) int(x.size()) using ll = long long; using P = pair<int, int>; const ll LLINF = numeric_limits<long long>::max(); const int mod =...
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (int i = 0; i < (n); i++) #define REP2(i, x, n) for (int i = x; i < (n); i++) #define ALL(n) begin(n), end(n) #define sz(x) int(x.size()) using ll = long long; using P = pair<int, int>; const ll LLINF = numeric_limits<long long>::max(); const int mod =...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 43, 49, 50, 51, 16, 31, 2, 63, 40], ["+", 49, 50, 51, 16, 31, 2, 3, 4, 0, 24], ["+", 49, 50, 51, 16, 31, 2, 3, 4, 0, 25]]
1
180
#include <bits/stdc++.h> typedef long long int ll; using namespace std; int main() { ll a, v; cin >> a >> v; ll b, w; cin >> b >> w; ll t; cin >> t; if (v > w) { float temp = abs(b - a) * (1.0); float tm = v - w; float p = (temp / tm); if (p < t) { cout << "YES" << endl; } else ...
#include <bits/stdc++.h> typedef long long int ll; using namespace std; int main() { ll a, v; cin >> a >> v; ll b, w; cin >> b >> w; ll t; cin >> t; if (v > w) { double temp = abs(b - a) * (1.0); double tm = v - w; double p = (temp / tm); if (p <= t) { cout << "YES" << endl; } e...
[["-", 8, 9, 0, 57, 64, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 57, 64, 9, 0, 43, 39, 40], ["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
126
#include <bits/stdc++.h> typedef long long int ll; using namespace std; int main() { ll a, v; cin >> a >> v; ll b, w; cin >> b >> w; ll t; cin >> t; if (v > w) { float temp = abs(b - a) * (1.0); float tm = v - w; float p = (temp / tm); if (p <= t + 1) { cout << "YES" << endl; } ...
#include <bits/stdc++.h> typedef long long int ll; using namespace std; int main() { ll a, v; cin >> a >> v; ll b, w; cin >> b >> w; double t; cin >> t; if (v > w) { double temp = abs(b - a) * (1.0); int tm = v - w; double p = (temp / tm); if (p <= t) { cout << "YES" << endl; } ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 57, 64, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 57, 64, 9, 0, 43, 39, 40], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 72], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
128
/* ID: zhaowei10 TASK: LANG: C++14 */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <ext/rope> using namespace __gnu_cxx; using namespace __gnu_pbds; using namespace std; #ifdef LOCAL #include <debug.h> #else #define debug(...) 0 #endif int main() { ...
/* ID: zhaowei10 TASK: LANG: C++14 */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <ext/rope> using namespace __gnu_cxx; using namespace __gnu_pbds; using namespace std; #ifdef LOCAL #include <debug.h> #else #define debug(...) 0 #endif int main() { ...
[["-", 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
151
A = list(map(int,input().split())) B = list(map(int,input().split())) T = int(input()) distance = abs(A[1]) + abs(B[1]) A[1] = A[1] * T B[1] = B[1] * T if distance <= (A[1] - B[1]): print('YES') else: print('NO')
A = list(map(int,input().split())) B = list(map(int,input().split())) T = int(input()) distance = abs(A[0] - B[0]) A[1] = A[1] * T B[1] = B[1] * T if distance <= (A[1] - B[1]): print('YES') else: print('NO')
[["-", 12, 657, 31, 652, 3, 4, 0, 206, 206, 612], ["+", 12, 652, 3, 4, 0, 657, 31, 206, 206, 612], ["-", 0, 662, 12, 657, 31, 652, 3, 4, 0, 25], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72], ["-", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22], ["-", 0, 662, 12, 657, 12, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 652, 3, 4, 0, 657,...
5
110
#!/usr/bin/env python3 from collections import deque, Counter from heapq import heappop, heappush from bisect import bisect_right def main(): A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if V > W and abs(B-A)//(V-W) <= T: print('YES') else: prin...
#!/usr/bin/env python3 from collections import deque, Counter from heapq import heappop, heappush from bisect import bisect_right def main(): A, V = map(int, input().split()) B, W = map(int, input().split()) T = int(input()) if V > W and abs(B-A)/(V-W) <= T: print('YES') else: print...
[["-", 0, 57, 15, 679, 12, 666, 0, 657, 17, 676], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 85]]
5
106
import sys a,v=map(int,input().split()) b,w=map(int,input().split()) t=int(input()) if v<=w: print('NO') sys.exit() else: d=abs(a-b) s=v-w if d<=ts: print('YES') sys.exit() 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() else: d=abs(a-b) s=v-w if d<=t*s: print('YES') sys.exit() print('NO')
[["-", 75, 76, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 48], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]]
5
95
#include <cmath> #include <iostream> using namespace std; int main() { long long int a, b; long long int v, w, t; std::cin >> a >> v; std::cin >> b >> w; std::cin >> t; long long int distance = abs(b - a); long long int speed = abs(w - v); if (w - v >= 0 || b < a) { cout << "NO" << endl; re...
#include <cmath> #include <iostream> using namespace std; int main() { long long int a, b; long long int v, w, t; std::cin >> a >> v; std::cin >> b >> w; std::cin >> t; long long int distance = abs(b - a); long long int speed = abs(w - v); if (w - v >= 0) { cout << "NO" << endl; return 0; ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]]
1
141
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define all(v) (v).begin(), (v).end() using namespace std; using ll = long long; using pii = pair<int, int>; using vi = vector<int>; const ll INF = 1LL << 60; const int MOD = 1e9 + 7; const int N = 2e5 + 5; int main() { ll A, V; cin >> A >> V; ll B, W; cin >>...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define all(v) (v).begin(), (v).end() using namespace std; using ll = long long; using pii = pair<int, int>; using vi = vector<int>; const ll INF = 1LL << 60; const int MOD = 1e9 + 7; const int N = 2e5 + 5; int main() { ll A, V; cin >> A >> V; ll B, W; cin >>...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
168
#include <bits/stdc++.h> using namespace std; int main() { long long a, v, b, w, t; cin >> a >> v; cin >> b >> w; cin >> t; long long d = abs(a - b); long long dd = (v - w) * t; if (d < dd) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long a, v, b, w, t; cin >> a >> v; cin >> b >> w; cin >> t; long long d = abs(a - b); long long dd = (v - w) * t; if (d <= dd) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
89
# coding: utf-8 # Your code here! A,V = int(input().split()) B,W = int(input().split()) T = int(input()) dis=abs(A-B) dis1=(V-W)*T if dis<=dis1: print("YES") else: print("NO")
# coding: utf-8 # Your code here! A,V = map(int,input().split()) B,W = map(int,input().split()) T = int(input()) dis=abs(A-B) dis1=(V-W)*T if dis<=dis1: print("YES") else: print("NO")
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]]
5
74
#include <bits/stdc++.h> using namespace std; using ll = long long; #define LIMIT 1000000007 // 10^9+7 #define rep(i, n) for (int i = 0; i < (int)n; i++) /* 一括cin */ template <class H> void CIN(H &h) { cin >> h; } template <class H, class... T> void CIN(H &h, T &...t) { cin >> h; CIN(t...); } int main() { ll a, ...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define LIMIT 1000000007 // 10^9+7 #define rep(i, n) for (int i = 0; i < (int)n; i++) /* 一括cin */ template <class H> void CIN(H &h) { cin >> h; } template <class H, class... T> void CIN(H &h, T &...t) { cin >> h; CIN(t...); } int main() { ll a, ...
[["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 85], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 12, 22]]
1
166
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, x, y, t; cin >> a >> x; cin >> b >> y; cin >> t; cout << ((x - y) * t > abs(a - b) ? "YES" : "NO"); }
#include <bits/stdc++.h> using namespace std; int main() { long long a, b, x, y, t; cin >> a >> x; cin >> b >> y; cin >> t; cout << ((x - y) * t >= abs(a - b) ? "YES" : "NO"); }
[["-", 0, 16, 12, 23, 0, 41, 15, 16, 17, 47], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 20]]
1
67
#include <bits/stdc++.h> #include <iostream> #include <math.h> using namespace std; typedef long long ll; int main(void) { ll a, b, v, w, t; cin >> a >> v >> b >> w >> t; cout << (abs(a - b) / (v - w) <= t ? "YES" : "NO") << endl; return 0; }
#include <bits/stdc++.h> #include <iostream> #include <math.h> using namespace std; typedef long long ll; int main(void) { ll a, b, v, w, t; cin >> a >> v >> b >> w >> t; cout << (abs(a - b) <= (v - w) * t ? "YES" : "NO") << endl; return 0; }
[["-", 12, 23, 0, 41, 15, 16, 31, 16, 17, 85], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 19], ["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 19], ["+", 12, 23, 0, 41, 15, 16, 12, 16, 17, 48]]
1
77
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define rep(i, k, n) for (int(i) = (k); (i) < (n); (i)++) #define max(a, b) (a) > (b) ? (a) : (b) #define min(a, b) (a) < (b) ? (a) : (b) #define abs(a) (a) > 0 ? (a) : -(a) #define llong long long int main() { llong A, V; scanf("%lld %l...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define rep(i, k, n) for (int(i) = (k); (i) < (n); (i)++) #define max(a, b) ((a) > (b) ? (a) : (b)) #define min(a, b) ((a) < (b) ? (a) : (b)) #define abs(a) ((a) > 0 ? (a) : -(a)) #define llong long long int main() { llong A, V; scanf("%...
[["-", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59]]
0
133