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 main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (true) {
A -= D;
C -= B;
if (A <= 0) {
cout << "Yes";
break;
}
if (C <= 0) {
cout << "No";
break;
}
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (true) {
A -= D;
C -= B;
if (C <= 0) {
cout << "Yes";
break;
}
if (A <= 0) {
cout << "No";
break;
}
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 77 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int aCount = c / b;
if (c % b > 0)
aCount++;
int bCount = a / d;
if (d % a > 0)
bCount++;
if (aCount ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int aCount = c / b;
if (c % b > 0)
aCount++;
int bCount = a / d;
if (a % d > 0)
bCount++;
if (aCount ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 121 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define IO \
std::ios::sync_with_stdio(false); \
std::cin.tie(0)
#define rep(i, a, b) for (int i = a; i <= b; i++)
#define per(i, a, b) fo... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define IO \
std::ios::sync_with_stdio(false); \
std::cin.tie(0)
#define rep(i, a, b) for (int i = a; i <= b; i++)
#define per(i, a, b) fo... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 122 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int s = (a - 1) / d;
int t = (c - 1) / b;
if (s <= t)
cout << "No" << endl;
else
cout << "Yes" << endl;
}
| #include <iostream>
#include <vector>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int s = (a - 1) / d;
int t = (c - 1) / b;
if (s < t)
cout << "No" << endl;
else
cout << "Yes" << endl;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 78 |
#define ll long long int
#define ull unsigned long long int
#define pb push_back
#define mp make_pair
#define ye cout << "YES";
#define no cout << "NO";
#define ln cout << "\n";
// cout<<"Case #"<<ts<<": ";
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
... | #define ll long long int
#define ull unsigned long long int
#define pb push_back
#define mp make_pair
#define ye cout << "YES";
#define no cout << "NO";
#define ln cout << "\n";
// cout<<"Case #"<<ts<<": ";
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
... | [["-", 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 | 228 |
ta, td, aa, ad = map(int, input().split())
which = -1
while td > 0 and ad > 0:
if which == -1:
ad -= ta
else:
td -= aa
which *= -1
if ad <= 0:
print("Yes")
else:
print("No") | td, ta, ad, aa = map(int, input().split())
which = -1
while td > 0 and ad > 0:
if which == -1:
ad -= ta
else:
td -= aa
which *= -1
if ad <= 0:
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 | 70 |
A, B, C, D = map(int, input().split())
turn = "t"
while(A > 0 and C > 0):
if turn == "t":
C -= B
turn = "a"
else:
A -= D
turn = "t"
print(A, C)
if A <= 0:
print("No")
elif C <= 0:
print("Yes") | A, B, C, D = map(int, input().split())
turn = "t"
while(A > 0 and C > 0):
if turn == "t":
C -= B
turn = "a"
else:
A -= D
turn = "t"
if A <= 0:
print("No")
elif C <= 0:
print("Yes") | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 89 |
A,B,C,D = [int(v) for v in input().split()]
t_flag = True
while True:
if A < 0:
t_flag = True
break
C -= B
if C < 0:
t_flag = False
break
A -= D
if t_flag:
print("Yes")
else:
print("No")
| A,B,C,D = [int(v) for v in input().split()]
t_flag = True
while True:
if A <= 0:
t_flag = False
break
C -= B
if C <= 0:
t_flag = True
break
A -= D
if t_flag:
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, 57, 64, 196, 0, 1, 0, 662, 12, 146], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 147], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 12, 147], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 146]] | 5 | 71 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define vi vector<int>
#define vvi vector<vi>
#define pii pair<int, int>
#define mod 1000000007
using ll = long long;
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
c -= b;
if (c <= 0) {
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define vi vector<int>
#define vvi vector<vi>
#define pii pair<int, int>
#define mod 1000000007
using ll = long long;
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
c -= b;
if (c <= 0) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 109 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define ent cout << "\n"
#define pb push_back
#define mp make_pair
#define sz(x) x.size()
#define pair <ll, ll> pp
#define f(a, b) for (auto i = a; i < b; i++)
#define rev_f(a, b) for (auto i = b; i >= a; i--)
#define fastio() ... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define ent cout << "\n"
#define pb push_back
#define mp make_pair
#define sz(x) x.size()
#define pair <ll, ll> pp
#define f(a, b) for (auto i = a; i < b; i++)
#define rev_f(a, b) for (auto i = b; i >= a; i--)
#define fastio() ... | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 110], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 110], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22]] | 1 | 404 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define F first
#define S second
#define mk make_pair
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll x = 0, count = 0;
while (x == 0) {
if (b >= c && count % 2 == 0) {
cout << "Yes" << endl;
x = 1;
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define F first
#define S second
#define mk make_pair
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll x = 0, count = 0;
while (x == 0) {
if (b >= c && count % 2 == 0) {
cout << "Yes" << endl;
x = 1;
... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 17, 110], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 110], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22]] | 1 | 160 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int i = 0;
while (a > 0 && c > 0) {
if (i % 2 == 0)
c -= b, i+... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int i = 0;
while (a > 0 && c > 0) {
if (i % 2 == 0)
c -= b, i+... | [["-", 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 | 114 |
// problem-type?
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
int h1, s1, h2, s2;
cin >> h1 >> s1 >> h2 >> s2;
int turns1 = (int)ceil((double)h2 / s1);
int turns2 = (int)ceil((double)h1 / s2);
if (turns1 <= turns2)
cout << "yes";
else
cout << "no";
}
int main(... | // problem-type?
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve() {
int h1, s1, h2, s2;
cin >> h1 >> s1 >> h2 >> s2;
int turns1 = (int)ceil((double)h2 / s1);
int turns2 = (int)ceil((double)h1 / s2);
if (turns1 <= turns2)
cout << "Yes";
else
cout << "No";
}
int main(... | [["-", 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 | 131 |
a,b,c,d=map(int,input().split())
while a>=0 and c>=0:
a-=d
c-=b
if a<=0 and c>0:
print("No")
else:
print("Yes") | a,b,c,d=map(int,input().split())
while a>0 and c>0:
a-=d
c-=b
if a<=0 and c>0:
print("No")
else:
print("Yes") | [["-", 0, 656, 0, 52, 15, 679, 31, 666, 667, 20], ["+", 0, 656, 0, 52, 15, 679, 31, 666, 667, 47], ["-", 0, 656, 0, 52, 15, 679, 12, 666, 667, 20], ["+", 0, 656, 0, 52, 15, 679, 12, 666, 667, 47]] | 5 | 58 |
// aea ctmr
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c -= b;
if (b <= 0) {
cout << "Yes" << endl;
return 0;
}
a -= d;
if (a <= 0) {
cout << "No" << endl;
return 0;
}
}
return 0;
} | // aea ctmr
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
return 0;
}
a -= d;
if (a <= 0) {
cout << "No" << endl;
return 0;
}
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 87 |
A, B, C, D = (int(x) for x in input().split())
while A >= 0:
C = C-B
if C <= 0:
print("Yes")
quit()
else:
A = A-D
print("No") | A, B, C, D = (int(x) for x in input().split())
while A > 0:
C = C-B
if C <= 0:
print("Yes")
quit()
else:
A = A-D
print("No") | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]] | 5 | 61 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int A, B, C, D;
std::cin >> A >> B >> C >> D;
bool flag = false;
do {
if (flag) {
C -= B;
} else {
A -= D;
}
flag = !flag;
} while (A > 0 && C > 0);
printf("%s\n", flag ? "Yes" : "No");
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
int A, B, C, D;
std::cin >> A >> B >> C >> D;
bool flag = false;
do {
if (!flag) {
C -= B;
} else {
A -= D;
}
flag = !flag;
} while (A > 0 && C > 0);
printf("%s\n", flag ? "Yes" : "No");
return 0;
}
| [["+", 8, 9, 0, 57, 15, 339, 51, 91, 17, 111]] | 1 | 96 |
#include <algorithm>
#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(x) (x).begin(), (x).end()
#define PB(x) push_back(x)
#define MP(x, y) make_pair(x, y)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int a, b, c, d;
c... | #include <algorithm>
#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(x) (x).begin(), (x).end()
#define PB(x) push_back(x)
#define MP(x, y) make_pair(x, y)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main() {
int a, b, c, d;
c... | [["-", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["-", 75, 76, 0, 9, 0, 1, 0, 11, 17, 110], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 110], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 12, 22], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 148 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int t;
if (c % b == 0)
t = c / b;
if (c % b != 0)
t = c / b + 1;
if (t * d >= a)
cout << "No";
else
cout << "Yes";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int t;
if (c % b == 0)
t = c / b;
if (c % b != 0)
t = c / b + 1;
if ((t - 1) * d >= a)
cout << "No";
else
cout << "Yes";
return 0;
} | [["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 24], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 25]] | 1 | 88 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<long long> vecll;
typedef vector<string> vecstr;
#define rep0(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep1(i, n) for (ll i = 1; i <= (ll)(n); i++)
#define rep(i, a, b) for (ll i = (ll)a; i <= (ll)(b); i++)
#define rep0r(i, n) fo... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<long long> vecll;
typedef vector<string> vecstr;
#define rep0(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep1(i, n) for (ll i = 1; i <= (ll)(n); i++)
#define rep(i, a, b) for (ll i = (ll)a; i <= (ll)(b); i++)
#define rep0r(i, n) fo... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 488 |
def retm(a,b):
if a%b>0:
return 1
else:
return 0
ta,th,aa,ah=map(int,input().split())
if int(ah/ta)+retm(ah,ta)<=int(th/aa)+retm(th,aa):
print("Yes")
else:
print("No") | def retm(a,b):
if a%b>0:
return 1
else:
return 0
th,ta,ah,aa=map(int,input().split())
if int(ah/ta)+retm(ah,ta)<=int(th/aa)+retm(th,aa):
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 | 84 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef vector<vi> vvi;
typedef vector<vii> vvii;
#define fi first
#define se second
#define ALL(x) (x).begin(), (x).end()
#define RALL(x) (x).rbegin(), (x).rend()
#define pf pu... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef vector<vi> vvi;
typedef vector<vii> vvii;
#define fi first
#define se second
#define ALL(x) (x).begin(), (x).end()
#define RALL(x) (x).rbegin(), (x).rend()
#define pf pu... | [["-", 51, 16, 12, 23, 0, 41, 15, 16, 12, 22], ["+", 51, 16, 12, 23, 0, 41, 15, 16, 12, 22]] | 1 | 590 |
a, b, c, d = map(int, input().split())
for i in range(1001):
if i % 2 == 0:
c -= b
if c <= 0:
print("Yes")
break
elif i % 2 == 1:
a -= d
if a <= 0:
print("NO")
break | a, b, c, d = map(int, input().split())
for i in range(1001):
if i % 2 == 0:
c -= b
if c <= 0:
print("Yes")
break
elif i % 2 == 1:
a -= d
if a <= 0:
print("No")
break | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 72 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (ceil(a * 1.0 / d) >= ceil(b * 1.0 / 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;
if (ceil(a * 1.0 / d) >= ceil(c * 1.0 / b)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 12, 2, 3, 4, 0, 16, 31, 16, 31, 22], ["+", 12, 2, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 51, 16, 12, 2, 3, 4, 0, 16, 12, 22], ["+", 51, 16, 12, 2, 3, 4, 0, 16, 12, 22]] | 1 | 75 |
import sys
a, b, c, d = map(int, input().split())
while a > 0:
c = c - b
if c < 0:
print('Yes')
sys.exit()
a = a - d
print('No') | import sys
a, b, c, d = map(int, input().split())
while a > 0:
c = c - b
if c <= 0:
print('Yes')
sys.exit()
a = a - d
print('No') | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 59 |
#include <iostream>
#include <string>
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (n); i++)
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
string ans = "";
while (1) {
c -= b;
if (c <= 0) {
ans = "Yes";
break;
}
a -= d;
if (b <= 0) {
... | #include <iostream>
#include <string>
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (n); i++)
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
string ans = "";
while (1) {
c -= b;
if (c <= 0) {
ans = "Yes";
break;
}
a -= d;
if (a <= 0) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 107 |
a, b, c, d = list(map(int, input().split()))
turn = 0
while a > 0 or c > 0:
if turn%2==0:
c -= b
else:
a -= d
turn+=1
if a <= 0:
print('No')
else:
print('Yes') | a, b, c, d = list(map(int, input().split()))
turn = 0
while a > 0 and c > 0:
if turn%2==0:
c -= b
else:
a -= d
turn+=1
if a <= 0:
print('No')
else:
print('Yes') | [["-", 36, 36, 0, 656, 0, 52, 15, 679, 17, 354], ["+", 36, 36, 0, 656, 0, 52, 15, 679, 17, 355]] | 5 | 72 |
#include <algorithm>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
if ((c - 1) / b >= (a -... | #include <algorithm>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
if ((c - 1) / b <= (a -... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 88 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long l... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long l... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 436 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
cout << (((A + D - 1) / D <= (C + B - 1) / B) ? "Yes" : "No") << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
cout << (((A + D - 1) / D >= (C + B - 1) / B) ? "Yes" : "No") << endl;
} | [["-", 12, 23, 0, 41, 15, 23, 0, 16, 17, 19], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 17, 20]] | 1 | 67 |
A, B, C, D = map(int,input().split())
i = 1
while i > 0:
C -= B
A -= D
if (C <= 0 and A > 0) or (C <= 0 and A <= 0):
print('Yes')
break
else:
print('No')
break | A, B, C, D = map(int,input().split())
i = 1
while i > 0:
C -= B
A -= D
if (C <= 0 and A > 0) or (C <= 0 and A <= 0):
print('Yes')
break
elif A <= 0:
print('No')
break | [["-", 0, 52, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 52, 8, 196, 0, 57, 75, 665, 0, 683], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 0, 22], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 0, 612]] | 5 | 71 |
#include <bits/stdc++.h>
#include <type_traits>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define ddrep(i, n) for (int i = n; i > 0; --i)
#define srep(i, s, t) for (in... | #include <bits/stdc++.h>
#include <type_traits>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define ddrep(i, n) for (int i = n; i > 0; --i)
#define srep(i, s, t) for (in... | [["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 18], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 47]] | 1 | 450 |
#include "bits/stdc++.h"
#define FI first.first
#define SE first.second
#define TH second
#define fi first
#define se second
#define th second
using namespace std;
void debug_out() { cerr << endl; }
template <typename Head, typename... Tail> void debug_out(Head H, Tail... T) {
cerr << " " << to_string(H);
debug_... | #include "bits/stdc++.h"
#define FI first.first
#define SE first.second
#define TH second
#define fi first
#define se second
#define th second
using namespace std;
void debug_out() { cerr << endl; }
template <typename Head, typename... Tail> void debug_out(Head H, Tail... T) {
cerr << " " << to_string(H);
debug_... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 106], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 98]] | 1 | 313 |
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();
boolean winT = false;
for (int i = 0; i < 100; i++) {
c -= b;
if (c == ... | 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();
boolean winT = false;
for (int i = 0; i < 100; i++) {
c -= b;
if (c <= ... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]] | 3 | 145 |
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (;;) {
c -= a;
if (c <= 0) {
cout << "Yes";
break;
}
a -= d;
if (a <= 0) {
cout << "No";
break;
}
}
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (;;) {
c -= b;
if (c <= 0) {
cout << "Yes";
break;
}
a -= d;
if (a <= 0) {
cout << "No";
break;
}
}
} | [["-", 0, 7, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 12, 22]] | 1 | 80 |
// PLUS ULTRA
// one who atops
#include <bits/stdc++.h>
using namespace std;
#define SPEED \
ios::sync_with_stdio(false); \
cin.tie(0); ... | // PLUS ULTRA
// one who atops
#include <bits/stdc++.h>
using namespace std;
#define SPEED \
ios::sync_with_stdio(false); \
cin.tie(0); ... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 152 |
#include <stdio.h>
int main(void) {
int a, b, c, d;
int count = 0;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (a > 0 && c > 0) {
if (count == 0)
c -= b;
else
a -= d;
count = !count;
}
if (a <= 0)
printf("Yes");
else
printf("No");
return 0;
} | #include <stdio.h>
int main(void) {
int a, b, c, d;
int count = 0;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (a > 0 && c > 0) {
if (count == 0)
c -= b;
else
a -= d;
count = !count;
}
if (a <= 0)
printf("No");
else
printf("Yes");
return 0;
} | [["-", 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 | 98 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define ff first
#define ss second
#define pb push_back
#define all(x) x.begin(), x.end()
#define pll pair<ll, ll>
#define mp make_pair
#define bp __builtin_popcountll
#define MOD 1000000007
const int N = 200005;
#define FAST ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define ff first
#define ss second
#define pb push_back
#define all(x) x.begin(), x.end()
#define pll pair<ll, ll>
#define mp make_pair
#define bp __builtin_popcountll
#define MOD 1000000007
const int N = 200005;
#define FAST ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 162 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(void) {
int a, b, c, d, s1 = 0, s2 = 0;
cin >> a >> b >> c >> d;
while (a > 0) {
a -= d;
s1++;
}
while (c > 0) {
c -= b;
s2++;
}
if (s1 > s2)
cout << "Yes\n";
else
cout << "No\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(void) {
int a, b, c, d, s1 = 0, s2 = 0;
cin >> a >> b >> c >> d;
while (a > 0) {
a -= d;
s1++;
}
while (c > 0) {
c -= b;
s2++;
}
if (s1 >= s2)
cout << "Yes\n";
else
cout << "No\n";
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 99 |
#include <stdio.h>
int main(void) {
int A, B, C, D, T_attack_num, A_attack_num;
scanf("%d %d %d %d", &A, &B, &C, &D);
if (C % B == 0)
T_attack_num = C / B;
else
T_attack_num = (C / B) + 1;
if (A % D == 0)
A_attack_num = C / B;
else
A_attack_num = (C / B) + 1;
if (T_attack_num <= A_att... | #include <stdio.h>
int main(void) {
int A, B, C, D, T_attack_num, A_attack_num;
scanf("%d %d %d %d", &A, &B, &C, &D);
if (C % B == 0)
T_attack_num = C / B;
else
T_attack_num = (C / B) + 1;
if (A % D == 0)
A_attack_num = A / D;
else
A_attack_num = (A / D) + 1;
if (T_attack_num <= A_att... | [["-", 0, 57, 64, 1, 0, 11, 12, 16, 31, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 31, 22], ["-", 0, 57, 64, 1, 0, 11, 12, 16, 12, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 16, 12, 22], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 0,... | 0 | 117 |
#ifdef _MSC_VER
#include "stdc++.h"
#endif
#ifdef __GNUC__
#include <bits/stdc++.h>
#endif
using namespace std;
using ll = long long;
// constant
const double EPS = 1e-10;
#define REP(i, n) for (ll i = 0; i < n; i++)
#define FOR(i, s, e) for (ll i = s; i < e; i++)
#define ALL(x) (x).begin(), (x).end()
#define RALL(x... | #ifdef _MSC_VER
#include "stdc++.h"
#endif
#ifdef __GNUC__
#include <bits/stdc++.h>
#endif
using namespace std;
using ll = long long;
// constant
const double EPS = 1e-10;
#define REP(i, n) for (ll i = 0; i < n; i++)
#define FOR(i, s, e) for (ll i = s; i < e; i++)
#define ALL(x) (x).begin(), (x).end()
#define RALL(x... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 57, 64, 1, 0, 16, 31, 16, 12, 22], ["-", 75, 76, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 75, 76, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 332 |
#include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define endl '\n'
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int mod = 1e9 + 7;
// const int mod=998244353;
const double... | #include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define endl '\n'
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int mod = 1e9 + 7;
// const int mod=998244353;
const double... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 230 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t 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 (a) {
cout << "Yes";
} else {
cout << "No";
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t 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 (a > 0) {
cout << "Yes";
} else {
cout << "No";
}
return 0;
}
| [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 86 |
a, b, c, d = map(int, input().split())
takahashi = a//d if a%d ==0 else a//d+1
aoki = c//b if c//b ==0 else a//d+1
if takahashi >= aoki :
print("Yes")
else:
print("No") | a, b, c, d = map(int, input().split())
takahashi = a//d if a%d ==0 else a//d+1
aoki = c//b if c%b ==0 else c//b+1
if takahashi >= aoki :
print("Yes")
else:
print("No") | [["-", 0, 662, 12, 41, 0, 666, 0, 657, 17, 676], ["+", 0, 662, 12, 41, 0, 666, 0, 657, 17, 109], ["-", 0, 662, 12, 41, 0, 657, 31, 657, 31, 22], ["+", 0, 662, 12, 41, 0, 657, 31, 657, 31, 22], ["-", 0, 662, 12, 41, 0, 657, 31, 657, 12, 22], ["+", 0, 662, 12, 41, 0, 657, 31, 657, 12, 22]] | 5 | 73 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define FOR(i, l, r) for (i = l; i < r; i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(x) x.begin(), x.end()
#define P pair<ll, ll>
#define F first
#define S second
signed main() {
ll A, B, C, D;
cin >> A >> B >> C >> D;
A = (A + D - 1) / D;... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define FOR(i, l, r) for (i = l; i < r; i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(x) x.begin(), x.end()
#define P pair<ll, ll>
#define F first
#define S second
signed main() {
ll A, B, C, D;
cin >> A >> B >> C >> D;
A = (A + D - 1) / D;... | [["-", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 120 |
# -*- coding: utf-8 -*-
import sys
import math
from bisect import bisect_left
from bisect import bisect_right
import collections
import copy
import heapq
from collections import defaultdict
from heapq import heappop, heappush
import itertools
input = sys.stdin.readline
from collections import defaultdict
from heapq imp... | # -*- coding: utf-8 -*-
import sys
import math
from bisect import bisect_left
from bisect import bisect_right
import collections
import copy
import heapq
from collections import defaultdict
from heapq import heappop, heappush
import itertools
input = sys.stdin.readline
from collections import defaultdict
from heapq imp... | [["-", 0, 14, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 621 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll MOD = 1000000007;
const double PI = 3.14159265358979;
const ll INF = pow(10, 18);
typedef pair<ll, ll> P;
typedef vector<ll> vl;
typedef vector<vl> vvl;
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define rep(i, n) FOR(i, 0, n)
string abc ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll MOD = 1000000007;
const double PI = 3.14159265358979;
const ll INF = pow(10, 18);
typedef pair<ll, ll> P;
typedef vector<ll> vl;
typedef vector<vl> vvl;
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define rep(i, n) FOR(i, 0, n)
string abc ... | [["-", 51, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 43, 49, 50, 51, 16, 31, 16, 12, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 22]] | 1 | 165 |
#include <bits/stdc++.h>
using namespace std;
#define FASTIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define ll long ... | #include <bits/stdc++.h>
using namespace std;
#define FASTIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define ll long ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 215 |
#include <bits/stdc++.h>
using namespace std;
#include <algorithm>
int main() {
int long long t = 0, i = 0, j = 0;
double sum = 0, A, B, C, D;
string ans;
cin >> A >> B >> C >> D;
if (B >= C) {
ans = "Yes";
} else if (ceil(C / B) >= ceil(A / D)) {
ans = "Yes";
} else {
ans = "No";
}
c... | #include <bits/stdc++.h>
using namespace std;
#include <algorithm>
int main() {
int long long t = 0, i = 0, j = 0;
double sum = 0, A, B, C, D;
string ans;
cin >> A >> B >> C >> D;
if (B >= C) {
ans = "Yes";
} else if (ceil(C / B) <= ceil(A / D)) {
ans = "Yes";
} else {
ans = "No";
}
c... | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 112 |
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();
String s = "YES";
while (a - d > 0 || c - b > 0) {
c = c - b;
... | 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();
String s = "Yes";
while (a - d > 0 || c - b > 0) {
c = c - b;
... | [["-", 8, 196, 0, 503, 49, 200, 51, 5, 0, 491], ["+", 8, 196, 0, 503, 49, 200, 51, 5, 0, 491], ["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 491], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 491]] | 3 | 133 |
A, B, C, D = map(int, input().split())
t_attack = -(-1*C // B)
a_attack = -(-1*A / D)
if t_attack <= a_attack:
print("Yes")
else:
print('No') | A, B, C, D = map(int, input().split())
t_attack = -(-1*C // B)
a_attack = -(-1*A // D)
if t_attack <= a_attack:
print("Yes")
else:
print('No') | [["-", 0, 662, 12, 664, 28, 23, 0, 657, 17, 85], ["+", 0, 662, 12, 664, 28, 23, 0, 657, 17, 676]] | 5 | 61 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const string YES = "Yes";
const string NO = "No";
void solve(long long A, long long B, long long C, long long D) {
int win1 = C / B;
int win2 = A / D;
if (C % B != 0) {
win1++;
}
if (D % A != 0) {
win2++;
}
if (win1 <= win2) {
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const string YES = "Yes";
const string NO = "No";
void solve(long long A, long long B, long long C, long long D) {
int win1 = C / B;
int win2 = A / D;
if (C % B != 0) {
win1++;
}
if (A % D != 0) {
win2++;
}
if (win1 <= win2) {
... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 188 |
import math
A, B, C, D = map(int, input().split())
num_A = math.floor(C/B)
num_B = math.floor(A/D)
if num_A >= num_B:
print('Yes')
else:
print('No') | import math
A, B, C, D = map(int, input().split())
num_A = math.ceil(C/B)
num_B = math.ceil(A/D)
if num_A <= num_B:
print('Yes')
else:
print('No') | [["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 61 |
#include <bits/stdc++.h>
#define rep(i, N) for (ll(i) = 0; (i) < (N); (i)++)
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int mod = 1000000007;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int cnt = 0;
wh... | #include <bits/stdc++.h>
#define rep(i, N) for (ll(i) = 0; (i) < (N); (i)++)
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int mod = 1000000007;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int cnt = 0;
wh... | [["+", 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 | 145 |
a,b,c,d=map(int,input().split())
print("No"if c//b+int(c%b)>a//d+int(a%d) else"Yes") | a,b,c,d=map(int,input().split())
print("No"if c//b+int(c%b>0)>a//d+int(a%d>0) else"Yes") | [["+", 0, 657, 12, 652, 3, 4, 0, 666, 667, 47], ["+", 0, 657, 12, 652, 3, 4, 0, 666, 0, 612]] | 5 | 52 |
a, b, c, d = list(map(int, input().split()))
if (a-1)//d < (c-1)//b:
print("Yes")
else:
print("No") | a, b, c, d = list(map(int, input().split()))
if (a-1)//d < (c-1)//b:
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 | 54 |
t, a, ta, aa = list(map(int, input().split()))
while(True):
a -= ta
if a <= 0:
print("Yes")
break
t -= aa
if t <= 0:
print("No")
break | t, ta, a, aa = list(map(int, input().split()))
while(True):
a -= ta
if a <= 0:
print("Yes")
break
t -= aa
if t <= 0:
print("No")
break | [["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22]] | 5 | 58 |
a=list(map(int,input().split(" ")))
A=a[2]
B=a[0]
while True:
A-=a[1]
if A<0:
print("No")
break
B-=a[3]
if B<0:
print("Yes")
break
| a=list(map(int,input().split(" ")))
A=a[2]
B=a[0]
while True:
A-=a[1]
if A<=0:
print("Yes")
break
B-=a[3]
if B<=0:
print("No")
break
| [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 71 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
#include <iostream>
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
#include <iostream>
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 20], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 47], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 20], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47]] | 1 | 405 |
a,b,c,d=[int(x) for x in input().split()]
if (c-1)//b < (a-1)//d:
print("No")
else:
print("Yes") | a,b,c,d=[int(x) for x in input().split()]
if (c-1)//b > (a-1)//d:
print("No")
else:
print("Yes") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]] | 5 | 55 |
import sys
sys.setrecursionlimit(10**6)
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 | import sys
sys.setrecursionlimit(10**6)
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, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 65 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int i = 1;
while (A > 0 && C > 0) {
A -= D * i;
C -= B * i;
i++;
}
if (C > 0)
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 i = 1;
while (A > 0 && C > 0) {
A -= D;
C -= B;
i++;
}
if (C > 0)
cout << "No" << endl;
else
cout << "Yes" << endl;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 86 |
a, b, c, d = [int(i) for i in input().split()]
e = a//d + (0 if a%d == 0 else 1)
f = c//b + (0 if b%c == 0 else 1)
print("Yes" if e>=f else "No") | a, b, c, d = [int(i) for i in input().split()]
e = a//d + (0 if a%d == 0 else 1)
f = c//b + (0 if c%b == 0 else 1)
print("Yes" if e>=f else "No") | [["-", 12, 23, 0, 41, 0, 666, 0, 657, 31, 22], ["-", 12, 23, 0, 41, 0, 666, 0, 657, 17, 109], ["+", 12, 23, 0, 41, 0, 666, 0, 657, 17, 109], ["+", 12, 23, 0, 41, 0, 666, 0, 657, 12, 22]] | 5 | 72 |
a,b,c,d=map(int,input().split())
e=a//d
f=c//b
if a == d:
e -= 1
if b == c:
f -= 1
if e >= f:
print("Yes")
else:
print("No") | a,b,c,d=map(int,input().split())
e=a//d
f=c//b
if a % d == 0:
e -= 1
if c % b == 0:
f -= 1
if e >= f:
print("Yes")
else:
print("No") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 31, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]] | 5 | 65 |
#include <bits/stdc++.h>
using namespace std;
#define lli long long
#define all(i) i.begin(), i.end()
#define rall(i) i.rbegin(), i.rend()
#define rep0(i, j) for (lli i = 0; i < j; i++)
#define rep1(i, j) for (lli i = 1; i <= j; i++)
#define rep0d(i, j) for (lli i = j - 1; i >= 0; i--)
#define MOD 1000000007
#define M... | #include <bits/stdc++.h>
using namespace std;
#define lli long long
#define all(i) i.begin(), i.end()
#define rall(i) i.rbegin(), i.rend()
#define rep0(i, j) for (lli i = 0; i < j; i++)
#define rep1(i, j) for (lli i = 1; i <= j; i++)
#define rep0d(i, j) for (lli i = j - 1; i >= 0; i--)
#define MOD 1000000007
#define M... | [["-", 15, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 12, 23, 0, 41, 15, 16, 12, 16, 12, 22... | 1 | 1,309 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int i = 0;
while (a > 0 && c > 0) {
if (i % 2 == 0) {
c -= b;
} else {
a -= d;
}
i++;
}
if (a < 0)
cout << "No";
else
cout << "Yes";
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int i = 0;
while (a > 0 && c > 0) {
if (i % 2 == 0) {
c -= b;
} else {
a -= d;
}
i++;
}
if (a <= 0)
cout << "No";
else
cout << "Yes";
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 91 |
/*
██████╗ ███████╗
██╔══██╗ ██╔════╝
██████╔╝ ███████╗
██╔══██╗ ╚════██║
██║ ██║ ███████║
╚═╝ ╚═╝ ╚══════╝
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define rep(i, n) for (int i = 0; i < n; i++)
#define rev(i, n) for (int i = n - 1; i >= 0; i--)
#define haha(j, a, n) for (int j = ... |
/*
██████╗ ███████╗
██╔══██╗ ██╔════╝
██████╔╝ ███████╗
██╔══██╗ ╚════██║
██║ ██║ ███████║
╚═╝ ╚═╝ ╚══════╝
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define rep(i, n) for (int i = 0; i < n; i++)
#define rev(i, n) for (int i = n - 1; i >= 0; i--)
#define haha(j, a, n) for (int j = ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 287 |
#include <bits/stdc++.h>
//#include<unordered_map>
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
using namespace std;
#define int long long
#define ll long long
#define s... | #include <bits/stdc++.h>
//#include<unordered_map>
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
using namespace std;
#define int long long
#define ll long long
#define s... | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22]] | 1 | 553 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define rep2(i, n, m) for (int i = n; i < m; ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
typedef pair<int, int> P;
const int INF = 1001001001;
const int di[] = {-1, 0, 1, 0};
const int dj[] = {0, -1, 0, 1};
i... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define rep2(i, n, m) for (int i = n; i < m; ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
typedef pair<int, int> P;
const int INF = 1001001001;
const int di[] = {-1, 0, 1, 0};
const int dj[] = {0, -1, 0, 1};
i... | [["-", 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]] | 1 | 189 |
a,b,c,d=map(int,input().split())
ta=(c-1)//b+1
ao=(d-1)//a+1
print('Yes') if ta<=ao else print('No') | a,b,c,d=map(int,input().split())
ta=(c-1)//b+1
ao=(a-1)//d+1
print('Yes') if ta<=ao else print('No') | [["-", 12, 657, 31, 657, 31, 23, 0, 657, 31, 22], ["+", 12, 657, 31, 657, 31, 23, 0, 657, 31, 22], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22]] | 5 | 59 |
import java.io.*;
import java.util.*;
import java.math.*;
public class Main {
static long mod = 1000000007l;
static int max = Integer.MAX_VALUE, min = Integer.MIN_VALUE;
static long maxl = Long.MAX_VALUE, minl = Long.MIN_VALUE;
static BufferedReader br =
new BufferedReader(new InputStreamReader(System.in)... | import java.io.*;
import java.util.*;
import java.math.*;
public class Main {
static long mod = 1000000007l;
static int max = Integer.MAX_VALUE, min = Integer.MIN_VALUE;
static long maxl = Long.MAX_VALUE, minl = Long.MIN_VALUE;
static BufferedReader br =
new BufferedReader(new InputStreamReader(System.in)... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]] | 3 | 2,584 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = (int)(n - 1); i >= 0; i--)
#define all(x) (x).begin(), (x).end()
#define sz(x) int(x.size())
#define get_unique(x) x.erase(unique(all(x)), x.end());
typedef long long ll;
typedef complex<do... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = (int)(n - 1); i >= 0; i--)
#define all(x) (x).begin(), (x).end()
#define sz(x) int(x.size())
#define get_unique(x) x.erase(unique(all(x)), x.end());
typedef long long ll;
typedef complex<do... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 365 |
#include <stdio.h>
int main(void) {
int a, b, c, d, i;
int count1 = 0;
int count2 = 0;
scanf("%d %d %d %d", &a, &b, &c, &d);
for (i = 0; c > 0; i++) {
c -= b;
count1++;
}
for (i = 0; a > 0; i++) {
a -= d;
count2++;
}
if (count2 <= count1)
printf("Yes");
else
printf("No");
... | #include <stdio.h>
int main(void) {
int a, b, c, d, i;
int count1 = 0;
int count2 = 0;
scanf("%d %d %d %d", &a, &b, &c, &d);
for (i = 0; c > 0; i++) {
c -= b;
count1++; //高橋くんの攻撃回数
}
for (i = 0; a > 0; i++) {
a -= d;
count2++; //青木くんの攻撃回数
}
if (count1 <= count2)
printf("Yes");
... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 22]] | 0 | 117 |
import java.util.Scanner;
public 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();
if (Math.ceil((double)A / D) >= Math.ceil((double)C / D)) {
System.out.println("Yes");
} else {... | import java.util.Scanner;
public 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();
if (Math.ceil((double)A / D) >= Math.ceil((double)C / B)) {
System.out.println("Yes");
} else {... | [["-", 0, 16, 12, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 16, 12, 492, 3, 4, 0, 16, 12, 22]] | 3 | 121 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
bool win = true;
rep(i, 100) {
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
a -= d;
if (a <= 0) {
cout << "No" << en... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
bool win = true;
rep(i, 100) {
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
a -= d;
if (a <= 0) {
cout << "No" << en... | [["+", 0, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 0, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
bool L = 0;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
if (L == 0)
c -= b, L = 1 - L;
else
a -= d, L = 1 - L;
}
if (!a)
cout << "No\n";
else
cout << "Yes\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
bool L = 0;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
if (L == 0)
c -= b, L = 1 - L;
else
a -= d, L = 1 - L;
}
if (a <= 0)
cout << "No\n";
else
cout << "Yes\n";
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 91, 17, 111], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 98 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> ii;
typedef tuple<ll, ll, ll> iii;
typedef vector<ll> vi;
typedef vector<ii> vii;
typedef vector<iii> viii;
typedef vector<vi> vvi;
typedef vector<vii> vvii;
#define REP(i, n) for (ll i = 0; i < n; ++i)
#de... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> ii;
typedef tuple<ll, ll, ll> iii;
typedef vector<ll> vi;
typedef vector<ii> vii;
typedef vector<iii> viii;
typedef vector<vi> vvi;
typedef vector<vii> vvii;
#define REP(i, n) for (ll i = 0; i < n; ++i)
#de... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 233 |
import heapq
from collections import defaultdict, deque
from math import ceil, factorial, gcd
from itertools import accumulate
import sys
import bisect
sys.setrecursionlimit(10 ** 7)
INF = float("inf")
MOD = 10 ** 9 + 7
si = lambda: input().strip()
ii = lambda: int(input())
mii = lambda: map(int, input().split())
lm... |
import heapq
from collections import defaultdict, deque
from math import ceil, factorial, gcd
from itertools import accumulate
import sys
import bisect
sys.setrecursionlimit(10 ** 7)
INF = float("inf")
MOD = 10 ** 9 + 7
si = lambda: input().strip()
ii = lambda: int(input())
mii = lambda: map(int, input().split())
lm... | [["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]] | 5 | 197 |
#include <algorithm>
#include <iostream>
#include <list>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define mod 1000000007
long long binpow(long long a, long long b, long long m) {
a %= m;
long long res = 1;
while (b > 0) {
... | #include <algorithm>
#include <iostream>
#include <list>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define mod 1000000007
long long binpow(long long a, long long b, long long m) {
a %= m;
long long res = 1;
while (b > 0) {
... | [["-", 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 | 219 |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define F first
#define S second
#define pll pair<ll, ll>
#define all(x) x.begin(), x.end()
#define ed cout << "\n"
#define vll vector<ll>
#define vpll vector<pll>
#define ar array
#define sz(x) (ll) x.size()
#define NAME ""
bool isFile = 0;
typedef lo... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define F first
#define S second
#define pll pair<ll, ll>
#define all(x) x.begin(), x.end()
#define ed cout << "\n"
#define vll vector<ll>
#define vpll vector<pll>
#define ar array
#define sz(x) (ll) x.size()
#define NAME ""
bool isFile = 0;
typedef lo... | [["-", 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 | 263 |
a,b,c,d=map(int,input().split())
while True:
c-=b
if a<0:
print("Yes")
break
a-=d
if c<0:
print("No")
break | a,b,c,d=map(int,input().split())
while True:
c-=b
if c<=0:
print("Yes")
break
else:a-=d
if a<=0:
print("No")
break | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 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, 75, 76, 0, 95], ["+", 0, 52, 8, 196, 0, 57, 75, 76, 0, 102]] | 5 | 53 |
a,b,c,d=map(int,input().spplit())
index=0
for i in range(1000):
if index==0:
c=c-b
if c<=0:
print("Yes")
break
else:
index=1
else:
a=a-d
if a<=0:
print("No")
break
else:
index=0
| a,b,c,d=map(int,input().split())
index=0
for i in range(1000):
if index==0:
c=c-b
if c<=0:
print("Yes")
break
else:
index=1
else:
a=a-d
if a<=0:
print("No")
break
else:
index=0
| [["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22]] | 5 | 82 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double a = sc.nextDouble();
double b = sc.nextDouble();
double c = sc.nextDouble();
double d = sc.nextDouble();
String ans;
if (Math.ceil(a / d) < Math.ceil(c / d)) {
... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double a = sc.nextDouble();
double b = sc.nextDouble();
double c = sc.nextDouble();
double d = sc.nextDouble();
String ans;
if (Math.ceil(a / d) < Math.ceil(c / b)) {
... | [["-", 0, 16, 12, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 16, 12, 492, 3, 4, 0, 16, 12, 22]] | 3 | 120 |
#include <iostream>
using namespace std;
int main() {
int a, b; // takahashi
int c, d; // aoki
cin >> a >> b >> c >> d;
int buf1 = a;
int buf2 = c;
bool flag1 = false;
bool flag2 = false;
while (true) {
buf2 -= b;
if (buf2 >= 0) {
flag1 = true;
break;
}
buf1 -= d;
... | #include <iostream>
using namespace std;
int main() {
int a, b; // takahashi
int c, d; // aoki
cin >> a >> b >> c >> d;
int buf1 = a;
int buf2 = c;
bool flag1 = false;
bool flag2 = false;
while (true) {
buf2 -= b;
if (buf2 <= 0) {
flag1 = true;
break;
}
buf1 -= d;
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 124 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, cnt = 0;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
cnt++;
if (cnt % 2 == 1)
c -= b;
else
a -= d;
}
cout << (a == 0 ? "No" : "Yes");
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, cnt = 0;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
cnt++;
if (cnt % 2 == 1)
c -= b;
else
a -= d;
}
cout << (a <= 0 ? "No" : "Yes");
} | [["-", 0, 16, 12, 23, 0, 41, 15, 16, 17, 60], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 19]] | 1 | 83 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REP1(i, n) for (int i = 1; i < n + 1; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
#define SZ(x) ((int)(x).size())
#define ARRAY_LENGT... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REP1(i, n) for (int i = 1; i < n + 1; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
#define SZ(x) ((int)(x).size())
#define ARRAY_LENGT... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 246 |
#include <bits/stdc++.h>
using namespace std;
int A, B, C, D;
int main() {
cin >> A >> B >> C >> D;
int turn = 0;
while (true) {
if (turn == 0) {
C -= B;
if (C <= 0) {
cout << "YES" << endl;
break;
}
} else {
A -= D;
if (A <= 0) {
cout << "NO" << endl... | #include <bits/stdc++.h>
using namespace std;
int A, B, C, D;
int main() {
cin >> A >> B >> C >> D;
int turn = 0;
while (true) {
if (turn == 0) {
C -= B;
if (C <= 0) {
cout << "Yes" << endl;
break;
}
} else {
A -= D;
if (A <= 0) {
cout << "No" << endl... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 106 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = (c - 1) / b + 1; // t
int y = (a - 1) / d + 1; // aoki
if (x < y)
cout << "No" << endl;
else
cout << "Yes" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = (c - 1) / b + 1; // a
int y = (a - 1) / d + 1; // t
if (x > y)
cout << "No" << endl;
else
cout << "Yes" << endl;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 90 |
from sys import stdin
def main():
inp=stdin.readline
a,b,c,d=map(int, inp().split())
f=True
while a>0 or c>0:
if f:
a-=d
else:
c-=b
f=not(f)
if a>0:
print("Yes")
else:
print("No")
main() | from sys import stdin
def main():
inp=stdin.readline
a,b,c,d=map(int, inp().split())
f=False
while a>0 and c>0:
if f:
a-=d
else:
c-=b
f=not(f)
if a>0:
print("Yes")
else:
print("No")
main() | [["-", 0, 14, 8, 196, 0, 1, 0, 662, 12, 146], ["+", 0, 14, 8, 196, 0, 1, 0, 662, 12, 147], ["-", 0, 14, 8, 196, 0, 52, 15, 679, 17, 354], ["+", 0, 14, 8, 196, 0, 52, 15, 679, 17, 355]] | 5 | 85 |
#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("No");
return 0;
}
a = a - d;
if (a <= 0) {
printf("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) {
printf("Yes");
return 0;
}
a = a - d;
if (a <= 0) {
printf("No");
return 0;
}
}
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 90 |
a, b, c, d = map(int, input().split())
print('YNeos'[-(-a//d) < --(c//b)::2])
| a, b, c, d = map(int, input().split())
print('YNeos'[-(-a//d) < -(-c//b)::2])
| [["-", 206, 663, 0, 666, 0, 664, 28, 664, 17, 33], ["+", 0, 664, 28, 23, 0, 657, 31, 664, 17, 33]] | 5 | 46 |
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main() {
double A, B, C, D;
cin >> A >> B >> C >> D;
double t = A / D;
double a = C / B;
cout << (((t + 1) >= a) ? "Yes" : "No") << endl;
return 0;
}
| #include <cmath>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
int main() {
double A, B, C, D;
cin >> A >> B >> C >> D;
double t = A / D;
double a = C / B;
cout << ((ceil(t) >= a) ? "Yes" : "No") << endl;
return 0;
}
| [["+", 0, 41, 15, 23, 0, 16, 31, 2, 63, 22], ["-", 15, 23, 0, 16, 31, 23, 0, 16, 17, 72], ["-", 15, 23, 0, 16, 31, 23, 0, 16, 12, 13]] | 1 | 78 |
a, b,c,d = map(int, input().split())
wintaka = -(-c//b)
winao = -(-a//d)
if wintaka>=winao:
print('Yes')
else:
print('No') | a, b,c,d = map(int, input().split())
wintaka = -(-c//b)
winao = -(-a//d)
if wintaka<=winao:
print('Yes')
else:
print('No') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 57 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (true) {
C -= B;
if (C <= 0) {
std::cout << "Yes" << '\n';
return 0;
}
A -= D;
if (A <= 0) {
std::cout << "NO" << '\n';
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (true) {
C -= B;
if (C <= 0) {
std::cout << "Yes" << '\n';
return 0;
}
A -= D;
if (A <= 0) {
std::cout << "No" << '\n';
... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 99 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> PLL;
#define rep(i, n) for (ll i = 0;... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> PLL;
#define rep(i, n) for (ll i = 0;... | [["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 20], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 19]] | 1 | 1,507 |
#include <bits/stdc++.h>
using namespace std;
int a, b, c, d;
signed main() {
cin >> a >> b >> c >> d;
if (c / b + (c % d != 0) <= a / d + (a % d != 0))
puts("Yes");
else
puts("No");
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int a, b, c, d;
signed main() {
cin >> a >> b >> c >> d;
if (c / b + (c % b != 0) <= a / d + (a % d != 0))
puts("Yes");
else
puts("No");
return 0;
} | [["-", 31, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 12, 22]] | 1 | 75 |
import sys
input = sys.stdin.readline
ma = lambda : map(int,input().split())
ni = lambda : int(input())
a,b,c,d = ma()
import math
ceil =math.ceil
if ceil(c/b) <=ceil(a/d)+1:print("Yes")
else:print("No")
| import sys
input = sys.stdin.readline
ma = lambda : map(int,input().split())
ni = lambda : int(input())
a,b,c,d = ma()
import math
ceil =math.ceil
if ceil(c/b) <=ceil(a/d):print("Yes")
else:print("No")
| [["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 72], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 84 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define FAST \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define M 1000000007
void solve() {
ll a, b, c, d, f... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define FAST \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define M 1000000007
void solve() {
ll a, b, c, d, f... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 140 |
TH,TS,AH,AS = map(int,input().split())
while Ture:
AH -= TS
if AH <= 0:
print('Yes')
break
else:
TH -= AS
if TH <= 0:
print('No')
break | TH,TS,AH,AS = map(int,input().split())
while True:
AH -= TS
if AH <= 0:
print('Yes')
break
else:
TH -= AS
if TH <= 0:
print('No')
break | [["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 146]] | 5 | 55 |
#include <bits/stdc++.h>
using namespace std;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define deg_to_rad(deg) (((deg) / 360) * 2 * M_PI)
#define rad_to_deg(rad) (((rad) / 2 / M_PI) * 360)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i < (int)(n); i++)
int... | #include <bits/stdc++.h>
using namespace std;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define deg_to_rad(deg) (((deg) / 360) * 2 * M_PI)
#define rad_to_deg(rad) (((rad) / 2 / M_PI) * 360)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i < (int)(n); i++)
int... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 257 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.