buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
#define ll long long
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using P = pair<int, int>;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int ansa, ansb;
if (c % b == 0)
ansa = c / b;
else
ansa = c / b + 1;
if (a % d == 0)
ansb == a / d;
... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using P = pair<int, int>;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int ansa, ansb;
if (c % b == 0)
ansa = c / b;
else
ansa = c / b + 1;
if (a % d == 0)
ansb = a / d;
e... | [["-", 8, 9, 0, 57, 64, 1, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32]] | 1 | 126 |
import java.util.*;
// Compiler version JDK 11.0.2
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
while (a > 0 && c > 0) {
c = c - b;
a = ... | import java.util.*;
// Compiler version JDK 11.0.2
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
while (a > 0 && c > 0) {
c = c - b;
if (c... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 0, 52, 8, 196, 0, 57, 15, 15, 0, 24], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 12, 499], ["+", 0, 52, 8, 196, 0, 57, 15, 15, 0, 25]] | 3 | 125 |
#include <stdio.h>
int main() {
int a, b, c, d, i = 1;
scanf("%d%d%d%d", &a, &b, &c, &d);
while (1) {
if (i % 2 == 1) {
c = c - b;
if (c <= 0)
break;
} else {
a = a - d;
if (a <= 0)
break;
}
i++;
}
if (a <= 0)
printf("NO");
else
printf("YES");... | #include <stdio.h>
int main() {
int a, b, c, d, i = 1;
scanf("%d%d%d%d", &a, &b, &c, &d);
while (1) {
if (i % 2 == 1) {
c = c - b;
if (c <= 0)
break;
} else {
a = a - d;
if (a <= 0)
break;
}
i++;
}
if (a <= 0)
printf("No");
else
printf("Yes");... | [["-", 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 | 111 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int T_H, T_S;
int A_H, A_S;
// scanf("%d %d",&T_H,&T_S);
// scanf("%d %d",&A_H,&A_S);
cin >> T_H >> T_S >> A_H >> A_S;
while (T_H > 0) {
A_H = A_H - T_S;
if (A_H <= 0) {
printf("yes");
break;
}
T_H = T_H - A_S;... | #include <bits/stdc++.h>
using namespace std;
int main() {
int T_H, T_S;
int A_H, A_S;
// scanf("%d %d",&T_H,&T_S);
// scanf("%d %d",&A_H,&A_S);
cin >> T_H >> T_S >> A_H >> A_S;
while (T_H > 0) {
A_H = A_H - T_S;
if (A_H <= 0) {
printf("Yes");
break;
}
T_H = T_H - A_S;... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 91 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int n1 = (a + d - 1) / d, n2 = (b + c - 1) / b;
if (n1 <= n2) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int n1 = (a + d - 1) / d, n2 = (b + c - 1) / b;
if (n1 >= n2) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 83 |
def Sol(taka_health,taka_stregnth,aoki_health,aoki_stregnth):
if taka_health%aoki_stregnth != 0:
moves_taka = int(taka_health/aoki_stregnth) + 1
else:
moves_taka = int(taka_health/aoki_stregnth)
if aoki_health%taka_stregnth != 0:
moves_aoki =int(aoki_health/taka_stregnth) ... | def Sol(taka_health,taka_stregnth,aoki_health,aoki_stregnth):
if taka_health%aoki_stregnth != 0:
moves_taka = int(taka_health/aoki_stregnth) + 1
else:
moves_taka = int(taka_health/aoki_stregnth)
if aoki_health%taka_stregnth != 0:
moves_aoki =int(aoki_health/taka_stregnth) +... | [["-", 0, 662, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 22], ["-", 0, 14, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ... | 5 | 126 |
#include <stdio.h>
int main(void) {
int C, D;
int TAKA, AOKI;
scanf("%d %d %d %d", &TAKA, &C, &AOKI, &D);
while (TAKA > 0 && AOKI > 0) {
AOKI -= C;
TAKA -= D;
}
if (TAKA <= 0)
printf("No\n");
else
printf("Yes\n");
return 0;
} | #include <stdio.h>
int main(void) {
int C, D;
int TAKA, AOKI;
scanf("%d %d %d %d", &TAKA, &C, &AOKI, &D);
while (TAKA > 0 && AOKI > 0) {
AOKI -= C;
TAKA -= D;
}
if (AOKI <= 0)
printf("Yes\n");
else
printf("No\n");
return 0;
} | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["-", 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 | 84 |
#include <iostream>
using namespace std;
int main() {
int HT, ST, HA, SA;
cin >> HT >> ST >> HA >> SA;
int x = 1;
while (1) {
if (x == 1) {
HA = HA - ST;
if (HA <= 0) {
cout << "yes";
return 0;
}
x = 0;
} else if (x == 0) {
HT = HT - SA;
if (HT <= 0) ... | #include <iostream>
using namespace std;
int main() {
int HT, ST, HA, SA;
cin >> HT >> ST >> HA >> SA;
int x = 1;
while (1) {
if (x == 1) {
HA = HA - ST;
if (HA <= 0) {
cout << "Yes";
return 0;
}
x = 0;
} else if (x == 0) {
HT = HT - SA;
if (HT <= 0) ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 113 |
A, B, C, D = map(int, input().split())
ans = 0
for i in range(100):
C -= B
if B <= 0:
ans = 1
break
A -= D
if D <= 0:
break
if ans == 1:
print('Yes')
else:
print('No') | A, B, C, D = map(int, input().split())
ans = 0
for i in range(100):
C -= B
if C <= 0:
ans = 1
break
A -= D
if A <= 0:
break
if ans == 1:
print('Yes')
else:
print('No') | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 71 |
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
const int N = 100005;
const int MOD = 1e9 + 7;
// lower_bound - which does not compare less than val
// upper_bound - which compares greater than val
#define trace1(x) cerr << #x << ": " << x << endl
#define trace2(x, y) cerr << #x << ": " << x << " | " ... | #include <bits/stdc++.h>
using namespace std;
#define endl "\n"
const int N = 100005;
const int MOD = 1e9 + 7;
// lower_bound - which does not compare less than val
// upper_bound - which compares greater than val
#define trace1(x) cerr << #x << ": " << x << endl
#define trace2(x, y) cerr << #x << ": " << x << " | " ... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]] | 1 | 167 |
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = ceil(c / (b * 1.0));
int y = ceil(a / (d * 1.0));
// cout << x << y;
x <= y ? cout << "yes\n" : cout << "no\n";
return 0;
}
| #include <bits/stdc++.h>
#define ll long long
#define pb push_back
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = ceil(c / (b * 1.0));
int y = ceil(a / (d * 1.0));
// cout << x << y;
x <= y ? cout << "Yes\n" : cout << "No\n";
return 0;
}
| [["-", 0, 1, 0, 41, 64, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 41, 64, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 41, 75, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 41, 75, 16, 12, 5, 0, 6]] | 1 | 87 |
#include <iostream>
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;
cout << (y > x ? "Yes" : "No") << endl;
return 0;
}
| #include <iostream>
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;
cout << (y <= x ? "Yes" : "No") << endl;
return 0;
}
| [["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 47], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 19]] | 1 | 78 |
#!/usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import sys, random, itertools, math
sys.setrecursionlimit(10**5)
input = sys.stdin.readline
sqrt = math.sqrt
def LI(): return list(map(int, input().split()))
def LF(): return... | #!/usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import sys, random, itertools, math
sys.setrecursionlimit(10**5)
input = sys.stdin.readline
sqrt = math.sqrt
def LI(): return list(map(int, input().split()))
def LF(): return... | [["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 20], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 19]] | 5 | 371 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = ceil((float)a / d);
int y = ceil((float)c / b);
cout << (x >= y ? "yes" : "no");
}
| #include <cmath>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = ceil((float)a / d);
int y = ceil((float)c / b);
cout << (x >= y ? "Yes" : "No");
}
| [["-", 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 | 75 |
A, B, C, D = map(int, input().split())
T_time = C // B
if not C % B == 0 :
T_time += 1
A_time = A // D
if not A % D == 0 :
T_time += 1
if T_time <= A_time :
print("Yes")
else :
print("No") | A, B, C, D = map(int, input().split())
T_time = C // B
if not C % B == 0 :
T_time += 1
A_time = A // D
if not A % D == 0 :
A_time += 1
if T_time <= A_time :
print("Yes")
else :
print("No") | [["-", 0, 57, 64, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 31, 22]] | 5 | 71 |
#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 = (B + C - 1) / 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 = (B + C - 1) / B;
if (X >= Y)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 80 |
#include <stdio.h>
int main(void) {
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
int x = (A + D - 1) / D;
int y = (C - B - 1) / B;
if (x >= y) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
int x = (A + D - 1) / D;
int y = (C + B - 1) / B;
if (x >= y) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 51, 16, 31, 23, 0, 16, 31, 16, 17, 33], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 17, 72]] | 0 | 93 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
#define vi vector<int>
#define vl vaector<long>
#define vll vector<long long int>
#define vC vector<char>
#define FastIO \
ios::sync_with_std... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
#define vi vector<int>
#define vl vaector<long>
#define vll vector<long long int>
#define vC vector<char>
#define FastIO \
ios::sync_with_std... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 426 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c = c - b;
if (c <= 0)
a = a - d;
if (a <= 0)
break;
}
if (c <= 0)
cout << "Yes";
if (a <= 0)
cout << "No";
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c = c - b;
if (c <= 0)
break;
a = a - d;
if (a <= 0)
break;
}
if (c <= 0)
cout << "Yes";
if (a <= 0)
cout << "No";
return 0;
} | [["+", 0, 52, 8, 9, 0, 57, 64, 93, 0, 94], ["+", 0, 52, 8, 9, 0, 57, 64, 93, 0, 35]] | 1 | 90 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, i = 0;
cin >> a >> b >> c >> d;
while ((a > 0) && (c > 0)) {
if (i % 2 == 0)
c -= b;
else
a -= d;
}
if (c <= 0)
cout << "Yes";
else
cout << "No";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, i = 0;
cin >> a >> b >> c >> d;
while ((a > 0) && (c > 0)) {
if (i % 2 == 0)
c -= b;
else
a -= d;
i++;
}
if (c <= 0)
cout << "Yes";
else
cout << "No";
return 0;
}
| [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 29], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 90 |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int D = sc.nextInt();
int X = (B + C - 1) / B;
int Y = (A + D - 1) / ... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int D = sc.nextInt();
int X = (B + C - 1) / B;
int Y = (A + D - 1) / ... | [["-", 0, 492, 3, 4, 0, 510, 15, 16, 17, 20], ["+", 0, 492, 3, 4, 0, 510, 15, 16, 17, 19]] | 3 | 125 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c = b - c;
if (c <= 0) {
printf("Yes\n");
break;
}
a -= d;
if (a <= 0) {
printf("No\n");
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) {
printf("Yes\n");
break;
}
a -= d;
if (a <= 0) {
printf("No\n");
break;
}
}
return 0;
} | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 110], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 86 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define endl "\n"
#define fi first
#define sec second
#define pb push_back
#define test cout << "debuged\n";
#define INF ll(1e18)
#define MOD 1000000007
#define debug(x) cout << x << "\n";
#define pll pair<ll, ll>
#define mp make_pair
#define Mina... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define endl "\n"
#define fi first
#define sec second
#define pb push_back
#define test cout << "debuged\n";
#define INF ll(1e18)
#define MOD 1000000007
#define debug(x) cout << x << "\n";
#define pll pair<ll, ll>
#define mp make_pair
#define Mina... | [["-", 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 | 146 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
int z = 0;
if ((a + d - 1 / d) >= (c + b - 1 / b)) {
System.out.println("Yes")... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
int z = 0;
if ((a + d - 1) / d >= (c + b - 1) / b) {
System.out.println("Yes")... | [["+", 15, 15, 0, 16, 31, 16, 31, 23, 0, 25], ["-", 0, 57, 15, 15, 0, 16, 31, 23, 0, 25], ["+", 15, 15, 0, 16, 12, 16, 31, 23, 0, 25], ["-", 0, 57, 15, 15, 0, 16, 12, 23, 0, 25]] | 3 | 125 |
#define _USE_MATH_DEFINES
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <clocale>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <ioman... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <clocale>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <ioman... | [["-", 0, 43, 49, 50, 51, 4, 0, 16, 12, 22], ["+", 0, 43, 49, 50, 51, 4, 0, 16, 12, 22]] | 1 | 263 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0) {
c -= b;
a -= d;
}
// cout<<a<<" "<<c;
if (c > 0) {
cout << "Yes";
} else {
cout << "No" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0) {
c -= b;
a -= d;
}
// cout<<a<<" "<<c;
if (c > 0) {
cout << "No";
} else {
cout << "Yes" << endl;
}
return 0;
}
| [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 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 | 76 |
#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)
break;
a -= d;
if (a <= 0)
break;
}
if (a)
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;
while (1) {
c -= b;
if (c <= 0)
break;
a -= d;
if (a <= 0)
break;
}
if (a > 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 85 |
a, b, c, d = gets.split.map(&:to_i)
loop{
s = (
if (c -= b) <= 0
'No'
elsif (a -= d) <= 0
'Yes'
end)
unless s.nil?
puts s
break
end
} | a, b, c, d = gets.split.map(&:to_i)
loop{
s = (
if (c -= b) <= 0
'Yes'
elsif (a -= d) <= 0
'No'
end)
unless s.nil?
puts s
break
end
} | [["-", 12, 739, 0, 121, 64, 749, 0, 557, 0, 6], ["+", 12, 739, 0, 121, 64, 749, 0, 557, 0, 6], ["-", 0, 121, 75, 759, 64, 749, 0, 557, 0, 6], ["+", 0, 121, 75, 759, 64, 749, 0, 557, 0, 6]] | 4 | 55 |
def main():
A, B, C, D = map(int, input().split())
attack_count_A = C // B
if C % B > 0:
attack_count_A += 1
attack_count_B = A // D
if A % D > 0:
attack_count_B += 1
if attack_count_A >= attack_count_B:
print('{}'.format('Yes'))
else:
print('{}'.format... | def main():
A, B, C, D = map(int, input().split())
attack_count_A = C // B
if C % B > 0:
attack_count_A += 1
attack_count_B = A // D
if A % D > 0:
attack_count_B += 1
if attack_count_B >= attack_count_A:
print('{}'.format('Yes'))
else:
print('{}'.format... | [["-", 0, 14, 8, 196, 0, 57, 15, 666, 0, 22], ["-", 0, 14, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 98 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
int main(void) {
cout << fixed << setprecision(16);
cin.tie(0);
ios::sync_with_stdio(false);
ll a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
c -= b;
a -= d;
}
if (b <= 0)
cout << "Yes" << endl;
else... | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
int main(void) {
cout << fixed << setprecision(16);
cin.tie(0);
ios::sync_with_stdio(false);
ll a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
c -= b;
a -= d;
}
if (c <= 0)
cout << "Yes" << endl;
else... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 105 |
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
long long int a, b, c, d, e, h, i, j, k = 1, temp, n, x, y, m, z;
cin >> a >> b >> c >> d;
x = (a + d - 1) / d;
y = (c + d - 1) / b;
if (x >= y)
cout << "Yes" << endl;
else
cout << "No... |
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
long long int a, b, c, d, e, h, i, j, k = 1, temp, n, x, y, m, z;
cin >> a >> b >> c >> d;
x = (a + d - 1) / d;
y = (c + b - 1) / b;
if (x >= y)
cout << "Yes" << endl;
else
cout << "No... | [["-", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22]] | 1 | 110 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int e = (a + d - 1) / d;
int f = (c + b - 1) / b;
if (a >= f) {
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 e = (a + d - 1) / d;
int f = (c + b - 1) / b;
if (e >= f) {
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, 31, 22]] | 1 | 84 |
import math
P = list(map(int,input().split()))
A = P[0]
B = P[1]
C = P[2]
D = P[3]
p = math.ceil(C/B)
q = math.ceil(A/D)
if p == q:
print('Yes')
else:
print('No')
| import math
P = list(map(int,input().split()))
A = P[0]
B = P[1]
C = P[2]
D = P[3]
p = math.ceil(C/B)
q = math.ceil(A/D)
if p <= q:
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]] | 5 | 82 |
#include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define endl "\n"
#define ll long long
#define sz(s) (int)(s.size())
#define INF 0x3f3f3f3f3f3f3f3fLL
#define all(v) v.begin(), v.end()
#define watch(x) cout << (#x) << " = " << x << endl
const int dr[]{-1, -1, 0, 1, 1, 1, 0... | #include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define endl "\n"
#define ll long long
#define sz(s) (int)(s.size())
#define INF 0x3f3f3f3f3f3f3f3fLL
#define all(v) v.begin(), v.end()
#define watch(x) cout << (#x) << " = " << x << endl
const int dr[]{-1, -1, 0, 1, 1, 1, 0... | [["-", 0, 16, 12, 23, 0, 41, 15, 16, 17, 19], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 47]] | 1 | 279 |
/**
* code generated by JHelper
* More info: https://github.com/AlexeyDmitriev/JHelper
* @author Kein Yukiyoshi
*/
#include "bits/stdc++.h"
#define int long long
#define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(obj) begin(obj), end(obj)... | /**
* code generated by JHelper
* More info: https://github.com/AlexeyDmitriev/JHelper
* @author Kein Yukiyoshi
*/
#include "bits/stdc++.h"
#define int long long
#define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(obj) begin(obj), end(obj)... | [["-", 31, 2, 3, 4, 0, 16, 12, 74, 51, 22], ["+", 31, 2, 3, 4, 0, 16, 12, 74, 51, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 23, 0, 24], ["+", 51, 16, 12, 23, 0, 2, 3, 4, 0, 25]] | 1 | 379 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, s, n) for (int i = (int)s; i < (int)n; i++)
#define ll long long
#define ld long double
#define pb push_back
#define eb emplace_back
#define All(x) x.begin(), x.end()
#define Range(x, i, j) x.begin() + i, x.begin() + j
#define lbidx(x, y) lower_bound(x.begin... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, s, n) for (int i = (int)s; i < (int)n; i++)
#define ll long long
#define ld long double
#define pb push_back
#define eb emplace_back
#define All(x) x.begin(), x.end()
#define Range(x, i, j) x.begin() + i, x.begin() + j
#define lbidx(x, y) lower_bound(x.begin... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 521 |
#include <iostream>
using namespace std;
int main(void) {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (true) {
C -= B;
if (C <= 0) {
cout << "Yes" << endl;
break;
}
A -= D;
if (A <= 0) {
cout << "Yes" << endl;
break;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (true) {
C -= B;
if (C <= 0) {
cout << "Yes" << endl;
break;
}
A -= D;
if (A <= 0) {
cout << "No" << endl;
break;
}
}
return 0;
}
| [["-", 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>
using namespace std;
int main() {
int A, B, C, D;
int S;
int T;
cin >> A >> B >> C >> D;
S = A;
T = B;
while (S > 0 && T > 0) {
T -= B;
if (T > 0) {
S -= D;
}
}
if (S > 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
int S, T;
cin >> A >> B >> C >> D;
S = A;
T = C;
while (S > 0 && T > 0) {
T -= B;
if (T > 0)
S -= D;
}
if (S > 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["-", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 96 |
t, k, c, d = (int(x) for x in input().split())
while (t >= 0 or c >= 0):
c = c - k
if c <= 0:
print("Yes")
break
t = t - d
if a <= 0:
print("No")
break | t, k, c, d = (int(x) for x in input().split())
while (t >= 0 or c >= 0):
c = c - k
if c <= 0:
print("Yes")
break
t = t - d
if t <= 0:
print("No")
break | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 69 |
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
usi... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
usi... | [["-", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 770 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int h1, s1, h2, s2;
cin >> h1 >> s1 >> h2 >> s2;
int n1, n2;
if (h1 % s2 != 0)
n1 = (h1 / s2) + 1;
else
n1 = (h1 / s2);
if (h2 % s1 != 0)
n2 = (h2 / s1) + 1;
else
n2 = (h2 / s1);
if (n1 >= n2)
cout << "yes" << endl;
els... | #include <bits/stdc++.h>
using namespace std;
int main() {
int h1, s1, h2, s2;
cin >> h1 >> s1 >> h2 >> s2;
int n1, n2;
if (h1 % s2 != 0)
n1 = (h1 / s2) + 1;
else
n1 = (h1 / s2);
if (h2 % s1 != 0)
n2 = (h2 / s1) + 1;
else
n2 = (h2 / s1);
if (n1 >= n2)
cout << "Yes" << endl;
els... | [["-", 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 | 116 |
A,B,C,D = map(int, input().split())
T=0
A=0
while C-B>0:
C-=B
T+=1
while A-D>0:
A-=D
A+=1
print("Yes") if A>=T else print("No") | A,B,C,D = map(int, input().split())
Takahashi=0
Aoki=0
while C-B>0:
C-=B
Takahashi+=1
while A-D>0:
A-=D
Aoki+=1
print("Yes") if Aoki>=Takahashi else print("No") | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["-", 0, 656, 0, 1, 0, 41, 0, 666, 0, 22], ["+", 0, 656, 0, 1, 0, 41, 0, 666, 0, 22]] | 5 | 69 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <numeric>
#include <string>
#include <utility>
#include <vector>
#define ll long long int
#define ss string
#define endl "\n"
using namespace std;
int main() {
int a, b, c, d, x, y;
cin >> a >> b >> c >> ... | #include <algorithm>
#include <bits/stdc++.h>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <numeric>
#include <string>
#include <utility>
#include <vector>
#define ll long long int
#define ss string
#define endl "\n"
using namespace std;
int main() {
int a, b, c, d, x, y;
cin >> a >> b >> c >> ... | [["-", 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 | 128 |
A,B,C,D=map(int,input().split())
for i in range(0,99):
C=C-B
if C<=0:
print('Yes')
else:
A=A-D
if A<=0:
print('No')
break
| A,B,C,D=map(int,input().split())
for i in range(0,100):
C=C-B
if C<=0:
print('Yes')
break
else:
A=A-D
if A<=0:
print('No')
break
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 65 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pi;
typedef vector<ll> vi;
typedef vector<pi> vpi;
#define f first
#define s second
#define FOR(i, s, e) for (ll i = s; i <= ll(e); ++i)
#define DEC(i, s, e) for (ll i = s; i >= ll(e); --i)
#define pb push_back
#define all(x) (x).... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pi;
typedef vector<ll> vi;
typedef vector<pi> vpi;
#define f first
#define s second
#define FOR(i, s, e) for (ll i = s; i <= ll(e); ++i)
#define DEC(i, s, e) for (ll i = s; i >= ll(e); --i)
#define pb push_back
#define all(x) (x).... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 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 | 172 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = 0;
int y = 0;
x = c / b;
y = a / d;
if (c < b) {
x = 1;
}
if (a < d) {
y = 1;
}
if (c >= b) {
if (c % b != 0) {
x = x + 1;
}
}
if (a >= d) {
if (a % d !... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = 0;
int y = 0;
x = c / b;
y = a / d;
if (c < b) {
x = 1;
}
if (a < d) {
y = 1;
}
if (c >= b) {
if (c % b > 0) {
x = x + 1;
}
}
if (a >= d) {
if (a % d > ... | [["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 152 |
# -*- coding: utf-8 -*-
A,B,C,D = list(map(int, input().rstrip().split()))
#-----
flag = 1
while A>0 and C>0:
if flag == 1:
C -= B
else:
A -= D
flag = flag * (-1)
print( "Yes" if C == 0 else "No")
| # -*- coding: utf-8 -*-
A,B,C,D = list(map(int, input().rstrip().split()))
#-----
flag = 1
while A>0 and C>0:
if flag == 1:
C -= B
else:
A -= D
flag = flag * (-1)
print( "Yes" if A > 0 else "No")
| [["-", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22], ["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 60], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 47]] | 5 | 76 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
int k = 1;
cin >> a >> b >> c >> d;
while (!(a <= 0) && !(c <= 0)) {
if (k % 2 == 0) {
a = a - d;
} else {
c = c - b;
}
k++;
}
if (a != 0)
cout << "Yes";
else
cout << "No";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
int k = 1;
cin >> a >> b >> c >> d;
while (!(a <= 0) && !(c <= 0)) {
if (k % 2 == 0) {
a = a - d;
} else {
c = c - b;
}
k++;
}
if (a > 0)
cout << "Yes";
else
cout << "No";
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 101 |
ts,th,os,oh=map(int,input().split())
while th>=1 and oh>=1:
oh=oh-ts
if oh>=1:
th=th-os
if th>=1:
print('Yes')
else:
print('No') | th,ts,oh,os=map(int,input().split())
while th>=1 and oh>=1:
oh=oh-ts
if oh>=1:
th=th-os
if th>=1:
print('Yes')
else:
print('No') | [["-", 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, 22], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21]] | 5 | 63 |
#include <iostream>
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)
break;
A -= D;
}
if (C <= 0) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | #include <iostream>
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)
break;
A -= D;
}
if (C <= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 86 |
class monster:
stamina = 0
attack= 0
def __init__(self,stamina,attack):
self.stamina = stamina
self.attack = attack
abcd = input().split()
abcd=[int(x) for x in abcd]
a = abcd[0]
b = abcd[1]
c = abcd[2]
d = abcd[3]
taka = monster(a,b)
aoki = monster(c,d)
while(1):
aoki.stamina = ao... | class monster:
stamina = 0
attack= 0
def __init__(self,stamina,attack):
self.stamina = stamina
self.attack = attack
abcd = input().split()
abcd=[int(x) for x in abcd]
a = abcd[0]
b = abcd[1]
c = abcd[2]
d = abcd[3]
taka = monster(a,b)
aoki = monster(c,d)
while(1):
# print(taka.stam... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 145 |
const Main = input => {
const sp = input.split(' ').map(e => Number(e));
const a = Math.ceil(sp[2] / sp[1]);
const b = Math.ceil(sp[0] / sp[3]);
const resultA = sp[0] - sp[3] * b;
const resultB = sp[2] - sp[1] * a;
console.log(a >= b ? 'Yes' : 'No');
};
Main(require('fs').readFileSync('/dev/stdin', 'utf... | const Main = input => {
const sp = input.split(' ').map(e => Number(e));
const a = Math.ceil(sp[2] / sp[1]);
const b = Math.ceil(sp[0] / sp[3]);
const resultA = sp[0] - sp[3] * b;
const resultB = sp[2] - sp[1] * a;
console.log(a <= b ? 'Yes' : 'No');
};
Main(require('fs').readFileSync('/dev/stdin', 'utf... | [["-", 0, 2, 3, 3, 0, 510, 15, 16, 17, 20], ["+", 0, 2, 3, 3, 0, 510, 15, 16, 17, 19]] | 2 | 136 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int E = A / D;
if (A % D != 0) {
E++;
}
int F = C / B;
if (C % D != 0) {
F++;
}
if (E < F) {
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 E = A / D;
if (A % D != 0) {
E++;
}
int F = C / B;
if (C % B != 0) {
F++;
}
if (E < F) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 98 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long int a, b, c, d, i; // 10 9 10 10
cin >> a >> b >> c >> d;
for (i = 1; i <= 100; i++) {
if (i % 2 != 0) {
c -= b;
if (c <= 0)
break;
} else {
a -= d;
if (a <= 0)
break;
}
}
// cout<<a<<c;
if (... | #include <bits/stdc++.h>
using namespace std;
int main() {
long int a, b, c, d, i; // 10 9 10 10
cin >> a >> b >> c >> d;
for (i = 1; i <= 100; i++) {
if (i % 2 != 0) {
c -= b;
if (c <= 0)
break;
} else {
a -= d;
if (a <= 0)
break;
}
}
// cout<<a<<c;
if (... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 118 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
d -= b;
if (d <= 0) {
cout << "yes" << endl;
return 0;
}
a -= c;
if (a <= 0) {
cout << "no" << endl;
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" << endl;
return 0;
}
a -= d;
if (a <= 0) {
cout << "No" << endl;
return 0;
}
}
}
| [["-", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 9, 0, 1,... | 1 | 83 |
#include <bits/stdc++.h>
using namespace std;
#define fio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define itc \
int t; ... | #include <bits/stdc++.h>
using namespace std;
#define fio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define itc \
int t; ... | [["-", 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]] | 1 | 190 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < (ll)n; i++)
#define all(x) (x).begin(), (x).end()
#define unique(x) x.erase(unique(x.begin(), x.end()), x.end());
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int a = 0, b = 0;
a = (C + B - 1) / ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < (ll)n; i++)
#define all(x) (x).begin(), (x).end()
#define unique(x) x.erase(unique(x.begin(), x.end()), x.end());
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int a = 0, b = 0;
a = (C + B - 1) / ... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 116 |
#include <bits/stdc++.h>
#define pb push_back
#define ff first
#define ss second
#define N 100005
#define inf 1000000009
#define ll long long
#define all(a) a.begin(), a.end()
#define mid(a, b) (a + b) / 2
#define pii pair<int, int>
using namespace std;
int a, b, c, d, now;
int main() {
cin >> a >> b >> c >> d;
... | #include <bits/stdc++.h>
#define pb push_back
#define ff first
#define ss second
#define N 100005
#define inf 1000000009
#define ll long long
#define all(a) a.begin(), a.end()
#define mid(a, b) (a + b) / 2
#define pii pair<int, int>
using namespace std;
int a, b, c, d, now;
int main() {
cin >> a >> b >> c >> d;
... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 354], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 355]] | 1 | 119 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A;
int B;
int C;
int D;
cin >> A;
cin >> B;
cin >> C;
cin >> D;
int X;
if (A % D == 0) {
X = A / D;
} else {
X = (A / D) + 1;
}
int Y;
if (C % B == 0) {
Y = C / B;
} else {
Y = (C / B) + 1;
}
if (X <= Y) {... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A;
int B;
int C;
int D;
cin >> A;
cin >> B;
cin >> C;
cin >> D;
int X;
if (A % D == 0) {
X = A / D;
} else {
X = (A / D) + 1;
}
int Y;
if (C % B == 0) {
Y = C / B;
} else {
Y = (C / B) + 1;
}
if (X < Y) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 131 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
// your code goes here
ios_base::sync_with_stdio(0);
cin.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
int turn = 1;
while (true) {
if (turn == 1) {
c -= b;
if (c <= 0)
break;
turn = 2;
} ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
// your code goes here
ios_base::sync_with_stdio(0);
cin.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
int turn = 1;
while (true) {
if (turn == 1) {
c -= b;
if (c <= 0)
break;
turn = 2;
} ... | [["-", 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>
#define ll long long
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int a = C / B;
int b = A / D;
if (C - a * B != 0) {
a = a + 1;
}
if (D - b * A != 0) {
b = b + 1;
}
if (a >= b) {
cout << "No" << endl;
} else {
cout << "Yes" ... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int a = C / B;
int b = A / D;
if (C - a * B != 0) {
a = a + 1;
}
if (A - b * D != 0) {
b = b + 1;
}
if (a > b) {
cout << "No" << endl;
} else {
cout << "Yes" <... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 111 |
package main
import (
"fmt"
)
type Monster struct {
Hp int
Atk int
}
func battle(o, d *Monster) {
d.Hp -= o.Atk
}
func main() {
t := new(Monster)
a := new(Monster)
fmt.Scanf("%d %d %d %d", &t.Hp, &t.Atk, &a.Hp, &a.Atk)
//fmt.Printf("t(%d:%d), a(%d:%d)", t.Hp, t.Atk, a.Hp, a.Atk)
... | package main
import (
"fmt"
)
type Monster struct {
Hp int
Atk int
}
func battle(o, d *Monster) {
d.Hp -= o.Atk
}
func main() {
t := new(Monster)
a := new(Monster)
fmt.Scanf("%d %d %d %d", &t.Hp, &t.Atk, &a.Hp, &a.Atk)
//fmt.Printf("t(%d:%d), a(%d:%d)... | [["-", 64, 196, 0, 1, 0, 2, 3, 4, 0, 429], ["-", 0, 1, 0, 2, 3, 4, 0, 429, 0, 44], ["+", 64, 196, 0, 1, 0, 2, 3, 4, 0, 429], ["+", 0, 1, 0, 2, 3, 4, 0, 429, 0, 44]] | 7 | 154 |
#include <iostream>
using namespace std;
int main() {
int A, B, C, D, a, b;
cin >> A >> B >> C >> D;
a = A / D + 1;
if (A % D == 0) {
a = A / D;
}
b = C / B + 1;
if (C % B == 0) {
b = C / B;
}
if (a < b) {
cout << "Yes" << endl;
} else if (a == b) {
cout << "Yes" << endl;
} else if... | #include <iostream>
using namespace std;
int main() {
int A, B, C, D, a, b;
cin >> A >> B >> C >> D;
a = A / D + 1;
if (A % D == 0) {
a = A / D;
}
b = C / B + 1;
if (C % B == 0) {
b = C / B;
}
if (a > b) {
cout << "Yes" << endl;
} else if (a == b) {
cout << "Yes" << endl;
} else if... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 136 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
int main(int argc, char *argv[]) {
int a, b, c, d;
int flg = 0;
cin >> a >> b >> c >> d;
while (1) {
c -= a;
if (c <= 0) {
flg = 1;
break;
}
a -= d;
if (a <= 0) {
flg = 2;
break;
}
}
i... | #include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
int main(int argc, char *argv[]) {
int a, b, c, d;
int flg = 0;
cin >> a >> b >> c >> d;
while (1) {
c -= b;
if (c <= 0) {
flg = 1;
break;
}
a -= d;
if (a <= 0) {
flg = 2;
break;
}
}
i... | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22]] | 1 | 120 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int i = 100;
int j = 100;
while (C <= 0) {
C = C - B;
i--;
}
while (A <= 0) {
A = A - D;
j--;
}
if (j <= i) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
retur... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int i = 100;
int j = 100;
while (C > 0) {
C = C - B;
i--;
}
while (A > 0) {
A = A - D;
j--;
}
if (j <= i) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return ... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 105 |
#include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
int flag = 1;
while (a > 0 && c > 0) {
if (flag == 1) {
c = c - b;
flag = 0;
} else {
a = a - d;
flag = 1;
}
}
if (a <= 0)
printf("No\n");
else if (b <= 0)
printf("Yes\n");
} | #include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
int flag = 1;
while (a > 0 && c > 0) {
if (flag == 1) {
c = c - b;
flag = 0;
} else {
a = a - d;
flag = 1;
}
}
if (a <= 0)
printf("No\n");
if (c <= 0)
printf("Yes\n");
} | [["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22]] | 0 | 113 |
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(void) {
cin.tie(0);
ios::sync_with_stdio(false);
int a, b, c, d;
cin >> a >> b >> c >> d;
for (;;) {
c -= b;
// cout << c << endl;
if (c < 1) {
cout << "yes" << endl;
return 0;
}
a -= d... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(void) {
cin.tie(0);
ios::sync_with_stdio(false);
int a, b, c, d;
cin >> a >> b >> c >> d;
for (;;) {
c -= b;
// cout << c << endl;
if (c < 1) {
cout << "Yes" << endl;
return 0;
}
a -= d... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 108 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, c, d;
cin >> a >> b >> c >> d;
int flag = 1;
while (a > 0 && c > 0) {
if (flag == 1) {
c = c - b;
flag = 0;
} else {
a = a - d;
flag = 1;
}
}
if (a <= 0) {
cout << "no" << endl;
} else {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, c, d;
cin >> a >> b >> c >> d;
int flag = 1;
while (a > 0 && c > 0) {
if (flag == 1) {
c = c - b;
flag = 0;
} else {
a = a - d;
flag = 1;
}
}
if (a <= 0) {
cout << "No" << endl;
} else {
... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 107 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int w = (c - 1) / b + 1;
int s = (a - 1) / d + 1;
if (w >= s)
cout << "Yes\n";
else
cout << "No\n";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int w = (c - 1) / b + 1;
int s = (a - 1) / d + 1;
if (w <= s)
cout << "Yes\n";
else
cout << "No\n";
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 81 |
#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) {
A -= D;
}
}
if (A > 0 && C <= 0) {
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;
while (A > 0 && C > 0) {
C -= B;
if (C > 0) {
A -= D;
}
}
if (A > 0 && C <= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 90 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (ceil(c / b) > ceil(a / d)) {
cout << "No";
} else {
cout << "Yes";
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
float a, b, c, d;
cin >> a >> b >> c >> d;
if (ceil(c / b) > ceil(a / d)) {
cout << "No";
} else {
cout << "Yes";
}
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 64 |
A, B, C, D = map(int, input().split())
flag == 100
while flag ==100:
C -= B
if flag==100 and C<=0:
flag = 0
A -= D
if flag==100 and A<=0:
flag = 1
if flag==0: print('Yes')
else: print('No') | A, B, C, D = map(int, input().split())
flag = 100
while flag ==100:
C -= B
if flag==100 and C<=0:
flag = 0
A -= D
if flag==100 and A<=0:
flag = 1
if flag==0: print('Yes')
else: print('No') | [["-", 36, 36, 0, 656, 0, 1, 0, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32]] | 5 | 77 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define mod 1000000007
#define w(t) \
int t; \
cin >> t; ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define mod 1000000007
#define w(t) \
int t; \
cin >> t; ... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 124 |
"use strict";
const main =
arg => {
const input = arg.trim().split('\n');
const arr = input.split(" ").map(Number);
let tLife = arr[0];
const tPower = arr[1];
let aLife = arr[2];
const aPower = arr[3];
let cnt = 0;
while ((tLife <= 0) || (aLife <= 0)) {
if... | "use strict";
const main =
arg => {
const input = arg.trim().split('\n');
const arr = input[0].split(" ").map(Number);
let tLife = arr[0];
const tPower = arr[1];
let aLife = arr[2];
const aPower = arr[3];
let cnt = 0;
while (!(tLife <= 0) && !(aLife <= 0)) {
... | [["+", 63, 558, 500, 2, 63, 558, 500, 69, 0, 70], ["+", 63, 558, 500, 2, 63, 558, 500, 69, 71, 555], ["+", 63, 558, 500, 2, 63, 558, 500, 69, 0, 73], ["+", 0, 52, 15, 23, 0, 16, 31, 91, 17, 111], ["-", 8, 556, 0, 52, 15, 23, 0, 16, 17, 106], ["+", 8, 556, 0, 52, 15, 23, 0, 16, 17, 98], ["+", 0, 52, 15, 23, 0, 16, 12, 9... | 2 | 173 |
A,B,C,D =input().split()
while(1):
C = int(C)-int(B)
if(int(C) <= 0):
print("yes")
break
A = int(A)-int(D)
if(int(A) <= 0):
print("no")
break
| A,B,C,D =input().split()
while(1):
C = int(C)-int(B)
if(int(C) <= 0):
print("Yes")
break
A = int(A)-int(D)
if(int(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 | 76 |
import math
a,b,c,d = map(int, input().split())
if(math.ceil(a//d) >= math.ceil(c//b)):
print('No')
else:
print('Yes')
| import math
a,b,c,d = map(int, input().split())
if(math.ceil(a/d) >= math.ceil(c/b)):
print('Yes')
else:
print('No')
| [["-", 0, 666, 0, 652, 3, 4, 0, 657, 17, 676], ["+", 0, 666, 0, 652, 3, 4, 0, 657, 17, 85], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 57 |
gets.split.map(&:to_i).then do |a, b, c, d|
while a > 0 && c > 0
c -= b
a -= d
end
puts c > 0 ? 'no' : 'yes'
end | gets.split.map(&:to_i).then do |a, b, c, d|
while a > 0 && c > 0
c -= b
a -= d
end
puts c > 0 ? 'No' : 'Yes'
end | [["-", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6]] | 4 | 49 |
#include <iostream>
using namespace std;
int main(void) {
int a, b, c, d, i, j;
cin >> a >> b >> c >> d;
for (i = 0; a > 0; i++) {
a = a - b;
}
for (j = 0; c > 0; j++) {
c = c - d;
}
if (i > j) {
cout << "No" << endl;
} else if (j > i) {
cout << "Yes" << endl;
} else if (i == j) {
... | #include <iostream>
using namespace std;
int main(void) {
int a, b, c, d, i, j;
cin >> a >> b >> c >> d;
for (i = 0; c > 0; i++) {
c = c - b;
}
for (j = 0; a > 0; j++) {
a = a - d;
}
if (i > j) {
cout << "No" << endl;
} else if (j > i) {
cout << "Yes" << endl;
} else if (i == j) {
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22]] | 1 | 131 |
A,B,C,D = map(int, input().split())
S = 0
while S != 1:
C = C - B
A = A - D
if C <= 0:
S = 1
print("No")
elif A <= 0:
S = 1
print("Yes")
else:
continue | A,B,C,D = map(int, input().split())
S = 0
while S != 1:
C = C - B
A = A - D
if C <= 0:
S = 1
print("Yes")
elif A <= 0:
S = 1
print("No")
else:
continue | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 69 |
import java.util.*;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt(), d = sc.nextInt();
int x = a / d + aa(a % d), y = c / b + aa(c % d);
if (x <= y) {
pl("Yes");
} else {
pl("No");
}... | import java.util.*;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt(), d = sc.nextInt();
int x = a / d + aa(a % d), y = c / b + aa(c % b);
if (x >= y) {
pl("Yes");
} else {
pl("No");
}... | [["-", 51, 16, 12, 492, 3, 4, 0, 16, 12, 22], ["+", 51, 16, 12, 492, 3, 4, 0, 16, 12, 22], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20]] | 3 | 181 |
a,b,c,d = map(int, input().split())
for i in range(1,1000):
if i%2 ==1:
c =c-b
if c ==0:
print("Yes")
exit()
else:
a = a-d
if a ==0:
print("No")
exit() | a,b,c,d = map(int, input().split())
for i in range(1,1000):
if i%2 ==1:
c =c-b
if c <=0:
print("Yes")
exit()
else:
a = a-d
if a <=0:
print("No")
exit() | [["-", 0, 57, 64, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 667, 19], ["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 77 |
HP_t, ATT_t, HP_a, ATT_a = gets.split
tHP = HP_t.to_i
tATT = ATT_t.to_i
aHP = HP_a.to_i
aATT = ATT_a.to_i
while(aHP >= 0 || tHP >= 0)
aHP = aHP - tATT
if(aHP <=0)
p 'Yes'
break
end
tHP = tHP - aATT
if(tHP <=0)
p 'No'
break
end
end | HP_t, ATT_t, HP_a, ATT_a = gets.split
tHP = HP_t.to_i
tATT = ATT_t.to_i
aHP = HP_a.to_i
aATT = ATT_a.to_i
while(aHP >= 0 || tHP >= 0)
aHP = aHP - tATT
if(aHP <=0)
print 'Yes'
break
end
tHP = tHP - aATT
if(tHP <=0)
print 'No'
break
end
end | [["-", 8, 170, 0, 121, 64, 749, 0, 652, 735, 22], ["+", 8, 170, 0, 121, 64, 749, 0, 652, 735, 22]] | 4 | 76 |
#include <iostream>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int ct1, ct2, ct3, ct4, ct5, ct6;
ct1 = A / D;
ct2 = C / B;
ct3 = A % D;
ct4 = C % B;
if (ct3) {
ct3 = 1;
}
if (ct4) {
ct4 = 1;
}
ct5 = ct1 + ct3;
ct6 = ct2 + ct4;
/*
while(A>0){
A... | #include <iostream>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int ct1, ct2, ct3, ct4, ct5, ct6;
ct1 = A / D;
ct2 = C / B;
ct3 = A % D;
ct4 = C % B;
if (ct3 > 0) {
ct3 = 1;
}
if (ct4 > 0) {
ct4 = 1;
}
ct5 = ct1 + ct3;
ct6 = ct2 + ct4;
/*
while(A>0){... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["-", 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 | 128 |
a , b , c , d = input().split()
a = int(a)
b = int(b)
c = int(c)
d = int(d)
a_hp = a
b_hp = c
result = ""
while True :
b_hp-= b
if b_hp <= 0 :
result ="Yse"
break
a_hp -= d
if a_hp <= 0 :
result = "No"
break
print(result) | a , b , c , d = input().split()
a = int(a)
b = int(b)
c = int(c)
d = int(d)
a_hp = a
b_hp = c
result = ""
while True :
b_hp -= b
if b_hp <= 0 :
result ="Yes"
break
a_hp -= d
if a_hp <= 0 :
result = "No"
break
print(result) | [["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 84 |
#include <stdio.h>
int main(void) {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (a > 0 && c > 0) {
c -= b;
if (c == 0)
break;
a -= d;
}
printf(a > c ? "Yes" : "No");
puts("");
return 0;
}
| #include <stdio.h>
int main(void) {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (a > 0 && c > 0) {
c -= b;
if (c <= 0)
break;
a -= d;
}
printf(a > c ? "Yes" : "No");
puts("");
return 0;
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 89 |
"use strict";
function main(input) {
let a = 0;
let b = 0;
let c = 0;
let d = 0;
[a, b, c, d] = input[0].trim().split(" ").map(i => parseInt(i));
let ta = floor(a / d) + ((a % d === 0) ? 0 : 1);
let tb = floor(c / b) + ((c % b === 0) ? 0 : 1);
console.log((ta < tb) ? "No" : "Yes");
}
main(require('fs'... | "use strict";
function main(input) {
let a = 0;
let b = 0;
let c = 0;
let d = 0;
[a, b, c, d] = input[0].trim().split(" ").map(i => parseInt(i));
let ta = Math.floor(a / d) + ((a % d === 0) ? 0 : 1);
let tb = Math.floor(c / b) + ((c % b === 0) ? 0 : 1);
console.log((ta < tb) ? "No" : "Yes");
}
main(re... | [["+", 0, 200, 51, 16, 31, 2, 63, 558, 500, 22], ["+", 0, 200, 51, 16, 31, 2, 63, 558, 0, 131]] | 2 | 166 |
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 1; i < 100; ++i) {
if (a % 2 == 1) {
c = c - b;
} else {
a = a - d;
}
if (c <= 0) {
cout << "Yes" << endl;
break;
} else if (a <= 0) {
... | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 1; i < 1000; ++i) {
if (i % 2 == 1) {
c = c - b;
} else {
a = a - d;
}
if (c < 1) {
cout << "Yes" << endl;
break;
} else if (a < 1) {
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", ... | 1 | 117 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int a_health, a_power, b_health, b_power;
cin >> a_health >> a_power >> b_health >> b_power;
int shots_atodie = 0;
int shots_btodie = 0;
if (a_health % b_power == 0) {
shots_atodie = a_health / b_power;
} else {
shots... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int a_health, a_power, b_health, b_power;
cin >> a_health >> a_power >> b_health >> b_power;
int shots_atodie = 0;
int shots_btodie = 0;
if (a_health % b_power == 0) {
shots_atodie = a_health / b_power;
} else {
shots... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 123 |
a,b,c,d=map(int,input().split())
x=0
while(True):
if x%2==0:
if c-b>0:
c=c-b
elif(c-b<=0):
print("yes")
break
x+=1
else:
if a-d>0:
a=a-d
else:
print("no")
break
x+=1
| a,b,c,d=map(int,input().split())
x=0
while(True):
if x%2==0:
if c-b>0:
c=c-b
elif(c-b<=0):
print("Yes")
break
x+=1
else:
if a-d>0:
a=a-d
else:
print("No")
break
x+=1
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 92 |
THP,TAT,AHP,AAT = map(int,input().split())
while THP and AHP > 0 :
AHP -= TAT
THP -= AAT
if THP <= 0 and AHP > 0 :
print("No")
elif AHP <= 0 and THP > 0 :
print("Yes")
else:
print("No") | THP,TAT,AHP,AAT = map(int,input().split())
while THP > 0 and AHP > 0 :
AHP -= TAT
THP -= AAT
if THP <= 0 and AHP > 0 :
print("No")
elif AHP <= 0 and THP > 0 :
print("Yes")
else:
print("Yes") | [["+", 0, 656, 0, 52, 15, 679, 31, 666, 667, 47], ["+", 0, 656, 0, 52, 15, 679, 31, 666, 0, 612], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 71 |
a, b, c, d = map(int, input().split())
def battle(hp, pw):
count = 0
while hp > 0:
hp -= pw
count += 1
return count-1
taka_count = battle(a,d)
ao_count = battle(c,b)
if taka_count > ao_count:
print('Yes')
else:
print('No') | a, b, c, d = map(int, input().split())
def battle(hp, pw):
count = 0
while hp > 0:
hp -= pw
count += 1
return count-1
taka_count = battle(a,d)
ao_count = battle(c,b)
if taka_count >= ao_count:
print('Yes')
else:
print('No') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]] | 5 | 81 |
A,B,C,D=map(int,input().split())
for i in range(max(C//B,A//D)):
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())
for i in range(max(C//B+1,A//D+1)):
C=C-B
if C<=0:
print("Yes")
break
A=A-D
if A<=0:
print("No")
break
| [["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 71 |
import math
A,B,C,D = map(int,input().split())
X = math.ceil(C//B)
Y = math.ceil(A//D)
if X <= Y:
print("Yes")
else:
print("No")
| import math
A,B,C,D = map(int,input().split())
X = math.ceil(C/B)
Y = math.ceil(A/D)
if X <= Y:
print("Yes")
else:
print("No")
| [["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 676], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85]] | 5 | 61 |
#include <stdio.h>
int main() {
int a, b, c, d, fst, scd;
scanf("%d %d %d %d", &a, &b, &c, &d);
fst = (b + c - 1) / b;
scd = (a + d - 1) / d;
if (fst > scd)
printf("Yes");
else
printf("No");
} | #include <stdio.h>
int main() {
int a, b, c, d, fst, scd;
scanf("%d %d %d %d", &a, &b, &c, &d);
fst = (b + c - 1) / b;
scd = (a + d - 1) / d;
if (fst <= scd)
printf("Yes");
else
printf("No");
} | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 85 |
#include <iostream>
using namespace std;
int main() {
int thp, tatk, ahp, aatk;
cin >> thp;
cin >> tatk;
cin >> ahp;
cin >> aatk;
while ((thp <= 0) || (ahp <= 0)) {
//高橋くんの攻撃
ahp = ahp - tatk;
if (ahp <= 0) {
cout << "Yes" << endl;
return 0;
}
thp = thp - aatk;
if (thp... | #include <iostream>
using namespace std;
int main() {
int thp, tatk, ahp, aatk;
cin >> thp;
cin >> tatk;
cin >> ahp;
cin >> aatk;
/*cout<<thp<<endl;
cout<<tatk<<endl;
cout<<ahp<<endl;
cout<<aatk<<endl;*/
while ((thp >= 0) || (ahp >= 0)) {
//高橋くんの攻撃
ahp = ahp - tatk;
// cout<<"青木のhp"<<... | [["-", 15, 339, 51, 16, 31, 23, 0, 16, 17, 19], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 20], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 19], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 20]] | 1 | 104 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, it1 = 0, it2 = 0;
cin >> a >> b >> c >> d;
it1 = a / d;
it2 = c / b;
if (it1 >= it2) {
if ((a % d == 0) && it1 == it2 && (c % b != 0)) {
cout << "No";
return 0;
}
cout << "YES";
} else {
if ((it1 + 1) == ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, it1 = 0, it2 = 0;
cin >> a >> b >> c >> d;
it1 = a / d;
it2 = c / b;
if (it1 >= it2) {
if ((a % d == 0) && (it1 == it2) && (c % b != 0)) {
cout << "No";
return 0;
}
cout << "Yes";
} else {
if (((it1 + 1) ... | [["+", 15, 339, 51, 16, 31, 16, 12, 23, 0, 24], ["+", 15, 339, 51, 16, 31, 16, 12, 23, 0, 25], ["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 9, 0, 57, 15, 339, 0, 24], ["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 25]] | 1 | 147 |
// Author : amnptl
// Godbless
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define NeedForSpeed() \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | // Author : amnptl
// Godbless
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define NeedForSpeed() \
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 | 113 |
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define ll long long
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define pii pair<ll, ll>
#define vi vector<ll>
#define vii vector<pi... | #include <bits/stdc++.h>
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define ll long long
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define pii pair<ll, ll>
#define vi vector<ll>
#define vii vector<pi... | [["-", 0, 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 | 201 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c = c - b;
if (c <= 0) {
cout << "YES";
break;
}
a = a - d;
if (a <= 0) {
cout << "NO";
break;
}
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c = c - b;
if (c <= 0) {
cout << "Yes";
break;
}
a = a - d;
if (a <= 0) {
cout << "No";
break;
}
}
return 0;
} | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 84 |
import sys
a,b,c,d = map(int,input().split())
a_life = c-b
t_life = a-d
if a_life<=0:
print('Yes')
sys.exit()
elif t_life<=0:
print('No')
sys.exit()
while(a_life>0 or t_life>0):
a_life -= b
if a_life<=0:
print('Yes')
sys.exit()
t_life -= d
if t_life<=0:
print('No') | import sys
a,b,c,d = map(int,input().split())
a_life = c-b
t_life = a-d
if a_life<=0:
print('Yes')
sys.exit()
elif t_life<=0:
print('No')
sys.exit()
while(a_life>0 or t_life>0):
a_life -= b
if a_life<=0:
print('Yes')
sys.exit()
t_life -= d
if t_life<=0:
print('No')
sys.exit() | [["+", 64, 196, 0, 1, 0, 652, 63, 319, 500, 22], ["+", 64, 196, 0, 1, 0, 652, 63, 319, 0, 131], ["+", 64, 196, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 108 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.