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
import math a,b,c,d=map(int,input().split()) e=math.ceil(c/b) f=math.ceil(a/d) if e>f: print('Yes') elif e==f: print('Yes') else: print('No')
import math a,b,c,d=map(int,input().split()) e=math.ceil(c/b) f=math.ceil(a/d) if e>f: print('No') elif e==f: print('Yes') else: print('Yes')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
72
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; int a = ceil((double)A / D); int b = ceil((double)C / B); if (a <= b) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; int a = ceil((double)A / D); int b = ceil((double)C / B); if (b <= a) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
87
a,b,c,d= map(int,input().split()) x=0 y=0 x = int(-(-a//d)) y = int(-(-c//b)) print(x,y) if x < y : print('No') else: print('Yes')
a,b,c,d= map(int,input().split()) x=0 y=0 x = int(-(-a//d)) y = int(-(-c//b)) if x < y : print('No') else: print('Yes')
[["-", 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, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
75
#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int a1 = c / b; if (c % b != 0) a1++; int b1 = a / d; if (a % d != 0) b1++; if (a1 < b1) cout << "Yes"; else cout << "No"; }
#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int a1 = c / b; if (c % b != 0) a1++; int b1 = a / d; if (a % d != 0) b1++; if (a1 <= b1) cout << "Yes"; else cout << "No"; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
86
A, B, C, D = map(int, input().split()) turn = False while A > 0 and C > 0: if turn: C -= B else: A -= D turn = not turn if A <= 0: print('No') else: print('Yes')
A, B, C, D = map(int, input().split()) turn = True while A > 0 and C > 0: if turn: C -= B else: A -= D turn = not turn if A <= 0: print('No') else: print('Yes')
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 147], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 146]]
5
66
a,b,c,d=map(int,input().split()) n=1 while c-b*n>0 and a-d*n>0: n+=1 if c-b*n<=a-d*n: print('Yes') else: print('No')
a,b,c,d=map(int,input().split()) n=1 while c-b*n>0 and a-d*n>0: n+=1 if c-b*n<=0: 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], ["-", 0, 57, 15, 666, 0, 657, 12, 657, 31, 22], ["-", 0, 57, 15, 666, 0, 657, 12, 657, 17, 48], ["-", 0, 57, 15, 666, 0, 657, 12, 657, 12, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]]
5
70
a, b, c, d = map(int, input().split()) while a > 0 or c > 0: c -= b a -= d print("Yes" if c <= 0 else "No")
a, b, c, d = map(int, input().split()) while a > 0 and c > 0: c -= b a -= d print("Yes" if c <= 0 else "No")
[["-", 36, 36, 0, 656, 0, 52, 15, 679, 17, 354], ["+", 36, 36, 0, 656, 0, 52, 15, 679, 17, 355]]
5
49
import math a,b,c,d = map(int,input().split()) a = math.ceil(a/d) b = math.ceil(b/c) if a<b: print('No') else: print('Yes')
import math a,b,c,d = map(int,input().split()) a = math.ceil(a/d) b = math.ceil(c/b) if a<b: print('No') else: print('Yes')
[["-", 0, 662, 12, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 22]]
5
61
//#define _GLIBCXX_DEBUG #include "bits/stdc++.h" using namespace std; //------------------------------- Type Names -------------------------------// using i64 = int_fast64_t; using seika = string; //{akari : 1D, yukari : 2D, maki : 3D} vector template <class kizuna> using akari = vector<kizuna>; template <class yu...
//#define _GLIBCXX_DEBUG #include "bits/stdc++.h" using namespace std; //------------------------------- Type Names -------------------------------// using i64 = int_fast64_t; using seika = string; //{akari : 1D, yukari : 2D, maki : 3D} vector template <class kizuna> using akari = vector<kizuna>; template <class yu...
[["-", 31, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["-", 31, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 12, 23, 0, 41, 15, 16, 12, 16, 12, 22...
1
228
#include <bits/stdc++.h> using namespace std; main() { int A, B, C, D; cin >> A >> B >> C >> D; for (int i = 0; i >= 0; i++) { C = C - B; if (C <= 0) { cout << "YES"; break; } A = A - D; if (A <= 0) { cout << "NO"; break; } } }
#include <bits/stdc++.h> using namespace std; main() { int A, B, C, D; cin >> A >> B >> C >> D; for (int i = 0; i >= 0; i++) { C = C - B; if (C <= 0) { cout << "Yes"; break; } A = A - D; if (A <= 0) { cout << "No"; break; } } }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
90
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int x = (c / b); if (c % b) x++; int y = (a / d); if (a % d) y++; if (x <= y) cout << "YES"; else cout << "NO"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int x = (c / b); if (c % b) x++; int y = (a / d); if (a % d) y++; if (x <= y) cout << "Yes"; else cout << "No"; return 0; }
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
89
#include <bits/stdc++.h> using namespace std; class Monster { public: int hp; int atk; Monster() { cin >> hp >> atk; } void Attack(Monster &enemy) { if (hp > 1) enemy.hp -= atk; } bool die() { if (hp <= 0) return true; else return false; } }; int main() { Monster takah...
#include <bits/stdc++.h> using namespace std; class Monster { public: int hp; int atk; Monster() { cin >> hp >> atk; } void Attack(Monster &enemy) { if (hp >= 1) enemy.hp -= atk; } bool die() { if (hp <= 0) return true; else return false; } }; int main() { Monster taka...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
141
#include <bits/stdc++.h> using namespace std; int a, b, c, d; #define ll long long int main() { cin >> a >> b >> c >> d; int x = (a + d - 1) / d; int y = (c + b - 1) / b; if (x > y) cout << "Yes"; else cout << "No"; return 0; }
#include <bits/stdc++.h> using namespace std; int a, b, c, d; #define ll long long int main() { cin >> a >> b >> c >> d; int x = (a + d - 1) / d; int y = (c + b - 1) / b; if (x >= y) cout << "Yes"; else cout << "No"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
82
#include <bits/stdc++.h> using namespace std; int main() { int ta, ba, tb, bb; cin >> ta >> ba; cin >> tb >> bb; while (1 > 0) { tb -= ba; if (tb <= 0) { cout << "No" << endl; break; } ta -= bb; if (ta <= 0) { cout << "Yes" << endl; break; } } }
#include <bits/stdc++.h> using namespace std; int main() { int ta, ba, tb, bb; cin >> ta >> ba; cin >> tb >> bb; while (1 > 0) { tb -= ba; if (tb <= 0) { cout << "Yes" << endl; break; } ta -= bb; if (ta <= 0) { cout << "No" << endl; break; } } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
85
#include <bits/stdc++.h> #define ll long long const int N = 100005; using namespace std; int a, b, c, d; int main() { cin >> a >> b >> c >> d; if ((a + d - 1) / d > (c + b - 1) / b) cout << "Yes"; else cout << "No"; return 0; }
#include <bits/stdc++.h> #define ll long long const int N = 100005; using namespace std; int a, b, c, d; int main() { cin >> a >> b >> c >> d; if ((a + d - 1) / d >= (c + b - 1) / b) cout << "Yes"; else cout << "No"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
78
taka_f,taka_p,aoki_f,aoki_p = map(int,input().split()) taka_life_span = -(-taka_f//aoki_p) aoki_life_span = -(-aoki_f//taka_p) print("Yes" if taka_life_span > aoki_life_span else "No")
taka_f,taka_p,aoki_f,aoki_p = map(int,input().split()) taka_life_span = -(-taka_f//aoki_p) aoki_life_span = -(-aoki_f//taka_p) print("Yes" if taka_life_span >= aoki_life_span else "No")
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 47], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 20]]
5
52
a, b, c, d = map(int, input().split()) x = int((a+d-1) / d) y = int((b+c-1) / b) if x >= y: print("YES") else: print("NO")
a, b, c, d = map(int, input().split()) x = int((a+d-1) / d) y = int((b+c-1) / b) if x >= y: 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
67
a,b,c,d=gets.chomp.split.map(&:to_i) class Monster attr_accessor :name, :hitpoint, :attackpoint, :status def initialize(name, hitpoint, attackpoint, status) @name=name @hitpoint=hitpoint @attackpoint=attackpoint @status=status end def attackEnemy(target) tar...
a,b,c,d=gets.chomp.split.map(&:to_i) class Monster attr_accessor :name, :hitpoint, :attackpoint, :status def initialize(name, hitpoint, attackpoint, status) @name=name @hitpoint=hitpoint @attackpoint=attackpoint @status=status end def attackEnemy(target) ta...
[["-", 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
192
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; int X = (C + B - 1) / B; int Y = (A + D - 1) / D; if (X < Y) { cout << "No" << endl; } else { cout << "Yea" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; int X = (C + B - 1) / B; int Y = (A + D - 1) / D; if (X > Y) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
84
a,b,c,d = [int(i) for i in input().split(" ")] attack_round_a = c // b if c % b != 0 else c // b + 1 attack_round_b = a // d if a % d != 0 else a // d + 1 print('Yes' if attack_round_a <= b else 'No')
a,b,c,d = [int(i) for i in input().split(" ")] attack_round_a = c // b if c % b == 0 else c // b + 1 attack_round_b = a // d if a % d == 0 else a // d + 1 print('Yes' if attack_round_a <= attack_round_b else 'No')
[["-", 0, 1, 0, 662, 12, 41, 0, 666, 667, 79], ["+", 0, 1, 0, 662, 12, 41, 0, 666, 667, 60], ["-", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22]]
5
75
A, B, C, D = map(int, input().split()) while B or D <= 0: if C - B <= 0: print("YES") break else: C -= B if A - D <= 0: print("NO") break else: A -=D
A, B, C, D = map(int, input().split()) while B or D <= 0: if C - B <= 0: print("Yes") break else: C -= B if A - D <= 0: print("No") break else: A -=D
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
65
#include <stdio.h> int main() { int a, b, c, d; scanf("%d %d %d %d", &a, &b, &c, &d); while (1) { c -= b; if (b <= 0) { printf("Yes\n"); break; } a -= d; if (a <= 0) { printf("No\n"); break; } } }
#include <stdio.h> int main() { int a, b, c, d; scanf("%d %d %d %d", &a, &b, &c, &d); while (1) { c -= b; if (c <= 0) { printf("Yes\n"); break; } a -= d; if (a <= 0) { printf("No\n"); break; } } }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22]]
0
86
#include <iostream> using namespace std; int main(void) { int A, B, C, D; cin >> A >> B >> C >> D; int DivA, DivC; if (A % D == 0) DivA = A / D; else DivA = A / D + 1; if (C % B == 0) DivC = C / B; else DivC = C / B + 1; if (DivA <= DivC) cout << "Yes" << endl; else cout << "No...
#include <iostream> using namespace std; int main(void) { int A, B, C, D; cin >> A >> B >> C >> D; int DivA, DivC; if (A % D == 0) DivA = A / D; else DivA = A / D + 1; if (C % B == 0) DivC = C / B; else DivC = C / B + 1; // cout << DivA << " " << DivC << endl; if (DivC <= DivA) cou...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 75, 76, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]]
1
106
import math a,b,c,d = map(int,input().split()) x=c/b y=a/d math.ceil(x) math.ceil(y) if x<=y: print("Yes") else: print("No")
import math a,b,c,d = map(int,input().split()) x=c/b y=a/d x=math.ceil(x) y=math.ceil(y) if x<=y: print("Yes") else: print("No")
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32]]
5
63
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> B >> B; ceil((float)C / B) <= ceil((float)A / D) ? cout << "Yes" : cout << "No"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; ceil((float)C / B) <= ceil((float)A / D) ? cout << "Yes" : cout << "No"; return 0; }
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
66
#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(a) a.begin(), a.end() #define INF 10 * 9 + 7 int main() { int a, b, c, d; cin >> a >> b >> c >> d; int taka = (a + d - 1) / d; int aoki = (c + b - 1) / b; if (taka >= aoki) ...
#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(a) a.begin(), a.end() #define INF 10 * 9 + 7 int main() { int a, b, c, d; cin >> a >> b >> c >> d; int taka = (a + d - 1) / d; int aoki = (c + b - 1) / b; if (taka >= aoki) ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
103
#include <iostream> using namespace std; int main() { //入力 int a, b, c, d; cin >> a >> b >> c >> d; //操作 while (-1) { c -= b; if (b <= 0) { cout << "Yes" << endl; break; } a -= d; if (a <= 0) { cout << "No" << endl; break; } } return 0; }
#include <iostream> using namespace std; int main() { //入力 int a, b, c, d; cin >> a >> b >> c >> d; //操作 while (-1) { c -= b; if (c <= 0) { cout << "Yes" << endl; break; } a -= d; if (a <= 0) { cout << "No" << endl; break; } } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]]
1
86
A, B, C, D = map(int, input().split()) if ((C+B-1)//B) < ((A+D-1)//D): print("No") else: print("Yes")
A, B, C, D = map(int, input().split()) if ((C+B-1)//B) > ((A+D-1)//D): 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
59
A_ini, B, C_ini, D = map(int, input().split()) # print(A_ini) # print(B) # print(C_ini) # print(D) # print() # print('main') # print() C_rem = C_ini - B A_rem = A_ini - D # print(C_rem) # print(A_rem) if C_rem <= 0 and A_rem > 0: print('Yes') elif C_rem <= 0 and A_rem <= 0: print('Yes') elif C_rem > 0 and A_rem ...
A_ini, B, C_ini, D = map(int, input().split()) # print(A_ini) # print(B) # print(C_ini) # print(D) # print() # print('main') # print() C_rem = C_ini - B A_rem = A_ini - D # print(C_rem) # print(A_rem) if C_rem <= 0 and A_rem > 0: print('Yes') elif C_rem <= 0 and A_rem <= 0: print('Yes') elif C_rem > 0 and A_rem ...
[["-", 0, 52, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
133
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; while (1) { c -= b; if (c <= 0) { cout << "Yes"; return 0; } a -= d; if (c <= 0) { cout << "No"; return 0; } } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; while (1) { c -= b; if (c <= 0) { cout << "Yes"; return 0; } a -= d; if (a <= 0) { cout << "No"; return 0; } } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]]
1
79
#include <cstdio> #include <iostream> using namespace std; struct monster { int health; int strength; }; int main() { monster x, y; cin >> x.health >> x.strength; cin >> y.health >> y.strength; while (x.health >= 0 && y.health >= 0) { y.health -= x.strength; if (y.health <= 0) break; x.hea...
#include <cstdio> #include <iostream> using namespace std; struct monster { int health; int strength; }; int main() { monster x, y; cin >> x.health >> x.strength; cin >> y.health >> y.strength; while (x.health > 0 && y.health > 0) { y.health -= x.strength; if (y.health <= 0) break; x.healt...
[["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 20], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 47], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 20], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47], ["-", 8, 9, 0, 1, 0, 41, 15, 16, 17, 20], ["+", 8, 9, 0, 1, 0, 41, 15, 16, 17, 47]]
1
113
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, x) for (int i = 0; i < x; i++) #define put(ans) cout << ans << endl; #define sort(s) sort(s.begin(), s.end()) #define reverse(s) reverse(s.begin(), s.end()) //最大公約数 ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } //最小公倍数 ll lcm(ll ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, x) for (int i = 0; i < x; i++) #define put(ans) cout << ans << endl; #define sort(s) sort(s.begin(), s.end()) #define reverse(s) reverse(s.begin(), s.end()) //最大公約数 ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } //最小公倍数 ll lcm(ll ...
[["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22]]
1
165
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int turn = 0; while (true) { if (turn == 0) { c = -b; if (c <= 0) { cout << "Yes"; return 0; } turn = 1; } else { a -= d; if (a <= 0) { cout <...
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int turn = 0; while (true) { if (turn == 0) { c -= b; if (c <= 0) { cout << "Yes"; return 0; } turn = 1; } else { a -= d; if (a <= 0) { cout <...
[["-", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["-", 64, 9, 0, 1, 0, 11, 12, 91, 17, 33], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 110]]
1
107
// Jacker0031 // packages #if __has_include("extra.cpp") && __has_include(<stdint.h>) #include "extra.cpp" #else #include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <fstream> #include <functional> #include <iomanip>...
// Jacker0031 // packages #if __has_include("extra.cpp") && __has_include(<stdint.h>) #include "extra.cpp" #else #include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <fstream> #include <functional> #include <iomanip>...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
530
// int a = stoi(c); 文字列をintへ //小文字から大文字 // transform(a.begin(), a.end(), a.begin(), ::toupper); //途中の出力をそのまま残さない //数値計算 個数以外はdouble // map<キー,値> p は辞書。p[キー] = 値 // map 全探索 // auto begin = p.begin(), end = p.end(); // for (auto it = begin; it != end; it++) {} // mapのキー:it->first mapのバリュー:it->second //絶対値 abs() //入力は空白で切...
// int a = stoi(c); 文字列をintへ //小文字から大文字 // transform(a.begin(), a.end(), a.begin(), ::toupper); //途中の出力をそのまま残さない //数値計算 個数以外はdouble // map<キー,値> p は辞書。p[キー] = 値 // map 全探索 // auto begin = p.begin(), end = p.end(); // for (auto it = begin; it != end; it++) {} // mapのキー:it->first mapのバリュー:it->second //絶対値 abs() //入力は空白で切...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
535
#include <iostream> using namespace std; int main() { int A = 0, B = 0, C = 0, D = 0; cin >> A >> B >> C >> D; bool tkh_attack = true; while (A > 0 || C > 0) { if (tkh_attack) { C -= B; tkh_attack = false; } else { A -= D; tkh_attack = true; } } if (A > C) { cout <<...
#include <iostream> using namespace std; int main() { int A = 0, B = 0, C = 0, D = 0; cin >> A >> B >> C >> D; bool tkh_attack = true; while (A > 0 && C > 0) { if (tkh_attack) { C -= B; tkh_attack = false; } else { A -= D; tkh_attack = true; } } if (A > C) { cout <<...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98]]
1
108
#include <bits/stdc++.h> #define ll long long int #define mod 1000000007 #define se second #define fi first #define endl "\n" #define pi 3.1415926535897932384626433832795028841971 #define MAX 9223372036854775807 using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); // cout...
#include <bits/stdc++.h> #define ll long long int #define mod 1000000007 #define se second #define fi first #define endl "\n" #define pi 3.1415926535897932384626433832795028841971 #define MAX 9223372036854775807 using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); // cout...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
125
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; while (A > 0 || C > 0) { C -= D; if (C <= 0) { cout << "Yes" << endl; break; } A -= D; if (A <= 0) { cout << "No" << endl; break; } } }
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; while (A > 0 || C > 0) { C -= B; if (C <= 0) { cout << "Yes" << endl; break; } A -= D; if (A <= 0) { cout << "No" << endl; break; } } }
[["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22]]
1
87
#include <iostream> using namespace std; int a, b, c, d, i; int main() { cin >> a >> b >> c >> d; while (a > 0 && c > 0) { c = c - b; if (c <= 0) { break; } a = a - d; } if (a > c) { cout << "Yes"; } else { cout << "NO"; } }
#include <iostream> using namespace std; int a, b, c, d, i; int main() { cin >> a >> b >> c >> d; while (a > 0 && c > 0) { c = c - b; if (c <= 0) { break; } a = a - d; } if (a > c) { cout << "Yes"; } else { cout << "No"; } }
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
90
a,b,c,d = map(int,input().split()) while 1: a -= b if a<1: print('Yes') exit() c-=d if c<1: print('No') exit()
a,b,c,d = map(int,input().split()) while 1: c -= b if c<1: print('Yes') exit() a-=d if a<1: print('No') exit()
[["-", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22]]
5
57
#include <bits/stdc++.h> #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) using namespace std; int main() { double A, B, C, D; cin >> A >> B >> C >> D; if (C / B <= A / D) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) using namespace std; int main() { double A, B, C, D; cin >> A >> B >> C >> D; if (ceil(C / B) <= ceil(A / D)) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
[["+", 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], ["+", 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
73
package main import ( "bufio" "fmt" "math" "os" "strconv" "strings" ) var sc = bufio.NewScanner(os.Stdin) func read() string { sc.Scan() return sc.Text() } func geti() int { n, _ := strconv.Atoi(read()) return n } // 10 11 12 => [10, 11, 12] func getli(size int) []int { a := make([]int, size) list := s...
package main import ( "bufio" "fmt" "math" "os" "strconv" "strings" ) var sc = bufio.NewScanner(os.Stdin) func read() string { sc.Scan() return sc.Text() } func geti() int { n, _ := strconv.Atoi(read()) return n } // 10 11 12 => [10, 11, 12] func getli(size int) []int { a := make([]int, size) list := s...
[["-", 0, 57, 64, 196, 0, 1, 0, 2, 63, 22], ["+", 64, 196, 0, 1, 0, 2, 63, 438, 439, 22], ["+", 64, 196, 0, 1, 0, 2, 63, 438, 0, 131], ["+", 64, 196, 0, 1, 0, 2, 63, 438, 119, 120], ["-", 0, 57, 75, 196, 0, 1, 0, 2, 63, 22], ["+", 75, 196, 0, 1, 0, 2, 63, 438, 439, 22], ["+", 75, 196, 0, 1, 0, 2, 63, 438, 0, 131], ["+"...
7
407
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; int i = 0; while (A > 0 && B > 0) { if (i % 2 == 0) { C -= B; i++; } else { A -= D; i++; } } if (A <= 0) { cout << "No" << endl; } else if (C <= 0) { cout << "...
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; int i = 0; while (A > 0 && C > 0) { if (i % 2 == 0) { C -= B; i++; } else { A -= D; i++; } } if (A <= 0) { cout << "No" << endl; } else if (C <= 0) { cout << "...
[["-", 0, 52, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 31, 22]]
1
108
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int x = (a - 1) / d + 1, y = (c - 1) / b + 1; bool bo = 1; if (x <= y) bo = 0; bo ? cout << "Yes" : cout << "No"; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int x = (a - 1) / d + 1, y = (c - 1) / b + 1; bool bo = 1; if (x < y) bo = 0; bo ? cout << "Yes" : cout << "No"; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
90
import math A, B, C, D = input().split() T_hp = int(A) T_atk = int(B) A_hp = int(C) A_atk = int(D) T_burstturn = math.ceil(T_hp / A_atk) A_burstturn = math.ceil(A_hp / T_atk) if T_burstturn < A_burstturn: print("No") else: prit("Yes")
import math A, B, C, D = input().split() T_hp = int(A) T_atk = int(B) A_hp = int(C) A_atk = int(D) T_burstturn = math.ceil(T_hp / A_atk) A_burstturn = math.ceil(A_hp / T_atk) if T_burstturn < A_burstturn: print("No") else: print("Yes")
[["-", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22]]
5
80
def Next(): return input() def NextInt(): return int(Next()) def NextInts(): return map(int,input().split()) def Nexts(): return map(str,input().split()) def NextIntList(): return list(map(int,input().split())) def RowInts(n): return [input() for i in range(n)] a,b,c,d= NextInts() #高橋体力a 青木体力c while((a>0) or (c>0)): ...
def Next(): return input() def NextInt(): return int(Next()) def NextInts(): return map(int,input().split()) def Nexts(): return map(str,input().split()) def NextIntList(): return list(map(int,input().split())) def RowInts(n): return [input() for i in range(n)] a,b,c,d= NextInts() #高橋体力a 青木体力c while((a>0) and (c>0)):...
[["-", 0, 656, 0, 52, 15, 23, 0, 679, 17, 354], ["+", 0, 656, 0, 52, 15, 23, 0, 679, 17, 355]]
5
155
#include <iostream> using namespace std; int a, b, c, d; int main() { cin >> a >> b >> c >> d; if ((a + d) / d < (c + b) / b) cout << "No"; else cout << "Yes"; return 0; }
#include <iostream> using namespace std; int a, b, c, d; int main() { cin >> a >> b >> c >> d; if ((a + d - 1) / d < (c + b - 1) / b) cout << "No"; else cout << "Yes"; return 0; }
[["+", 51, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 12, 13]]
1
65
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); int d = scan.nextInt(); do { c -= b; if (c <= 0) { System.out.println("yes"...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); int d = scan.nextInt(); do { c -= b; if (c <= 0) { System.out.println("Yes"...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
129
A, B, C, D = map(int, input().split()) M = [[A, B], [C, D]] T, A, HP, AP = 0, 1, 0, 1 atkTtoA = (M[A][HP] + M[T][AP] - 1) / M[T][AP] atkAtoT = (M[T][HP] + M[A][AP] - 1) / M[A][AP] if atkAtoT < atkTtoA: print("No") else: print("Yes")
A, B, C, D = map(int, input().split()) M = [[A, B], [C, D]] T, A, HP, AP = 0, 1, 0, 1 atkTtoA = (M[A][HP] + M[T][AP] - 1) // M[T][AP] atkAtoT = (M[T][HP] + M[A][AP] - 1) // M[A][AP] if atkAtoT < atkTtoA: print("No") else: print("Yes")
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]]
5
127
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. ******************************************...
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. ******************************************...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
74
#include <iostream> using namespace std; int a, b, c, d; bool k; int main() { cin >> a >> b >> c >> d; while (1) { if (k == 0) { a -= d; if (a <= 0) break; } if (k == 1) { c -= b; if (c <= 0) break; } if (k == 1) k = 0; else k = 1; } i...
#include <iostream> using namespace std; int a, b, c, d; bool k; int main() { cin >> a >> b >> c >> d; while (1) { if (k == 1) { a -= d; if (a <= 0) break; } if (k == 0) { c -= b; if (c <= 0) break; } if (k == 1) k = 0; else k = 1; } i...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
121
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define pb push_back #define f(i, n) for (i = 0; i < n; i++) #define F(i, a, b) for (i = a; a <= b; i++) #define arr(a, n) \ for (i = 0; i < n; i++) ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" #define pb push_back #define f(i, n) for (i = 0; i < n; i++) #define F(i, a, b) for (i = a; a <= b; i++) #define arr(a, n) \ for (i = 0; i < n; i++) ...
[["+", 0, 9, 0, 42, 0, 339, 51, 16, 17, 47], ["+", 0, 9, 0, 42, 0, 339, 51, 16, 12, 13]]
1
296
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; int X = (A + D) / D; int Y = (C + B) / B; if (X >= Y) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; int X = (A + D - 1) / D; int Y = (C + B - 1) / B; if (X >= Y) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 33], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 12, 13]]
1
80
/* ---------author:O7Oo7oO7O------------- */ #include <bits/stdc++.h> #define IOS \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cou...
/* ---------author:O7Oo7oO7O------------- */ #include <bits/stdc++.h> #define IOS \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cou...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
95
#include <iostream> using namespace std; int main() { // paper (p) <= rock (g) int th, ts, ah, as; cin >> th >> ts >> ah >> as; while (th > 0 && ah > 0) { th -= as; ah -= ts; } // cout << th << " " << ah << endl; cout << (th > 0 || ah <= 0 ? "yes" : "no") << endl; return 0; }
#include <iostream> using namespace std; int main() { // paper (p) <= rock (g) int th, ts, ah, as; cin >> th >> ts >> ah >> as; while (th > 0 && ah > 0) { th -= as; ah -= ts; } // cout << th << " " << ah << endl; cout << (th > 0 || ah <= 0 ? "Yes" : "No") << endl; return 0; }
[["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
78
a,b,c,d=map(int,input.split()) while a or c >0: c=c-b if c<=0: print('Yes') break a=a-d if a<=0: print('No') break
a,b,c,d=map(int,input().split()) while a or c >0: c=c-b if c<=0: print('Yes') break a=a-d if a<=0: print('No') break
[["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25]]
5
59
#include <stdio.h> int main() { int A, B, C, D; scanf("%d%d%d%d", &A, &B, &C, &D); if (C / B + 1 * (C % B) <= A / D + 1 * (A % D)) printf("Yes"); else printf("No"); return (0); }
#include <stdio.h> int main() { int A, B, C, D; scanf("%d%d%d%d", &A, &B, &C, &D); if (C / B + 1 * bool(C % B) <= A / D + 1 * bool(A % D)) printf("Yes"); else printf("No"); return (0); }
[["+", 51, 16, 31, 16, 12, 16, 12, 2, 63, 40], ["+", 51, 16, 12, 16, 12, 16, 12, 2, 63, 40]]
1
82
#include "stdio.h" int main(void) { int a, b, c, d; if (scanf("%d %d %d %d", &a, &b, &c, &d)) { int cnt = 0; while (a > 0 && c > 0) { if (cnt % 2 == 0) { c -= b; cnt++; } else { a -= d; cnt--; } } if (a < 0) { printf("No"); } else { ...
#include "stdio.h" int main(void) { int a, b, c, d; if (scanf("%d %d %d %d", &a, &b, &c, &d)) { int cnt = 0; while (a > 0 && c > 0) { if (cnt % 2 == 0) { c -= b; cnt++; } else { a -= d; cnt--; } } if (a <= 0) { printf("No"); } else { ...
[["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
115
#include <algorithm> #include <iostream> #include <vector> //#define DEBUG using namespace std; template <class T> void print_vect(std::vector<T> v) { for (int i = 0; i < v.size(); i++) cout << v[i] << " "; cout << endl; } void func_to_create() { int A, B, C, D; cin >> A >> B >> C >> D; int taka_timi...
#include <algorithm> #include <iostream> #include <vector> //#define DEBUG using namespace std; template <class T> void print_vect(std::vector<T> v) { for (int i = 0; i < v.size(); i++) cout << v[i] << " "; cout << endl; } void func_to_create() { int A, B, C, D; cin >> A >> B >> C >> D; int taka_timi...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 72], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
204
#include <bits/stdc++.h> #define ll long long using namespace std; ll n, m, a, b; inline ll read() { ll s = 0, w = 1; char ch = getchar(); for (; ch < '0' || ch > '9'; ch = getchar()) w *= ch == '-' ? -1 : 1; for (; ch >= '0' && ch <= '9'; ch = getchar()) s = s * 10 + ch - '0'; return s * w; } inli...
#include <bits/stdc++.h> #define ll long long using namespace std; ll n, m, a, b; inline ll read() { ll s = 0, w = 1; char ch = getchar(); for (; ch < '0' || ch > '9'; ch = getchar()) w *= ch == '-' ? -1 : 1; for (; ch >= '0' && ch <= '9'; ch = getchar()) s = s * 10 + ch - '0'; return s * w; } inli...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
247
<?php fscanf(STDIN, "%d%d%d%d", $a, $b, $c, $d); while(true){ $c-=$b; if($c<=0){echo "YES";exit;} $a-=$d; if($a<=0){echo "NO";exit;} }
<?php fscanf(STDIN, "%d%d%d%d", $a, $b, $c, $d); while(true){ $c-=$b; if($c<=0){echo "Yes";exit;} $a-=$d; if($a<=0){echo "No";exit;} }
[["-", 0, 57, 8, 9, 0, 608, 0, 609, 0, 610], ["+", 0, 57, 8, 9, 0, 608, 0, 609, 0, 610]]
6
72
a = list(map(int,input().split())) if -(a[0]//a[3]) >= -(a[2]//a[1]): print("Yes") else: print("No")
a = list(map(int,input().split())) if -(-a[0]//a[3]) >= -(-a[2]//a[1]): print("Yes") else: print("No")
[["+", 0, 664, 28, 23, 0, 657, 31, 664, 17, 33]]
5
58
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; int i, j; i = ceil(C / B); j = ceil(A / D); if (j >= i) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { double A, B, C, D; cin >> A >> B >> C >> D; int i, j; i = ceil(C / B); j = ceil(A / D); if (j >= i) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
81
#include <bits/stdc++.h> typedef long long int ll; typedef long double ld; using namespace std; ll mod = 1e18; const ll inf = (ll)1e17; const ld eps = 1e-12; const ld PI = 3.14159265358979323846; ll mul(ll a, ll b, ll m = mod) { return (ll)(a * b) % m; } ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } ll powmod(ll...
#include <bits/stdc++.h> typedef long long int ll; typedef long double ld; using namespace std; ll mod = 1e18; const ll inf = (ll)1e17; const ld eps = 1e-12; const ld PI = 3.14159265358979323846; ll mul(ll a, ll b, ll m = mod) { return (ll)(a * b) % m; } ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } ll powmod(ll...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
415
#include <bits/stdc++.h> using namespace std; #define mod 1000000007 #define all(n) (n).begin(), (n).end() #define ll long long void solve() { int a, b, c, d; cin >> a >> b >> c >> d; bool turn = 1; while (a > 0 && c > 0) { if (turn) { c -= b; turn = 0; } else { a -= d; turn = ...
#include <bits/stdc++.h> using namespace std; #define mod 1000000007 #define all(n) (n).begin(), (n).end() #define ll long long void solve() { int a, b, c, d; cin >> a >> b >> c >> d; bool turn = 1; while (a > 0 && c > 0) { if (turn) { c -= b; turn = 0; } else { a -= d; turn = ...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
138
#include <stdio.h> int main() { int a, b, c, d, i = 0; scanf("%d %d %d %d", &a, &b, &c, &d); while (a > 0 && c > 0) { if (i % 2 == 0) c -= b; else a -= d; i++; } if (c <= 0) printf("yes"); else printf("no"); }
#include <stdio.h> int main() { int a, b, c, d, i = 0; scanf("%d %d %d %d", &a, &b, &c, &d); while (a > 0 && c > 0) { if (i % 2 == 0) c -= b; else a -= d; i++; } if (c <= 0) printf("Yes"); else printf("No"); }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
93
a,b,c,d=map(int,input().split()) while a > 0: c = c-b if c < 0: print('Yes') exit() a = a-d print('No')
a,b,c,d=map(int,input().split()) while a > 0: c = c-b if c <= 0: print('Yes') exit() a = a-d print('No')
[["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19]]
5
55
t_hp, t_pwr, a_hp, a_pwr = map(int, input().split()) while True: a_hp -= t_pwr t_hp -= a_pwr if a_hp < 0: print("Yes") break elif t_hp < 0: print("No") break
t_hp, t_pwr, a_hp, a_pwr = map(int, input().split()) while True: a_hp -= t_pwr t_hp -= a_pwr if a_hp <= 0: print("Yes") break elif t_hp <= 0: print("No") break
[["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]]
5
53
input_line = input().split() A = int(input_line[0]) B = int(input_line[1]) C = int(input_line[2]) D = int(input_line[3]) while (1): C -= B if C <= 0: print("Yes") break A -= D if A <= 0: print("no") break
input_line = input().split() A = int(input_line[0]) B = int(input_line[1]) C = int(input_line[2]) D = int(input_line[3]) while (1): C -= B if C <= 0: print("Yes") break A -= D if A <= 0: print("No") break
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
80
#include <stdio.h> int main(void) { int a, b, c, d, e, f; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &d); if (c % b == 0) e = c / b; else e = c / a + 1; if (a % d == 0) e = a / d; else f = a / d + 1; if (e <= f) printf("Yes"); else printf("No"); retu...
#include <stdio.h> int main(void) { int a, b, c, d, e, f; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &d); if (c % b == 0) e = c / b; else e = c / b + 1; if (a % d == 0) f = a / d; else f = a / d + 1; if (e > f) printf("No"); else printf("Yes"); retu...
[["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 31, 22], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4...
0
132
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; int main() { double a, b, c, d; cin >> a >> b >> c >> d; int ans_t, ans_a; ans_t = (double)a / (double)b + 0.999999; ans_a = (double)c / (double)d + 0.999999; // cout << ans_t << ans_a << end...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; int main() { double a, b, c, d; cin >> a >> b >> c >> d; int ans_t, ans_a; ans_t = (double)a / (double)d + 0.999999; ans_a = (double)c / (double)b + 0.999999; // cout << ans_t << ans_a << endl...
[["-", 0, 11, 12, 16, 31, 16, 12, 74, 51, 22], ["+", 0, 11, 12, 16, 31, 16, 12, 74, 51, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
105
#pragma GCC optimize "O3" #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #define POP pop_back #define MP make_pair #define MT make_tuple #define PB push_back #define F first #define S second #define X real() #define Y imag() #ifndef LOCAL #define endl "\n" #endif using namespace std; using namespac...
#pragma GCC optimize "O3" #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #define POP pop_back #define MP make_pair #define MT make_tuple #define PB push_back #define F first #define S second #define X real() #define Y imag() #ifndef LOCAL #define endl "\n" #endif using namespace std; using namespac...
[["-", 12, 23, 0, 41, 15, 23, 0, 16, 17, 19], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 17, 20]]
1
1,044
#include <bits/stdc++.h> #define MOD 1000000007 #define lli long long int #define rep(i, n) for (int i = 0; i < n; i++) #define REP(i, n) for (int i = n - 1; i >= 0; i--) #define endl "\n" using namespace std; void solve() { /// start solving lli a, b, c, d; cin >> a >> b >> c >> d; lli time1 = ceil(a / d); ...
#include <bits/stdc++.h> #define MOD 1000000007 #define lli long long int #define rep(i, n) for (int i = 0; i < n; i++) #define REP(i, n) for (int i = n - 1; i >= 0; i--) #define endl "\n" using namespace std; void solve() { /// start solving double a, b, c, d; cin >> a >> b >> c >> d; lli time1 = ceil(a / d...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 49, 50, 51, 2, 3, 4, 0, 16, 31, 22], ["-", 49, 50, 51, 2, 3, 4, 0, 16, 17, 85], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 17, 85], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 22]]
1
130
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; bool at = true; while (c > 0) { if (at) a -= d; else c -= b; at = !at; if (a <= 0) { cout << "No" << endl; return 0; } } cout << "Yes" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; bool at = false; while (c > 0) { if (at) a -= d; else c -= b; at = !at; if (a <= 0) { cout << "No" << endl; return 0; } } cout << "Yes" << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 146], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 147]]
1
92
a,b,c,d = map(int,input().split()) def cmald(a,b,c,d): while True: b-=c if b<=0: print("Yes") return a-=d if a<=0: print("No") return cmald(a,b,c,d)
a,c,b,d = map(int,input().split()) def cmald(a,b,c,d): while True: b-=c if b<=0: print("Yes") return a-=d if a<=0: print("No") return cmald(a,b,c,d)
[["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22]]
5
75
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int p1 = (c / b) + 1; int p2 = (a / d) + 1; if (c % b == 0) p1 -= 1; if (a % d == 0) p2 -= 1; if (p1 >= p2) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int p1 = (c / b) + 1; int p2 = (a / d) + 1; if (c % b == 0) p1 -= 1; if (a % d == 0) p2 -= 1; if (p1 <= p2) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
103
#include <bits/stdc++.h> using namespace std; int main() { int h[2], s[2]; cin >> h[0] >> s[0] >> h[1] >> s[1]; for (int i = 0; i >= 0; i++) { h[1] -= s[0]; if (h[1] <= 0) { cout << "yes"; break; } h[0] -= s[1]; if (h[0] <= 0) { cout << "no"; break; } } re...
#include <bits/stdc++.h> using namespace std; int main() { int h[2], s[2]; cin >> h[0] >> s[0] >> h[1] >> s[1]; for (int i = 0; i >= 0; i++) { h[1] -= s[0]; if (h[1] <= 0) { cout << "Yes"; break; } h[0] -= s[1]; if (h[0] <= 0) { cout << "No"; break; } } re...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
122
int main() { int th, ta, ah, aa; scanf("%d%d%d%d", &th, &ta, &ah, &aa); int tc, ac; tc = (ah % ta == 0) ? ah / ta : ah / ta + 1; ac = (th % aa == 0) ? th / aa : th / aa + 1; if (tc >= ac) printf("Yes"); else printf("No"); }
int main() { int th, ta, ah, aa; scanf("%d%d%d%d", &th, &ta, &ah, &aa); int tc, ac; tc = (ah % ta == 0) ? ah / ta : ah / ta + 1; ac = (th % aa == 0) ? th / aa : th / aa + 1; if (tc <= ac) printf("Yes"); else printf("No"); }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]]
0
100
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int debug = 1; int main() { int a, b, c, d; cin >> a >> b >> c >> d; double ha, hb; ha = a; hb = c; int num1, num2; num1 = ceil(hb / b); num2 = ceil(ha / d); ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int debug = 0; int main() { int a, b, c, d; cin >> a >> b >> c >> d; double ha, hb; ha = a; hb = c; int num1, num2; num1 = ceil(hb / b); num2 = ceil(ha / d); ...
[["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13]]
1
144
import math a,b,c,d = map(int,input().split()) if math.ceil(c//b) > math.ceil(a//d): print("No") else: print("Yes")
import math a,b,c,d = map(int,input().split()) if math.ceil(c/b) > math.ceil(a/d): print("No") else: print("Yes")
[["-", 15, 666, 0, 652, 3, 4, 0, 657, 17, 676], ["+", 15, 666, 0, 652, 3, 4, 0, 657, 17, 85]]
5
55
#include <algorithm> #include <iostream> #include <math.h> #include <sstream> #include <stdio.h> #include <stdlib.h> #include <string> #include <string> #include <vector> using namespace std; using ll = long long; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int taka = (a - 1) / c; int ao = (d - 1) / b...
#include <algorithm> #include <iostream> #include <math.h> #include <sstream> #include <stdio.h> #include <stdlib.h> #include <string> #include <string> #include <vector> using namespace std; using ll = long long; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int taka = (a - 1) / d; int ao = (c - 1) / b...
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["-", 49, 50, 51, 16, 31, 23, 0, 16, 31, 22], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 31, 22]]
1
102
# encoding="UTF-8" A,B,C,D = map(int,input().split()) i=0 while i == 0: C -= B if C <= 0: print("Yes") break A -= D if A <= 0: print("NO") break
# encoding="UTF-8" A,B,C,D = map(int,input().split()) i=0 while i == 0: C -= B if C <= 0: print("Yes") break A -= D if A <= 0: print("No") break
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
59
#include <iostream> using namespace std; int main() { int A, B, C, D, E, F; cin >> A >> B >> C >> D; E = 0; F = 0; while (C > 0) { E += 1; C -= B; } while (A > 0) { F += 1; A -= D; } if (E > F) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <iostream> using namespace std; int main() { int A, B, C, D, E, F; cin >> A >> B >> C >> D; E = 0; F = 0; while (C > 0) { E += 1; C -= B; } while (A > 0) { F += 1; A -= D; } if (F >= E) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
101
using namespace std; #include <bits/stdc++.h> int main() { int A, B, C, D; cin >> A >> B >> C >> D; while (true) { C -= B; if (C < 0) { cout << "Yes" << endl; return 0; } A -= D; if (A < 0) { cout << "No" << endl; return 0; } } }
using namespace std; #include <bits/stdc++.h> int main() { int A, B, C, D; cin >> A >> B >> C >> D; while (true) { C -= B; if (C <= 0) { cout << "Yes" << endl; return 0; } A -= D; if (A <= 0) { 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
83
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #define int long long #define vi vector<int> #define vec(x) vector<x> #define matrix vector<vector<int>> #define pii pair<int, int> #define repf(i, s, e) for (int i =...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; #define int long long #define vi vector<int> #define vec(x) vector<x> #define matrix vector<vector<int>> #define pii pair<int, int> #define repf(i, s, e) for (int i =...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
406
#include <bits/stdc++.h> // mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); //#pragma GCC optimize("Ofast") // 1.0 * clock() / CLOCKS_PER_SEC #define fi first #define se second #define ll long long #define dl double long using namespace std; const int NN = 1e3 + 7; const int N = 2e5 + 7; const ...
#include <bits/stdc++.h> // mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); //#pragma GCC optimize("Ofast") // 1.0 * clock() / CLOCKS_PER_SEC #define fi first #define se second #define ll long long #define dl double long using namespace std; const int NN = 1e3 + 7; const int N = 2e5 + 7; const ...
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
213
#include <iostream> using namespace std; int main() { int takahashi_a, takahashi_hp; int aoki_a, aoki_hp; int i = 0; cin >> takahashi_hp >> takahashi_a >> aoki_hp >> aoki_a; while ((takahashi_hp >= 0) and (aoki_hp >= 0)) { if (i % 2 == 0) aoki_hp = aoki_hp - takahashi_a; else takahashi_...
#include <iostream> using namespace std; int main() { int takahashi_a, takahashi_hp; int aoki_a, aoki_hp; int i = 0; cin >> takahashi_hp >> takahashi_a >> aoki_hp >> aoki_a; while ((takahashi_hp > 0) and (aoki_hp > 0)) { if (i % 2 == 0) { aoki_hp = aoki_hp - takahashi_a; // cout << "aoki" <...
[["-", 15, 339, 51, 16, 31, 23, 0, 16, 17, 20], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 47], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 20], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 47], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8,...
1
100
#include <bits/stdc++.h> using namespace std; int main() { int aa, ah, ba, bh; cin >> ah >> aa >> bh >> ba; int turn = 1; while (ah > 0 && bh > 0) { if (turn % 2 == 1) bh = bh - aa; else ah = ah - ba; turn++; } if (bh < 0) cout << "Yes" << endl; else cout << "No" << endl; ...
#include <bits/stdc++.h> using namespace std; int main() { int aa, ah, ba, bh; cin >> ah >> aa >> bh >> ba; int turn = 1; while (ah > 0 && bh > 0) { if (turn % 2 == 1) bh = bh - aa; else ah = ah - ba; turn++; } if (bh <= 0) cout << "Yes" << endl; else cout << "No" << endl;...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
95
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; int T = A / D, O = C / B; if (A % D > 0) T++; if (C % B > 0) O++; if (O >= T) cout << "No" << endl; else { cout << "Yes" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, D; cin >> A >> B >> C >> D; int T = A / D, O = C / B; if (A % D > 0) T++; if (C % B > 0) O++; if (T >= O) cout << "Yes" << endl; else { cout << "No" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0,...
1
91
#include <bits/stdc++.h> using namespace std; int ce(int a, int b) { return a / b + (a % b == 0 ? 0 : 1); } int main() { int a, b, c, d; cin >> a >> b >> c >> d; if (ce(c, b) >= ce(a, d)) cout << "Yes"; else cout << "No"; return 0; }
#include <bits/stdc++.h> using namespace std; int ce(int a, int b) { return a / b + (a % b == 0 ? 0 : 1); } int main() { int a, b, c, d; cin >> a >> b >> c >> d; if (ce(c, b) <= ce(a, d)) cout << "Yes"; else cout << "No"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
91
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // 整数の入力 int takahashi_hp = sc.nextInt(); // スペース区切りの整数の入力 int takahashi_att = sc.nextInt(); int aoki_hp = sc.nextInt(); int aoki_att = sc.nextInt(); while (true) { ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int takahashi_hp = sc.nextInt(); int takahashi_att = sc.nextInt(); int aoki_hp = sc.nextInt(); int aoki_att = sc.nextInt(); while (true) { aoki_hp -= takahashi_att; ...
[["-", 0, 52, 8, 196, 0, 1, 0, 11, 17, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 91, 17, 33], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 17, 110]]
3
131
a,b,c,d = map(int, input().split(' ')) t = (c+b-1)//b t2 = (a+d-1)//d if t >= t2: print('Yes') else: print('No')
a,b,c,d = map(int, input().split(' ')) t = (c+b-1)//b t2 = (a+d-1)//d if t <= t2: print('Yes') else: print('No')
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]]
5
64
#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; while (1 < a && 1 < c) { c -= b; a -= d; } string ans = "Yes"; if (a < 1) { ans = "No"; } cout << ans << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; while (1 < a && 1 < c) { c -= b; a -= d; } string ans = "Yes"; if (a < 1 && 1 <= c) { ans = "No"; } cout << ans << endl; return 0; }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]]
1
81
#include <bits/stdc++.h> using namespace std; // g++ -g -o yourexe yourfile.cpp //./yourexe < yourinput.in > youroutput.out #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> using namespace std; // g++ -g -o yourexe yourfile.cpp //./yourexe < yourinput.in > youroutput.out #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
155
#include <bits/stdc++.h> using namespace std; #define mp make_pair #define ll long long #define sc(n) \ int n; \ scanf("%d", &n); #define mod 10000007 #define N 100001 #define MX 1...
#include <bits/stdc++.h> using namespace std; #define mp make_pair #define ll long long #define sc(n) \ int n; \ scanf("%d", &n); #define mod 10000007 #define N 100001 #define MX 1...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
141
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int takahashi, aoki; if (c > b * (c % b)) takahashi = c % b + 1; else takahashi = c % b; if (a > d * (a % d)) aoki = a % d + 1; else aoki = a % d; if (takahashi <= aoki) cout << "Yes"...
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int takahashi, aoki; if (c > b * (c / b)) takahashi = c / b + 1; else takahashi = c / b; if (a > d * (a / d)) aoki = a / d + 1; else aoki = a / d; if (takahashi <= aoki) cout << "Yes"...
[["-", 51, 16, 12, 16, 12, 23, 0, 16, 17, 109], ["+", 51, 16, 12, 16, 12, 23, 0, 16, 17, 85], ["-", 64, 1, 0, 11, 12, 16, 31, 16, 17, 109], ["+", 64, 1, 0, 11, 12, 16, 31, 16, 17, 85], ["-", 75, 76, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 75, 76, 0, 1, 0, 11, 12, 16, 17, 85]]
1
113
a = list(map(int, input().rstrip().split())) A = a[0] B = a[1] C = a[2] D = a[3] while True: C -= B if C <= 0: print('yes') break A -= D if A <= 0: print('no') break
a = list(map(int, input().rstrip().split())) A = a[0] B = a[1] C = a[2] D = a[3] while True: C -= B if C <= 0: print('Yes') break A -= D if A <= 0: print('No') break
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
78
#include <bits/stdc++.h> typedef long long ll; using namespace std; int main() { ll a, b, c, d, w = 1, t = 0; cin >> a >> b >> c >> d; while (1) { if (t % 2 == 0) { c = c - b; if (c <= 0) break; } else { a = a - d; if (a <= 0) break; } t++; } if (t % 2 ...
#include <bits/stdc++.h> typedef long long ll; using namespace std; int main() { ll a, b, c, d, w = 1, t = 0; cin >> a >> b >> c >> d; while (1) { if (t % 2 == 0) { c = c - b; if (c <= 0) break; } else { a = a - d; if (a <= 0) break; } t++; } if (t % 2 ...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
126
import sys input = sys.stdin.readline # B - Battle def win_takahashi(A, B, C, D): for i in range(200): if i % 2 == 0: if B >= C: return True else: C -= B else: if D >= A: return False else: D -= A A, B, C, D = map(int, input().split()) if win_takahashi(A, B, C, D): print('Yes')...
import sys input = sys.stdin.readline # B - Battle def win_takahashi(A, B, C, D): for i in range(200): if i % 2 == 0: if B >= C: return True else: C -= B else: if D >= A: return False else: A -= D A, B, C, D = map(int, input().split()) if win_takahashi(A, B, C, D): print('Yes')...
[["-", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22], ["-", 75, 76, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 12, 22]]
5
109
import sys input = sys.stdin.readline # B - Battle def takahashi_win(): A, B, C, D = map(int, input().split()) i = 0 while True: if i % 2 == 0: if C-B <= 0: return True else: C -= B else: if A-D <= 0: return False else: D -= A i += 1 if takahashi_win(): print('Yes') else: p...
import sys input = sys.stdin.readline # B - Battle def takahashi_win(): A, B, C, D = map(int, input().split()) i = 0 while True: if i % 2 == 0: if C-B <= 0: return True else: C -= B else: if A-D <= 0: return False else: A -= D i += 1 if takahashi_win(): print('Yes') else: p...
[["-", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22], ["-", 75, 76, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 12, 22]]
5
100