buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
int f(int a, int hp) { return (hp / a - 1) / a; }
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (f(b, c) <= f(d, a))
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int f(int a, int hp) { return (hp + a - 1) / a; }
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (f(b, c) <= f(d, a)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 0, 16, 31, 23, 0, 16, 31, 16, 17, 85], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 89 |
#include <bits/stdc++.h>
using namespace std;
int f(int a, int hp) { return (hp / a - 1) / a; }
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (f(b, c) <= f(d, a))
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int f(int a, int hp) { return (hp + a - 1) / a; }
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (f(b, c) <= f(d, a))
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [["-", 0, 16, 31, 23, 0, 16, 31, 16, 17, 85], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 17, 72]] | 1 | 89 |
#include <iostream>
using namespace std;
int main() {
int th, ta, ah, aa;
cin >> th >> ta >> ah >> aa;
if (th / aa + (th % aa > 0) > ah / ta + (ah % ta > 0)) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int th, ta, ah, aa;
cin >> th >> ta >> ah >> aa;
if (th / aa + (th % aa > 0) < ah / ta + (ah % ta > 0)) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 78 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
#define fo(a, b) for (int a = 0; a < b; a++)
#define Sort(a) sort(a.begin(), a.end())
#define rev(a) reverse(a.begin(), a.end())
#define fi first
#define se second
#define sz size()
#define bgn begin()
#define en end()
#defin... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
#define fo(a, b) for (int a = 0; a < b; a++)
#define Sort(a) sort(a.begin(), a.end())
#define rev(a) reverse(a.begin(), a.end())
#define fi first
#define se second
#define sz size()
#define bgn begin()
#define en end()
#defin... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 3,191 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
int T1, T2;
cin >> A >> B >> C >> D;
T1 = 0;
T2 = 0;
while (A <= 0) {
A = A - D;
T2++;
}
while (C <= 0) {
C = C - B;
T1++; // takahashi turn
}
if (T2 >= T1 + 1) {
cout << "Yes" << endl;
} else {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
int T1, T2;
cin >> A >> B >> C >> D;
T1 = 0;
T2 = 0;
while (A > 0) {
A = A - D;
T2++;
}
while (C > 0) {
C = C - B;
T1++; // takahashi turn
}
if (T2 >= T1) {
cout << "Yes" << endl;
} else {
cout ... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 72], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 111 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int i, j;
i = (c + b - 1) / b;
j = (a + d - 1) / d;
if (i >= j)
printf("Yes");
else
printf("No");
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int i, j;
i = (c + b - 1) / b;
j = (a + d - 1) / d;
if (i <= j)
printf("Yes");
else
printf("No");
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 81 |
a, b, c, d = map(int,input().split())
while a >= 0:
c -= b
a -= d
if c <= 0:
print('Yes')
else:
print('No') | a, b, c, d = map(int,input().split())
while a > 0:
c -= b
a -= d
if c <= 0:
print('Yes')
else:
print('No') | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]] | 5 | 50 |
#include <bits/stdc++.h>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, d;
// cout << 10/9 + 1;
cin >> b >> a >> d >> c;
int at, ct;
if (d <= a) {
at = 1;
} else {
if (d % a == 0) {
at = d / a;
} else {
at = d / a + 1;
}
}
if (b <= c... | #include <bits/stdc++.h>
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, d;
// cout << 10/9 + 1;
cin >> b >> a >> d >> c;
int at, ct;
if (d <= a) {
at = 1;
} else {
if (d % a == 0) {
at = d / a;
} else {
at = d / a + 1;
}
}
if (b <= c... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["-", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22]] | 1 | 148 |
#include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (1) {
c = c - b;
if (c <= 0) {
printf("Yes\n");
break;
}
a = a - d;
if (a <= 0) {
printf("NO\n");
break;
}
}
return 0;
}
| #include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (1) {
c = c - b;
if (c <= 0) {
printf("Yes\n");
break;
}
a = a - d;
if (a <= 0) {
printf("No\n");
break;
}
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 93 |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int thp = sc.nextInt();
int tat = sc.nextInt();
int ahp = sc.nextInt();
int aat = sc.nextInt();
for (int i = 0; i < thp; i++) {
ahp -= tat;
if (ah... | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int thp = sc.nextInt();
int tat = sc.nextInt();
int ahp = sc.nextInt();
int aat = sc.nextInt();
for (int i = 0; i < 100; i++) {
ahp -= tat;
if (ah... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499]] | 3 | 139 |
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include ... | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include ... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 5,026 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
bool tak = 1;
while (a > 0 && c > 0) {
if (tak)
c -= b;
else
a -= d;
}
if (a <= 0)
cout << "No";
else
cout << "Yes";
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
bool tak = 1;
while (a > 0 && c > 0) {
if (tak)
c -= b;
else
a -= d;
tak = !tak;
}
if (a <= 0)
cout << "No";
else
cout << "Yes";
}
| [["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 91, 17, 111], ["+", 8, 9, 0, 1, 0, 11, 12, 91, 28, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 80 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
a -= d;
if (a <= 0) {
cout << "Yes" << endl;
break;
}
c -= b;
if (a <= 0) {
cout << "No" << endl;
break;
}
}
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
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;
}
}
}
| [["-", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 82 |
a_hp,a_at,b_hp,b_at = gets.chomp.split.map &:to_i
cnt = 1
a_flg = 0
b_flg = 0
while a_hp > 0 && b_hp > 0
b_hp -= a_at if cnt.odd?
a_hp -= b_at if cnt.even?
cnt += 1
# p "cnt: #{cnt},a,b: #{a_hp},#{b_hp}"
end
a_flg = 1 if b_hp <= 0
b_flg = 1 if a_hp <= 0
if a_flg
print 'Yes'
else
print 'No'
end | a_hp,a_at,b_hp,b_at = gets.chomp.split.map &:to_i
cnt = 1
a_flg = nil
b_flg = nil
while a_hp > 0 && b_hp > 0
b_hp -= a_at if cnt.odd?
a_hp -= b_at if cnt.even?
#p "cnt: #{cnt}, a: #{a_hp}, b: #{b_hp}"
cnt += 1
end
a_flg = 1 if b_hp <= 0
b_flg = 1 if a_hp <= 0
if a_flg
print 'Yes'
else
print 'No'
end | [["-", 36, 36, 36, 36, 0, 493, 0, 662, 12, 612], ["+", 36, 36, 0, 493, 0, 662, 12, 477, 0, 477]] | 4 | 79 |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int D = sc.nextInt();
int sw = 0;
while (A >= 0 && C >= 0) {
... | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int D = sc.nextInt();
int sw = 0;
while (A > 0 && C > 0) {
... | [["-", 0, 52, 15, 15, 0, 16, 31, 16, 17, 20], ["+", 0, 52, 15, 15, 0, 16, 31, 16, 17, 47], ["-", 0, 52, 15, 15, 0, 16, 12, 16, 17, 20], ["+", 0, 52, 15, 15, 0, 16, 12, 16, 17, 47]] | 3 | 169 |
A,B,C,D = map(int, input().split())
while True:
C = C - B
if C <= 0:
print("YES")
exit()
A = A - D
if A <= 0:
print("NO")
exit() | A,B,C,D = map(int, input().split())
while True:
C = C - B
if C <= 0:
print("Yes")
exit()
A = A - D
if A <= 0:
print("No")
exit() | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 61 |
import sys
A, B, C, D = list(map(int, input().split()))
while True:
C -= B
if C <= 0:
print("Yes")
sys.exit()
A -= D
if D <= 0:
print("No")
sys.exit() | import sys
A, B, C, D = list(map(int, input().split()))
while True:
C -= B
if C <= 0:
print("Yes")
sys.exit()
A -= D
if A <= 0:
print("No")
sys.exit() | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 66 |
a,b,c,d = map(int,input().split())
while True:
c=c-b
if c<=0:
print('Yes')
break
a=a-d
if a<=0:
print('No')
print(a)
break | a,b,c,d = map(int,input().split())
while True:
c=c-b
if c<=0:
print('Yes')
break
a=a-d
if a<=0:
print('No')
break | [["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 61 |
#include <iostream>
int main() {
int a, b, c, d;
std::cin >> a >> b >> c >> d;
int t_c, a_c;
t_c = (c + b - 1) / b;
a_c = (a + d - a) / d;
if (t_c <= a_c)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
return 0;
} | #include <iostream>
int main() {
int a, b, c, d;
std::cin >> a >> b >> c >> d;
int t_c, a_c;
t_c = (c + b - 1) / b;
a_c = (a + d - 1) / d;
if (t_c <= a_c)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
return 0;
}
| [["-", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13]] | 1 | 92 |
#include <bits/stdc++.h>
#define Vsort(a) sort(a.begin(), a.end())
#define Vreverse(a) reverse(a.bigin(), a.end())
#define Srep(n) for (int i = 0; i < (n); i++)
#define rep(i, n) for (int i = 0; i < (n); i++)
#define Lrep(i, a, n) for (int i = (a); i < (n); i++)
#define vi vector<int>
#define vi64 vector<int64_t>
#def... | #include <bits/stdc++.h>
#define Vsort(a) sort(a.begin(), a.end())
#define Vreverse(a) reverse(a.bigin(), a.end())
#define Srep(n) for (int i = 0; i < (n); i++)
#define rep(i, n) for (int i = 0; i < (n); i++)
#define Lrep(i, a, n) for (int i = (a); i < (n); i++)
#define vi vector<int>
#define vi64 vector<int64_t>
#def... | [["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 138 |
#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<ll, ll>;
using vi = vector<ll>;
using vv = vector<vi>;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int ta = (c + b - 1) / b;
int tb = (a + d - 1) / d;
if (ta >= tb)
... | #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<ll, ll>;
using vi = vector<ll>;
using vv = vector<vi>;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int ta = (c + b - 1) / b;
int tb = (a + d - 1) / d;
if (ta <= tb)
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 123 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int t_attack = (int)((double)d / (double)a + 0.9);
int a_attack = (int)((double)b / (double)c + 0.9);
if (t_attack > a_attack)
cout << "No";
else
cout << "Yes";
cout << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int t_attack = (int)((double)c / (double)b + 0.9);
int a_attack = (int)((double)a / (double)d + 0.9);
if (t_attack > a_attack)
cout << "No";
else
cout << "Yes";
cout << endl;
return 0;
} | [["-", 51, 23, 0, 16, 31, 16, 31, 74, 51, 22], ["+", 51, 23, 0, 16, 31, 16, 31, 74, 51, 22], ["-", 51, 23, 0, 16, 31, 16, 12, 74, 51, 22], ["+", 51, 23, 0, 16, 31, 16, 12, 74, 51, 22]] | 1 | 97 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
const int mod = 1000000007;
void solve() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
c = c - b;
if (c <= 0) {
cout << "No";
return;
}
a = a - d;
if ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
const int mod = 1000000007;
void solve() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
c = c - b;
if (c <= 0) {
cout << "Yes";
return;
}
a = a - d;
if... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 125 |
a, b, c, d = map(int, input().split())
i = 0
while a > 0 or c > 0:
if i % 2 == 0:
c -= b
else:
a -= d
i += 1
print("Yes" if a > 0 else "No") | a, b, c, d = map(int, input().split())
i = 0
while a > 0 and c > 0:
if i % 2 == 0:
c -= b
else:
a -= d
i += 1
print("Yes" if a > 0 else "No") | [["-", 36, 36, 0, 656, 0, 52, 15, 679, 17, 354], ["+", 36, 36, 0, 656, 0, 52, 15, 679, 17, 355]] | 5 | 64 |
#include <algorithm>
#include <functional>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string>
//#include <boost/integer/common_factor_rt.hpp> // gcd, lcm
//#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >>... | #include <algorithm>
#include <functional>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string>
//#include <boost/integer/common_factor_rt.hpp> // gcd, lcm
//#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >>... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 98 |
a,b,c,d = map(int, input().split())
i = 0
while True:
if i % 2 == 0:
c -= b
else:
a -= d
i += 1
if a <= 0:
print("Yes")
break
elif c <= 0:
print("No")
break
| a,b,c,d = map(int, input().split())
i = 0
while True:
if i % 2 == 0:
c -= b
else:
a -= d
i += 1
if a <= 0:
print("No")
break
elif c <= 0:
print("Yes")
break
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 68 |
import math
A, B, C, D = map(int, input().split())
t = math.ceil(C // B)
a = math.ceil(A // D)
print('Yes' if t <= a else 'No')
| import math
A, B, C, D = map(int, input().split())
t = math.ceil(C / B)
a = math.ceil(A / D)
print('Yes' if t <= a else 'No')
| [["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 676], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85]] | 5 | 56 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
a = (a + d - 1) / d;
c = (c + b - 1) / b;
if (a <= c)
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;
a = (a + d - 1) / d;
c = (c + b - 1) / b;
if (a >= c)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 81 |
A,B,C,D =map(int,input().split())
while True:
C -=B
if C<=0:
print('Yes')
break
D-=A
if B<=0:
print('No') | A,B,C,D =map(int,input().split())
while True:
C -=B
if C<=0:
print('Yes')
break
A-=D
if A<=0:
print('No')
break
| [["-", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 52 |
A, B, C, D = map(int, input().split())
# X=ceil(A/D)とY=ceil(C/B)を比較し、X<=Yなら勝ち、X>Yなら負け
X = (A+D-1) // D
Y = (C+B-1) // B
if X <= Y: print('Yes')
else: print('No')
| A, B, C, D = map(int, input().split())
# X=ceil(A/D)とY=ceil(C/B)を比較し、X>=Yなら勝ち、X<Yなら負け
X = (A+D-1) // D
Y = (C+B-1) // B
if X >= Y: print('Yes')
else: print('No') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]] | 5 | 62 |
a = input()
a = a.split()
b = int(a[1])
c = int(a[2])
d = int(a[3])
a = int(a[0])
e = a / d
f = c / b
if int(e) < e:
e = e + 1
if int(f) < f:
f = f + 1
if e >= f:
print("Yes")
else:
print("No") | a = input()
a = a.split()
b = int(a[1])
c = int(a[2])
d = int(a[3])
a = int(a[0])
e = a / d
f = c / b
if int(e) < e:
e = int(e + 1)
if int(f) < f:
f = int(f + 1)
if e >= f:
print("Yes")
else:
print("No") | [["+", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 103 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <stdlib.h>
using namespace std;
#define INF 1e9
#define PI 3.141592653589793238
typedef long long ll;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if ((a + d - 1) / d < (b + c - 1) / c)
cout << "No" << endl;
else
cout ... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <stdlib.h>
using namespace std;
#define INF 1e9
#define PI 3.141592653589793238
typedef long long ll;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if ((a + d - 1) / d < (b + c - 1) / b)
cout << "No" << endl;
else
cout ... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 90 |
A,B,C,D=map(int,input().split())
for i in range(1,1000):
if i%2!=0:
C-=B
if C<=0:
print('Yes')
else:
A-=D
if A<=0:
print('No') | A,B,C,D=map(int,input().split())
for i in range(1,1000):
if i%2!=0:
C-=B
if C<=0:
print('Yes')
exit()
else:
A-=D
if A<=0:
print('No')
exit() | [["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 67 |
a, b, c, d = gets.split.map(&:to_i)
takahashi_turn = (c%b == 0 ? c/b : c/b + 1)
aoki_turn = (a%d == 0? a/d : a/d + 1)
if takahashi_turn >= aoki_turn
puts "Yes"
else
puts "No"
end | a, b, c, d = gets.split.map(&:to_i)
aoki_turn = (c%b == 0 ? c/b : c/b + 1)
takahashi_turn = (a%d == 0 ? a/d : a/d + 1)
if takahashi_turn >= aoki_turn
puts "Yes"
else
puts "No"
end | [["-", 36, 36, 36, 36, 0, 493, 0, 662, 31, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 31, 22]] | 4 | 69 |
#include <bits/stdc++.h>
#define rep(i, N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main(void) {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = (a + d - 1) / d; //高橋君のモンスターの体力が0以下になる回数
int y = (b + c - 1) / c;
i... | #include <bits/stdc++.h>
#define rep(i, N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main(void) {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = (a + d - 1) / d; //高橋君のモンスターの体力が0以下になる回数
int y = (c + b - 1) / b;
i... | [["-", 51, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["-", 51, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 112 |
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define INF 1001001
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int attack_t = 0, attack_a = 0;
if (c % b == 0) {
attack_t = c / b;
}... | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define INF 1001001
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int attack_t = 0, attack_a = 0;
if (c % b == 0) {
attack_t = c / b;
}... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 140 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll a, b, c, d;
int main() {
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
a -= d;
c -= b;
}
if (a <= 0 && c <= 0)
cout << "YES" << endl;
else if (a <= 0)
cout << "NO" << endl;
else
cout << "YES" << endl;
re... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll a, b, c, d;
int main() {
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
a -= d;
c -= b;
}
if (a <= 0 && c <= 0)
cout << "Yes" << endl;
else if (a <= 0)
cout << "No" << endl;
else
cout << "Yes" << endl;
re... | [["-", 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 | 102 |
A,B,C,D = map(int,input().split())
taka = 0
aoki = 0
while True:
if A < 0:break
A -= B
taka += 1
while True:
if C < 0:break
C -= D
aoki += 1
if taka > aoki:
print("Yes")
else:
print("No") | A,B,C,D = map(int,input().split())
taka = 0
aoki = 0
while True:
if A <= 0:break
A -= D
taka += 1
while True:
if C <= 0:break
C -= B
aoki += 1
if taka >= aoki:
print("Yes")
else:
print("No") | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 0, 52, 8, 196, 0, 1, 0, 677, 12, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]] | 5 | 75 |
a,b,c,d = map(int, input().split())
if a%d ==0:
ao = a/d
else:
ao = a/d +1
if c%b ==0:
taka = c/b
else:
taka = c/b +1
if taka> ao:
print('No')
else:
print('Yes') | a,b,c,d = map(int, input().split())
if a%d ==0:
ao = a/d
else:
ao = int(a/d +1)
if c%b ==0:
taka = c/b
else:
taka = int(c/b +1)
if taka> ao:
print('No')
else:
print('Yes') | [["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 81 |
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <math.h>
#include <set>
#include <vector>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define rep(i, n) for (ll i = 0; i < n; i++)
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x, y;... | #include <algorithm>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <math.h>
#include <set>
#include <vector>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define rep(i, n) for (ll i = 0; i < n; i++)
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x, y;... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 145 |
A,B,C,D = gets.chomp.split('').map(&:to_i)
countA = C % B == 0 ? C/B : C/B + 1
countC = A % D == 0 ? A/D : A/D + 1
if countA <= countC
puts('Yes')
else
puts('No')
end | A,B,C,D = gets.chomp.split(' ').map(&:to_i)
countA = C % B == 0 ? C/B : C/B + 1
countC = A % D == 0 ? A/D : A/D + 1
if countA <= countC
puts('Yes')
else
puts('No')
end | [["+", 12, 652, 486, 652, 3, 4, 0, 557, 0, 6]] | 4 | 75 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define REP(i, d, n) for (int i = (d); i < (n); ++i)
#define all(v) v.begin(), v.end()
using ll = long long;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
rep(i, 999999) {
d -= b;
if (d <= 0) {
co... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define REP(i, d, n) for (int i = (d); i < (n); ++i)
#define all(v) v.begin(), v.end()
using ll = long long;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
rep(i, 999999) {
c -= b;
if (c <= 0) {
co... | [["-", 8, 9, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 8, 9, 0, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 9, 0, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 9, 0, 1, 0, 11, 12, 22]] | 1 | 114 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
bool turn = true;
while (a > 0 || c > 0) {
if (turn) {
c -= b;
} else {
a -= d;
}
turn = !turn;
}
if (a > 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
retu... |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
bool turn = true;
while (a > 0 && c > 0) {
if (turn) {
c -= b;
} else {
a -= d;
}
turn = !turn;
}
if (a > 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
retur... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98]] | 1 | 96 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
for (int i = 1; i < 10000; i++) {
C = C - B;
if (C <= 0) {
cout << "yes" << endl;
break;
}
A = A - D;
if (A <= 0) {
cout << "no" << endl;
break;
}
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
for (int i = 1; i < 10000; i++) {
C = C - B;
if (C <= 0) {
cout << "Yes" << endl;
break;
}
A = 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 | 98 |
a, b, c, d = map(int, input().split())
if ((a + d - 1) // d) >= ((c + b - 1) / b):
print("Yes")
else:
print("No")
| a, b, c, d = map(int, input().split())
if ((a + d - 1) // d) >= ((c + b - 1) // b):
print("Yes")
else:
print("No") | [["-", 0, 57, 15, 666, 0, 23, 0, 657, 17, 85], ["+", 0, 57, 15, 666, 0, 23, 0, 657, 17, 676]] | 5 | 59 |
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();
for (int i = 0; i < 1000; i++) {
c -= b;
if (c <= 0) {
... | 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();
for (int i = 0; i < 1000; i++) {
c -= b;
if (c <= 0) {
... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22]] | 3 | 137 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0; i < 1000; i++) {
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
a -= d;
if (a <= d) {
cout << "No" << endl;
break;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0; i < 1000; i++) {
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
a -= d;
if (a <= 0) {
cout << "No" << endl;
break;
}
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 91 |
a,b,c,d=map(int,input().split())
if a%d>0:
a=a//d+1
elif a%d==0:
a=a//d
if c%b>0:
c=c//b+1
elif c%b==0:
c=c//b
if a>=c:
print("YES")
else:
print("NO") | a,b,c,d=map(int,input().split())
if a%d>0:
a=a//d+1
elif a%d==0:
a=a//d
if c%b>0:
c=c//b+1
elif c%b==0:
c=c//b
if a>=c:
print("Yes")
else:
print("No")
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 91 |
hp1,at1,hp2,at2=gets.split.map!(&:to_i)
kai1=0
kai2=0
while hp2>0
hp2-=at1
kai1+=1
end
while hp1>0
hp1-=at2
kai2+=1
end
puts kai1
puts kai2
if kai1<=kai2
puts "Yes"
else
puts "No"
end
| hp1,at1,hp2,at2=gets.split.map!(&:to_i)
kai1=0
kai2=0
while hp2>0
hp2-=at1
kai1+=1
end
while hp1>0
hp1-=at2
kai2+=1
end
if kai1<=kai2
puts "Yes"
else
puts "No"
end
| [["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 22]] | 4 | 63 |
#include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (a > 0 && c > 0) {
c -= b;
if (c > 0)
c -= d;
}
if (c <= 0)
printf("Yes\n");
else
printf("No\n");
} | #include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (a > 0 && c > 0) {
c -= b;
if (c > 0)
a -= d;
}
if (c <= 0)
printf("Yes\n");
else
printf("No\n");
} | [["-", 8, 9, 0, 57, 64, 1, 0, 11, 31, 22], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 31, 22]] | 0 | 85 |
#include <stdio.h>
int main() {
int tB, tA, aB, aA, i;
scanf("%d%d%d%d", &tB, &tA, &aB, &aA);
while (1) {
aB -= tA;
if (aB <= 0)
break;
tB -= aA;
if (aA <= 0)
break;
}
if (aB <= 0)
printf("Yes");
else
printf("No");
return 0;
}
| #include <stdio.h>
int main() {
int tB, tA, aB, aA, i;
scanf("%d%d%d%d", &tB, &tA, &aB, &aA);
while (1) {
aB -= tA;
if (aB <= 0)
break;
tB -= aA;
if (tB <= 0)
break;
}
if (aB <= 0)
printf("Yes");
else
printf("No");
return 0;
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22]] | 0 | 92 |
a,b,c,d = map(int,input().split())
import math
print("yes" if math.ceil(a/d) >= math.ceil(c/b) else "no") | a,b,c,d = map(int,input().split())
import math
print("Yes" if math.ceil(a/d) >= math.ceil(c/b) else "No") | [["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]] | 5 | 50 |
A,B,C,D = map(int,input().split())
while A > 0 and C >0:
C -= B
if C <= 0:
break
A -= C
if A <= 0:
print('No')
else:
print('Yes') | A,B,C,D = map(int,input().split())
while A > 0 and C > 0:
C -= B
if C <= 0:
break
A -= D
if A <= 0:
print('No')
else:
print('Yes') | [["-", 0, 52, 8, 196, 0, 1, 0, 677, 12, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 22]] | 5 | 60 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
for (int i = 1; i <= 100; i++) {
C -= B;
if (C == 0) {
cout << "Yes" << endl;
return 0;
}
A -= D;
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;
for (int i = 1; i <= 100; i++) {
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, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 93 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
#define PI 3.14159265358979323846
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if ((a + 1) / d >= (c + 1) / b) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
#define PI 3.14159265358979323846
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if ((a + d - 1) / d >= (c + b - 1) / b) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
... | [["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 17, 33]] | 1 | 81 |
A, B, C, D = list(map(int, input().split()))
import math
if math.ceil(A / C) >= math.ceil(D / B):
print('Yes')
else:
print('No')
| A, B, C, D = list(map(int, input().split()))
import math
if math.ceil(A / D) >= math.ceil(C / B):
print('Yes')
else:
print('No') | [["-", 15, 666, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 15, 666, 0, 652, 3, 4, 0, 657, 12, 22], ["-", 15, 666, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 15, 666, 0, 652, 3, 4, 0, 657, 31, 22]] | 5 | 58 |
#include <bits/stdc++.h>
#include <string>
using namespace std;
int main() {
int a, b, c, d, e, f;
cin >> a >> b >> c >> 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)
cout << "No" << endl;
if (e >= f)
cout << "Yes" ... | #include <bits/stdc++.h>
#include <string>
using namespace std;
int main() {
int a, b, c, d, e, f;
cin >> a >> b >> c >> 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)
cout << "No" << endl;
if (e <= f)
cout << "Yes" ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 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, 17, 19]] | 1 | 111 |
import math
a,b,c,d=map(int,input().split())
x=math.ceil(c/b)
y=math.ceil(a/d)
print("Yes" if x>=y else "No") | import math
a,b,c,d=map(int,input().split())
x=math.ceil(c/b)
y=math.ceil(a/d)
print("Yes" if y>=x else "No")
| [["-", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22], ["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 20], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 20], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22]] | 5 | 56 |
A, B, C, D = map(int, input().split())
takahasi = C // B
aoki = A // D
if C % B != 0:
takahasi += 1
if A % D != 0:
aoki += 1
if takahasi > aoki:
print("Yes")
else:
print("No") | A, B, C, D = map(int, input().split())
takahasi = C // B
aoki = A // D
if C % B != 0:
takahasi += 1
if A % D != 0:
aoki += 1
if takahasi > aoki:
print("No")
else:
print("Yes") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 69 |
#include <bits/stdc++.h>
using namespace std;
typedef long long lol;
//マクロ
// forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
// Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define REP(i, n) for (lol i = 0; i < lol(n); i++)
#define REPD(i, n) for (lol i = n - 1; i >= 0; i--)
#define FOR(i, a, b) fo... | #include <bits/stdc++.h>
using namespace std;
typedef long long lol;
//マクロ
// forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
// Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define REP(i, n) for (lol i = 0; i < lol(n); i++)
#define REPD(i, n) for (lol i = n - 1; i >= 0; i--)
#define FOR(i, a, b) fo... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 284 |
a,b,c,d = map(int,input().split())
while 1:
c=-b
if c<=0 :
print("Yes")
break
a=-d
if a<=0 :
print("No")
break | a,b,c,d = map(int,input().split())
while 1:
c-=b
if c<=0 :
print("Yes")
break
a-=d
if a<=0 :
print("No")
break | [["-", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 8, 196, 0, 1, 0, 662, 12, 664, 17, 33], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110]] | 5 | 55 |
import math
A, B, C, D = map(int, input().split())
E = math.ceil(A//D)
F = math.ceil(C//B)
if E >= F:
print('Yes')
else:
print('No') | import math
A, B, C, D = map(int, input().split())
E = math.ceil(A/D)
F = math.ceil(C/B)
if E >= F:
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 |
import math
A, B, C, D = list(map(lambda x: int(x), input().split(" ")))
print("Yes") if math.ceil(A/D) > math.ceil(C/B) else print("No") | import math
A, B, C, D = list(map(lambda x: int(x), input().split(" ")))
print("Yes") if math.ceil(A/D) >= math.ceil(C/B) else print("No") | [["-", 0, 656, 0, 1, 0, 41, 0, 666, 667, 47], ["+", 0, 656, 0, 1, 0, 41, 0, 666, 667, 20]] | 5 | 65 |
#include <bits/stdc++.h>
#include <iostream>
typedef long long ll;
#define rep(i, a, b) for (ll i = a; i <= b; i++)
#define per(i, a, b) for (ll i = a; i >= b; i--)
using namespace std;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
int main(int argc, char const *argv[]) {
// ifstream cin("input.txt");
i... | #include <bits/stdc++.h>
#include <iostream>
typedef long long ll;
#define rep(i, a, b) for (ll i = a; i <= b; i++)
#define per(i, a, b) for (ll i = a; i >= b; i--)
using namespace std;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
int main(int argc, char const *argv[]) {
// ifstream cin("input.txt");
f... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 114 |
#include <stdio.h>
int main() {
int a, b, c, d;
int kai = 1;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (a > 0 && c > 0) {
if (kai % 2 == 0) {
a = a - d;
} else
c = c - b;
}
if (a <= 0)
printf("No");
else
printf("Yes");
return 0;
} | #include <stdio.h>
int main() {
int a, b, c, d;
int kai = 1;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (a > 0 && c > 0) {
if (kai % 2 == 0) {
a = a - d;
} else
c = c - b;
kai++;
}
if (a <= 0)
printf("No");
else
printf("Yes");
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]] | 0 | 100 |
#include <stdio.h>
int main() {
int a, b, c, d;
int turn = 0;
scanf("%d%d%d%d", &a, &b, &c, &d);
while (a <= 0) {
c -= b;
if (c <= 0) {
turn = 1;
break;
}
a -= d;
}
if (turn == 1)
printf("Yes");
else if (turn == 0)
printf("No");
} | #include <stdio.h>
int main() {
int a, b, c, d;
int turn = 0;
scanf("%d%d%d%d", &a, &b, &c, &d);
while (a > 0) {
c -= b;
if (c <= 0) {
turn = 1;
break;
}
a -= d;
}
if (turn == 1)
printf("Yes");
else if (turn == 0)
printf("No");
} | [["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 47]] | 0 | 98 |
#include <stdio.h>
int main() {
int a, b, c, d, i = 0;
scanf("%d%d%d%d", &a, &b, &c, &d);
do {
if (i % 2 == 0) {
c = c - b;
} else {
a = a - d;
}
i++;
} while (a >= 0 && c >= 0);
if (a <= 0)
printf("No");
if (c <= 0)
printf("Yes");
return 0;
}
| #include <stdio.h>
int main() {
int a, b, c, d, i = 0;
scanf("%d%d%d%d", &a, &b, &c, &d);
do {
if (i % 2 == 0) {
c = c - b;
} else {
a = a - d;
}
i++;
} while (a > 0 && c > 0);
if (a <= 0)
printf("No");
if (c <= 0)
printf("Yes");
return 0;
}
| [["-", 0, 82, 15, 23, 0, 16, 31, 16, 17, 20], ["+", 0, 82, 15, 23, 0, 16, 31, 16, 17, 47], ["-", 0, 82, 15, 23, 0, 16, 12, 16, 17, 20], ["+", 0, 82, 15, 23, 0, 16, 12, 16, 17, 47]] | 0 | 111 |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
String[] str = br.readLine().split(" ");
... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
String[] str = br.readLine().split(" ");
... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 202 |
a, b, c, d = map(int, input().split())
p = 0
while(c > 0):
c = c - b
if c == 0:
break
a = a - d
if a == 0:
p = 1
break
if p == 1:
print("No")
else:
print("Yes") | a, b, c, d = map(int, input().split())
p = 0
while(c > 0):
c = c - b
if c <= 0:
break
a = a - d
if a <= 0:
p = 1
break
if p == 1:
print("No")
else:
print("Yes") | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 74 |
A,B,C,D=map(int,input().split())
X = 0
Y = o
while A > 0:
A = A-D
X+=1
while C > 0:
C = C-B
Y+=1
if X>=Y:
print("Yes")
else:
print("No")
| A,B,C,D=map(int,input().split())
X = 0
Y = 0
while A > 0:
A = A-D
X+=1
while C > 0:
C = C-B
Y+=1
if X>=Y:
print("Yes")
else:
print("No")
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 71 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, p, q;
cin >> a >> b >> p >> q;
int i = 0;
while (a > 0 && p > 0) {
if (i & 1) {
a = a - q;
} else {
p = p - b;
}
i++;
}
if (a <= 0) {
cout << "no" << endl;
} else {
cout << "yes" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, p, q;
cin >> a >> b >> p >> q;
int i = 0;
while (a > 0 && p > 0) {
if (i & 1) {
a = a - q;
} else {
p = p - b;
}
i++;
}
if (a <= 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 101 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <queue>
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 (D <= 0) {
cout << "No" << endl... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <queue>
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... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 92 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int kai_1 = C / B;
int kai_2 = A / D;
int a = C % B;
int b = A % D;
if (a) {
kai_1++;
}
if (b) {
kai_2++;
}
if (kai_1 - 1 <= kai_2) {
cout << "Yes" << endl;
} else {
cout << "N... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int kai_1 = C / B;
int kai_2 = A / D;
int a = C % B;
int b = A % D;
if (a) {
kai_1++;
}
if (b) {
kai_2++;
}
if (kai_1 <= kai_2) {
cout << "Yes" << endl;
} else {
cout << "No" <... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 33], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 109 |
#include <algorithm>
#include <bitset>
#include <chrono>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x, y;
if (a % d == 0)
x = a / d;
else
x = a / d + 1;
... | #include <algorithm>
#include <bitset>
#include <chrono>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x, y;
if (a % d == 0)
x = a / d;
else
x = a / d + 1;
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 122 |
import numpy as np
def cumsum(x):
return list(np.cumsum(x))
def cumsum_number(N,K,x):
ans=[0]*(N-K+1)
number_cumsum = cumsum(x)
number_cumsum.insert(0,0)
for i in range(N-K+1):
ans[i]=number_cumsum[i+K]-number_cumsum[i]
return ans
"""
int #整数
float #小数
#for
for name in fruits: #fruitの頭... | import numpy as np
def cumsum(x):
return list(np.cumsum(x))
def cumsum_number(N,K,x):
ans=[0]*(N-K+1)
number_cumsum = cumsum(x)
number_cumsum.insert(0,0)
for i in range(N-K+1):
ans[i]=number_cumsum[i+K]-number_cumsum[i]
return ans
"""
int #整数
float #小数
#for
for name in fruits: #fruitの頭... | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22]] | 5 | 159 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define GET_ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
#define LL long long
LL facctorialMethod(int k);
int main() {
LL a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
c = c - b;
if (c <= 0)
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define GET_ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
#define LL long long
LL facctorialMethod(int k);
int main() {
LL a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
c = c - b;
if (c <= 0)
... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 157 |
#include <stdio.h>
#define N 2
int main(void) {
void battle(int *, int *);
int T[N], A[N];
scanf("%d %d %d %d", &T[0], &T[1], &A[0], &A[1]);
// printf("%d %d %d %d\n",T[0], T[1], A[0], A[1]); //OK
battle(T, A);
return 0;
}
void battle(int *p1, int *p2) {
// int C = 0;printf("%d %d %d %d\n",*p1, *(p1... | #include <stdio.h>
#define N 2
int main(void) {
void battle(int *, int *);
int T[N], A[N];
scanf("%d %d %d %d", &T[0], &T[1], &A[0], &A[1]);
// printf("%d %d %d %d\n",T[0], T[1], A[0], A[1]); //OK
battle(T, A);
return 0;
}
void battle(int *p1, int *p2) {
// int C = 0;printf("%d %d %d %d\n",*p1, *(p1... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 160 |
a,b,c,d = map(int, input().split())
x = (c+b-1)//b
y = (a+d-1)//d
if x >= y:
print('Yes')
else:
print('No') | a,b,c,d = map(int, input().split())
x = (c+b-1)//b
y = (a+d-1)//d
if y >= x:
print('Yes')
else:
print('No') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]] | 5 | 61 |
#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) {
puts("Yes");
return 0;
}
a -= d;
if (d <= 0) {
puts("No");
return 0;
}
}
} | #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) {
puts("Yes");
return 0;
}
a -= d;
if (a <= 0) {
puts("No");
return 0;
}
}
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22]] | 0 | 86 |
from sys import stdin, stdout
a, b, c ,d = map(int, stdin.readline().strip().split())
from math import ceil
x = ceil(a/d)
y = ceil(b/c)
if x>=y:
print('Yes')
else:
print('No')
| from sys import stdin, stdout
a, b, c ,d = map(int, stdin.readline().strip().split())
from math import ceil
x = ceil(a/d)
y = ceil(c/b)
if x>=y:
print('Yes')
else:
print('No')
| [["-", 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 | 71 |
#include <stdio.h>
int main(void) {
int flag = 1;
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
while (A > 0) {
C = C - B;
if (C <= 0) {
flag = 0;
break;
}
A = A - D;
}
if (flag)
printf("Yes");
else
printf("No");
return 0;
} | #include <stdio.h>
int main(void) {
int flag = 0;
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
while (A > 0) {
C = C - B;
if (C <= 0) {
flag = 1;
break;
}
A = A - D;
}
if (flag)
printf("Yes");
else
printf("No");
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13]] | 0 | 98 |
#include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (1) {
c = c - b;
if (a <= 0)
break;
a = a - d;
if (c <= 0)
break;
}
if (a > c)
puts("No");
else
puts("Yes");
return 0;
} | #include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (1) {
c = c - b;
if (c <= 0)
break;
a = a - d;
if (a <= 0)
break;
}
if (a < c)
puts("No");
else
puts("Yes");
return 0;
} | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18]] | 0 | 94 |
#include <stdio.h>
int main(void) {
int a, b, c, d, tk, ao;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &d);
tk = c / b;
if ((c % b) != 0)
tk++;
ao = a / d;
if ((a % d) != 0)
ao++;
if (tk >= ao)
printf("Yes");
else
printf("No");
return 0;
} | #include <stdio.h>
int main(void) {
int a, b, c, d, tk, ao;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &d);
tk = c / b;
if ((c % b) != 0)
tk++;
ao = a / d;
if ((a % d) != 0)
ao++;
if (tk <= ao)
printf("Yes");
else
printf("No");
return 0;
} | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 124 |
#include <bits/stdc++.h>
using namespace std;
#define deb(x) cout << #x << ": " << x << endl
#define fo(i, n) for (ll i = 0; i < n; i++)
#define fkn(i, k, n) for (i = k; i < n; i++)
#define ll long long
#define F first;
#define S second;
#define PB(x) push_back(x);
#define MP(x, y) make_pair(x, y);
typedef vector<ll> ... | #include <bits/stdc++.h>
using namespace std;
#define deb(x) cout << #x << ": " << x << endl
#define fo(i, n) for (ll i = 0; i < n; i++)
#define fkn(i, k, n) for (i = k; i < n; i++)
#define ll long long
#define F first;
#define S second;
#define PB(x) push_back(x);
#define MP(x, y) make_pair(x, y);
typedef vector<ll> ... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 180 |
A, B, C, D = map(int, input().split())
while true:
if C - B <= 0:
print('Yes')
break
else:
C = C - B
if A - D <= 0:
print('No')
break
else:
A = A - D | A, B, C, D = map(int, input().split())
while True:
if C - B <= 0:
print('Yes')
break
else:
C = C - B
if A - D <= 0:
print('No')
break
else:
A = A - D | [["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 146]] | 5 | 65 |
/******************************************************************************
рассвет.
*******************************************************************************/
#include <bits/stdc++.h>
typedef long long int lli;
typedef unsigned long long int ulli;
typedef long double ld;
#define rapgame ... | /******************************************************************************
рассвет.
*******************************************************************************/
#include <bits/stdc++.h>
typedef long long int lli;
typedef unsigned long long int ulli;
typedef long double ld;
#define rapgame ... | [["-", 0, 16, 12, 23, 0, 41, 15, 16, 17, 20], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 19]] | 1 | 277 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0; i < a + c; i++) {
c -= b;
if (c <= 0 && a > 0) {
cout << "Yes";
return 0;
}
a -= d;
if (a <= 0 && 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;
for (int i = 0; i < 200; i++) {
c -= b;
if (c <= 0 && a > 0) {
cout << "Yes";
return 0;
}
a -= d;
if (a <= 0 && c > 0) {
cout << "No";
return 0;
}
}
} | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 31, 22], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 99 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int A = scanner.nextInt();
int B = scanner.nextInt();
int C = scanner.nextInt();
int D = scanner.nextInt();
int count = 0;
while (A > 0 && C > 0) {
if ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int A = scanner.nextInt();
int B = scanner.nextInt();
int C = scanner.nextInt();
int D = scanner.nextInt();
int count = 0;
while (A > 0 && C > 0) {
if (... | [["+", 0, 52, 8, 196, 0, 1, 0, 27, 0, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 27, 0, 29], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 3 | 146 |
#include <bits/stdc++.h>
#define long long long int
using namespace std;
// @author: pashka
int main() {
ios::sync_with_stdio(false);
int h1, s1, h2, s2;
cin >> h1 >> s1 >> h2 >> s2;
while (true) {
h2 -= s1;
if (h2 <= 0) {
cout << "Yes";
return 0;
}
h1 -= s2;
if (h2 <= 0) {
... | #include <bits/stdc++.h>
#define long long long int
using namespace std;
// @author: pashka
int main() {
ios::sync_with_stdio(false);
int h1, s1, h2, s2;
cin >> h1 >> s1 >> h2 >> s2;
while (true) {
h2 -= s1;
if (h2 <= 0) {
cout << "Yes";
return 0;
}
h1 -= s2;
if (h1 <= 0) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 93 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define xrep(i, a, b) for (int i = int(a); i < int(b); ++i)
int main() {
int tHp, tAt, aHp, aAt;
cin >> tHp >> tAt >> aHp >> aAt;
while (tHp > 0 && aHp > 0) {
aHp -= tAt;
tHp -= aAt;
}
if ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define xrep(i, a, b) for (int i = int(a); i < int(b); ++i)
int main() {
int tHp, tAt, aHp, aAt;
cin >> tHp >> tAt >> aHp >> aAt;
while (tHp > 0 && aHp > 0) {
aHp -= tAt;
tHp -= aAt;
}
if ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 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, 16, 31, 16, 12, 5, 0, 6]] | 1 | 92 |
#include <bits/stdc++.h>
using namespace std;
int main() {
float A, B, C, D;
cin >> A >> B >> C >> D;
while (A > 0 && C > 0) {
A -= D;
C -= B;
}
cout << (A > 0 ? "Yes" : "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) { //どちらかのHPが0以下になるまで繰り返す
A -= D;
C -= B;
}
cout << (C <= 0 ? "Yes" : "No") << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 31, 16, 12, 23, 0, 41, 15, 16, 31, 22], ["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 47], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 31, 22], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 19]] | 1 | 69 |
#include <bits/stdc++.h>
using namespace std;
int main() {
float A, B, C, D;
cin >> A >> B >> C >> D;
while (A > 0 && C > 0) {
A -= D;
C -= B;
}
cout << (A > 0 ? "Yes" : "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) {
A -= D;
C -= B;
}
cout << (A > 0 || C <= 0 ? "Yes" : "No") << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 12, 13], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 106], ["+", 12, 23, 0, 41, 15, 16, 12, 16, 31, 22], ["+", 12, 23, 0, 41, 15, 16, 12, 16, 17, 19]] | 1 | 69 |
a, b, c, d = list(map(int, input().split()))
while True:
c -= b
if c <= 0:
print('Yes')
break
a -= d
if a <= 0:
pinrt('No')
break
| a, b, c, d = list(map(int, input().split()))
while True:
c -= b
if c <= 0:
print('Yes')
break
a -= d
if a <= 0:
print('No')
break
| [["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22]] | 5 | 56 |
# B - Battle
A,B,C,D = map(int,input().split())
ans = ['No', 'Yes']
takahashi = (C-1)//B + 1
aoki = (A-1)//D + 1
print(ans[takahashi>=aoki]) | # B - Battle
A,B,C,D = map(int,input().split())
ans = ['No', 'Yes']
takahashi = (C-1)//B + 1
aoki = (A-1)//D + 1
print(ans[takahashi<=aoki]) | [["-", 0, 652, 3, 4, 0, 206, 206, 666, 667, 20], ["+", 0, 652, 3, 4, 0, 206, 206, 666, 667, 19]] | 5 | 63 |
a, b, c, d = map(int, input().split())
tpow = a / d + (0 if a % d == 0 else 1)
apow = c / b + (0 if c % b == 0 else 1)
if tpow >= apow:
print("Yes")
else:
print("No") | a, b, c, d = map(int, input().split())
tpow = a // d + (0 if a % d == 0 else 1)
apow = c // b + (0 if c % b == 0 else 1)
if tpow >= apow:
print("Yes")
else:
print("No") | [["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 85], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 676]] | 5 | 73 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 1e16;
const ll mod = 1000000007;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll takahashi, aoki;
if (c % b)
takahashi = c / b + 1;
else
takahashi = c / b;
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 1e16;
const ll mod = 1000000007;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll takahashi, aoki;
if (c % b)
takahashi = c / b + 1;
else
takahashi = c / b;
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 127 |
A,B,C,D = list(map(int,input().split()))
a=0
c=0
while A > 0:
A -= D
a += 1
while C > 0:
C -=B
c += 1
if a > c:
print('No')
elif a <= c:
print('Yes')
| A,B,C,D = list(map(int,input().split()))
a=0
c=0
while A > 0:
A -= D
a += 1#何回でやられたか
while C > 0:
C -= B
c += 1#何回で倒したか
if a < c:
print('No')
elif a >= c:
print('Yes')
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 19], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 20]] | 5 | 73 |
a,b,c,d=map(int,input().split())
while a>0:
c-=b
if c<=0:
print("Yes")
exit()
a-=d
print("No")
| a,b,c,d=map(int,input().split())
while a>0:
c-=b
if c<=0:
print("Yes")
exit()
a-=d
if a<=0:
print("No")
| [["+", 0, 656, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 656, 0, 52, 8, 196, 0, 57, 0, 102]] | 5 | 51 |
a,b,c,d=map(int,input().split())
ta=(c+a-1)//a
ao=(b+d-1)//d
if ta<=ao:
print("Yes")
else:
print("No") | a,b,c,d=map(int,input().split())
ta=(c-1)//b
ao=(a-1)//d
if ta<=ao:
print("Yes")
else:
print("No") | [["-", 12, 657, 31, 23, 0, 657, 31, 657, 17, 72], ["-", 12, 657, 31, 23, 0, 657, 31, 657, 12, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 22], ["-", 12, 657, 31, 23, 0, 657, 31, 657, 31, 22], ["+", 0, 662, 12, 657, 31, 23, 0, 657, 31, 22]] | 5 | 61 |
A,B,C,D=map(int,input().split())
HP_T=A
HP_A=C
for i in range(1,102):
if i%2==1:
HP_A -= B
else:
HP_T -= D
if HP_A<=0:
print('No')
exit()
elif HP_T<=0:
print('Yes')
exit()
else:
pass | A,B,C,D=map(int,input().split())
HP_T=A
HP_A=C
for i in range(1,1000):
if i%2==1:
HP_A -= B
else:
HP_T -= D
if HP_A<=0:
print('Yes')
exit()
elif HP_T<=0:
print('No')
exit()
else:
pass | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 82 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.