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;
#define LL long long
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
cout << (((d + b - 1) / b <= (a + c - 1) / c) ? "Yes" : "No");
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define LL long long
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
cout << (((c + b - 1) / b <= (a + d - 1) / d) ? "Yes" : "No");
return 0;
}
| [["-", 31, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 41, 15, 23, 0, 16, 12, 16, 12, 22], ["+", 0, 41, 15, 23, 0, 16, 12, 16, 12, 22]] | 1 | 71 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define ALL(x) (x).begin(), (x).end()
#define READ(x) (cin >> (x))
#define WRITE_N(x) (cout << (x) << endl)
#define WRITE(x) (cout << (x))
int main() {
// get values from input
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define ALL(x) (x).begin(), (x).end()
#define READ(x) (cin >> (x))
#define WRITE_N(x) (cout << (x) << endl)
#define WRITE(x) (cout << (x))
int main() {
// get values from input
... | [["-", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["-", 0, 2, 3, 4, 0, 41, 75, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 75, 5, 0, 6]] | 1 | 141 |
a, b, c, d = [0] * 4
def format_input(filename = None):
global a, b, c, d
if filename == None:
a, b, c, d = list(map(int, input().split()))
elif filename == '__random__':
from random import randint as rng
a = rng(1, 10**1)
b = rng(1, 10**1)
c = rng(1, 10**1)
d = rng(1, 10**1)
print(a, b, c, d)
def... |
a, b, c, d = [0] * 4
def format_input(filename = None):
global a, b, c, d
if filename == None:
a, b, c, d = list(map(int, input().split()))
elif filename == '__random__':
from random import randint as rng
a = rng(1, 10**1)
b = rng(1, 10**1)
c = rng(1, 10**1)
d = rng(1, 10**1)
print(a, b, c, d)
def... | [["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676], ["-", 0, 14, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 181 |
a,b,c,d = map(int,input().split())
while a>0 or c>0 :
c = c-b
if c==0:
print('Yes')
break
else :
a = a-d
if a==0:
print('No')
break
else:
continue | a,b,c,d = map(int,input().split())
while a>0 or c>0 :
c = c-b
if c<=0:
print('Yes')
break
else:
a = a-d
if a<=0:
print('No')
break
else:
continue | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 68 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int i, j, k, l;
cin >> i >> j >> k >> l;
while (1) {
k = k - j;
if (k <= 0) {
cout << "YES" << endl;
return 0;
}
i = i - l;
if (i <= 0) {
cout << "NO" << endl;
return 0;... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int i, j, k, l;
cin >> i >> j >> k >> l;
while (1) {
k = k - j;
if (k <= 0) {
cout << "Yes" << endl;
return 0;
}
i = i - l;
if (i <= 0) {
cout << "No" << endl;
return 0;... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 94 |
#include <algorithm>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int main() {
int a, b, c, d;
int t, k;
cin >> a >> b >> c >> d;
if (c % b != 0)
t = c / b;
else
t = (c / b) + 1;
if (a % d != 0)
k = a / d;
else
k = (a / d) + 1;
if (t <... | #include <algorithm>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
int main() {
int a, b, c, d;
int t, k;
cin >> a >> b >> c >> d;
if (c % b == 0)
t = c / b;
else
t = (c / b) + 1;
if (a % d == 0)
k = a / d;
else
k = (a / d) + 1;
if (t ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 117 |
#include <cstdio>
int a, b, c, d;
int tim = 0;
int main() {
scanf("%d%d%d%d", &a, &b, &c, &d);
while (a > 0 && c > 0) {
++tim;
if (tim & 1)
c -= b;
else
a -= d;
}
puts(!c ? "Yes" : "No");
} | #include <cstdio>
int a, b, c, d;
int tim = 0;
int main() {
scanf("%d%d%d%d", &a, &b, &c, &d);
while (a > 0 && c > 0) {
++tim;
if (tim & 1)
c -= b;
else
a -= d;
}
puts(c <= 0 ? "Yes" : "No");
} | [["-", 0, 2, 3, 4, 0, 41, 15, 91, 17, 111], ["+", 0, 2, 3, 4, 0, 41, 15, 16, 17, 19], ["+", 0, 2, 3, 4, 0, 41, 15, 16, 12, 13]] | 1 | 85 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int cnt = 0, vnt = 0;
while (a > 0) {
a = a - d;
cnt++;
}
while (c > 0) {
c = c - b;
vnt++;
}
if (vnt > cnt)
cout << "no";
else
cout << "yes";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int cnt = 0, vnt = 0;
while (a > 0) {
a = a - d;
cnt++;
}
while (c > 0) {
c = c - b;
vnt++;
}
if (vnt > cnt)
cout << "No";
else
cout << "Yes";
}
| [["-", 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 | 93 |
#include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <cmath> //pow,logなど
#include <complex> //複素数
#include <deque> //両端アクセスのキュー
#include <functional> //sortのgreater
#include <iomanip> //setprecision(浮動小数点の出力の誤差)
#include <iostream> //入出力
#include <iter... | #include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <cmath> //pow,logなど
#include <complex> //複素数
#include <deque> //両端アクセスのキュー
#include <functional> //sortのgreater
#include <iomanip> //setprecision(浮動小数点の出力の誤差)
#include <iostream> //入出力
#include <iter... | [["-", 49, 50, 51, 16, 31, 23, 0, 16, 31, 22], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 31, 22], ["-", 31, 23, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 31, 22], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 337 |
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef unsigned long long ULL;
const int PI = 3.141592653589793;
const int inf = 1000111222;
const int mod = 1000000007;
const int N = 200007;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b, c, d;
cin >> a ... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef unsigned long long ULL;
const int PI = 3.141592653589793;
const int inf = 1000111222;
const int mod = 1000000007;
const int N = 200007;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b, c, d;
cin >> a ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 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 | 143 |
#include <cstdio>
using namespace std;
int main() {
int a, b, c, d;
bool flag = true;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (true) {
if (flag) {
if (c - b > 0) {
c = c - b;
flag = false;
} else {
printf("No");
return 0;
}
} else {
if (a - d >... | #include <cstdio>
using namespace std;
int main() {
int a, b, c, d;
bool flag = true;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (true) {
if (flag) {
if (c - b > 0) {
c = c - b;
flag = false;
} else {
printf("Yes");
return 0;
}
} else {
if (a - d ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 126 |
"""def power(x, y):
res = 1
x=x
while (y > 0):
if ((y & 1) == 1) :
res = (res * x)
y = y >> 1
x = (x * x)
return res"""
"""def fact(n):
if(n==0):
return 1
if(n==1):
return 1
return fact(n-1)+fact(n-2)"""
import math
#import combinatio... | """def power(x, y):
res = 1
x=x
while (y > 0):
if ((y & 1) == 1) :
res = (res * x)
y = y >> 1
x = (x * x)
return res"""
"""def fact(n):
if(n==0):
return 1
if(n==1):
return 1
return fact(n-1)+fact(n-2)"""
import math
#import combinati... | [["-", 0, 666, 0, 652, 3, 4, 0, 657, 17, 676], ["+", 0, 666, 0, 652, 3, 4, 0, 657, 17, 85], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 73 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int countT;
int countA;
for (int i = 0; i < 1000; i++) {
A = A - D;
if (A <= 0) {
countT = i;
break;
}
}
for (int i = 0; i < 1000; i++) {
C = C - B;
if (A <= 0) {
coun... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int countT;
int countA;
for (int i = 0; i < 1000; i++) {
A = A - D;
if (A <= 0) {
countT = i;
break;
}
}
for (int i = 0; i < 1000; i++) {
C = C - B;
if (C <= 0) {
coun... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 136 |
#include <bits/stdc++.h>
using namespace std;
class gfg {
/* Function to get no of set bits in binary
representation of passed binary no. */
public:
unsigned int countSetBits(int n) {
unsigned int count = 0;
while (n) {
n &= (n - 1);
count++;
}
return count;
}
} g;
vector<long long>... | #include <bits/stdc++.h>
using namespace std;
class gfg {
/* Function to get no of set bits in binary
representation of passed binary no. */
public:
unsigned int countSetBits(int n) {
unsigned int count = 0;
while (n) {
n &= (n - 1);
count++;
}
return count;
}
} g;
vector<long long>... | [["-", 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 | 1,962 |
A, B, C, D = list(map(int, input().split()))
a_count = A // D + (1 if A % D else 0)
t_count = C // B + (1 if C % B else 0)
ans = 'No' if t_count < a_count else 'Yes'
# print(t_count, a_count)
print(ans)
| A, B, C, D = list(map(int, input().split()))
t_count = A // D + (1 if A % D else 0)
a_count = C // B + (1 if C % B else 0)
ans = 'No' if t_count < a_count else 'Yes'
# print(t_count, a_count)
print(ans)
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]] | 5 | 71 |
A, B, C, D = map(int, input().split())
if C % B == 0:
takahashi_attack = C / B
else:
takahashi_attack = C / B + 1
if A % D == 0:
aoki_attack = A / D
else:
aoki_attack = A / D + 1
if takahashi_attack > aoki_attack:
print('No')
else:
print('Yes')
| A, B, C, D = map(int, input().split())
if C % B == 0:
takahashi_attack = C // B
else:
takahashi_attack = C // B + 1
if A % D == 0:
aoki_attack = A // D
else:
aoki_attack = A // D + 1
if takahashi_attack > aoki_attack:
print('No')
else:
print('Yes')
| [["-", 64, 196, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 676], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 85], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 676]] | 5 | 81 |
#include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define all(v) v.begin(), v.end()
#define sz size()
#define endl "\n"
#define pb push_back
#define pp pop_back
#define mp make_pair
#define REP(I, n) for (int I = 0; I < n; I++)
#define REP_1(I, n) for (int I = 1; I <= n; I++)
#define w(t... | #include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define all(v) v.begin(), v.end()
#define sz size()
#define endl "\n"
#define pb push_back
#define pp pop_back
#define mp make_pair
#define REP(I, n) for (int I = 0; I < n; I++)
#define REP_1(I, n) for (int I = 1; I <= n; I++)
#define w(t... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 681 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define REP(i, n) for (ll i = 0; i < n; ++i)
#define FOR(i, j, n) for (ll i = j; i < n; ++i)
#define MOD (1e9 + 7)
int main(void) {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll turn = 0;
while (a > 0 || c > 0) {
if (turn == 0) {
a -= d;... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define REP(i, n) for (ll i = 0; i < n; ++i)
#define FOR(i, j, n) for (ll i = j; i < n; ++i)
#define MOD (1e9 + 7)
int main(void) {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll turn = 0;
while (a > 0 && c > 0) {
if (turn == 1) {
a -= d;... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["-", 75, 76, 0, 9, 0, 1, 0, 11, 12, 13], ["+", 75, 76... | 1 | 127 |
A, B, C, D = map(int, input().split())
x = 0
while A > 0 or C > 0:
if x % 2 == 0:
C -= B
x += 1
else:
A -= D
x += 1
if C <= 0:
print('Yes')
else:
print('No')
| A, B, C, D = map(int, input().split())
x = 0
while A > 0 and C > 0:
if x % 2 == 0:
C -= B
x += 1
else:
A -= D
x += 1
if C <= 0:
print('Yes')
else:
print('No')
| [["-", 36, 36, 0, 656, 0, 52, 15, 679, 17, 354], ["+", 36, 36, 0, 656, 0, 52, 15, 679, 17, 355]] | 5 | 72 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const int INF = 1001001001;
using P = pair<int, int>;
int main(void) {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a) {
c = c - b;
if (c <= 0) {
cout << "Yes" << endl;
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const int INF = 1001001001;
using P = pair<int, int>;
int main(void) {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0) {
c = c - b;
if (c <= 0) {
cout << "Yes" << endl;
... | [["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13]] | 1 | 107 |
#include <stdio.h>
int main() {
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
while (1) {
C -= B;
if (C <= 0) {
printf("No");
break;
}
A -= D;
if (A <= 0) {
printf("Yes");
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 -= B;
if (C <= 0) {
printf("Yes");
break;
}
A -= D;
if (A <= 0) {
printf("No");
break;
}
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 87 |
# -*- coding: utf-8 -*-
a, b, c, d = map(int, input().split())
if a % d == 0:
taka = a / d
else:
taka = a / d + 1
if c % b == 0:
aoki = c / b
else:
aoki = c / b + 1
if taka >= aoki:
print("Yes")
else:
print("No") | # -*- coding: utf-8 -*-
a, b, c, d = map(int, input().split())
if a % d == 0:
taka = a // d
else:
taka = a // d + 1
if c % b == 0:
aoki = c // b
else:
aoki = c // b + 1
if taka >= aoki:
print("Yes")
else:
print("No") | [["-", 64, 196, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 676], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 17, 85], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 676]] | 5 | 82 |
a, b, c, d = gets.chomp.split(" ").map(&:to_i);
e = (a.to_f / d).ceil
f = (c.to_f / b).ceil
if f > e
puts "Yes"
else
puts "No"
end
| a, b, c, d = gets.chomp.split(" ").map(&:to_i);
e = (a.to_f / d).ceil
f = (c.to_f / b).ceil
if e >= f
puts "Yes"
else
puts "No"
end
| [["-", 36, 36, 0, 493, 0, 121, 15, 738, 31, 22], ["-", 36, 36, 0, 493, 0, 121, 15, 738, 17, 47], ["+", 36, 36, 0, 493, 0, 121, 15, 738, 17, 20], ["+", 36, 36, 0, 493, 0, 121, 15, 738, 12, 22]] | 4 | 61 |
/*
ID: yaoxinw2
TASK: test
LANG: C++
*/
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <complex>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
... | /*
ID: yaoxinw2
TASK: test
LANG: C++
*/
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <complex>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 186 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0 || c > 0) {
c -= b;
if (c <= 0) {
cout << "yes";
break;
}
a -= d;
if (a <= 0) {
cout << "no";
break;
}
}
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0 || c > 0) {
c -= b;
if (c <= 0) {
cout << "Yes";
break;
}
a -= d;
if (a <= 0) {
cout << "No";
break;
}
}
} | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 83 |
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int A, B, C, D;
int X, Y;
cin >> A >> B >> C >> D;
X = C % B;
if (X > 0) {
X = C / B + 1;
} else {
X = C / B;
}
Y = A % D;
if (Y > 0) {
Y = A / ... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int A, B, C, D;
int X, Y;
cin >> A >> B >> C >> D;
X = C % B;
if (X > 0) {
X = C / B + 1;
} else {
X = C / B;
}
Y = A % D;
if (Y > 0) {
Y = A / ... | [["-", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22]] | 1 | 134 |
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int maxn = 1e5 + 500;
int A[maxn], B[maxn];
int T, n;
map<string, int> mp;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (ceil(c * 1.0 / b) <= ceil(a / d))
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int maxn = 1e5 + 500;
int A[maxn], B[maxn];
int T, n;
map<string, int> mp;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (ceil(c * 1.0 / b) <= ceil(a * 1.0 / d))
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [["+", 12, 2, 3, 4, 0, 16, 31, 16, 17, 48], ["+", 12, 2, 3, 4, 0, 16, 31, 16, 12, 13]] | 1 | 103 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define all(v) v.begin(), v.end()
#define vec vector
typedef long long ll;
/* <<bit全探索>>
for (int tmp = 0; tmp < (1 << ビット数); tmp++) {
bitset<ビット数> s(tmp);
}
*/
/* <<stringで読み込んだ数列を一桁ずつint型へ変換>>
string ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define all(v) v.begin(), v.end()
#define vec vector
typedef long long ll;
/* <<bit全探索>>
for (int tmp = 0; tmp < (1 << ビット数); tmp++) {
bitset<ビット数> s(tmp);
}
*/
/* <<stringで読み込んだ数列を一桁ずつint型へ変換>>
string ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 156 |
#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 ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 208 |
#include <iostream>
using std ::cin;
using std ::cout;
using std ::endl;
int main() {
int A;
int B;
int C;
int D;
cin >> A >> B >> C >> D;
int count = 1;
while (A > 0 && C >> 0) {
if (count % 2 != 0) {
C -= B;
} else {
A -= D;
}
count++;
}
if (A > 0) {
cout << "Yes" << ... | #include <iostream>
using std ::cin;
using std ::cout;
using std ::endl;
int main() {
int A;
int B;
int C;
int D;
cin >> A >> B >> C >> D;
int count = 1;
while ((A > 0) && (C > 0)) {
if (count % 2 != 0) {
C -= B;
} else {
A -= D;
}
count++;
}
if (A > 0) {
cout << "Yes" ... | [["+", 0, 52, 15, 339, 51, 16, 31, 23, 0, 24], ["+", 0, 52, 15, 339, 51, 16, 31, 23, 0, 25], ["+", 0, 52, 15, 339, 51, 16, 12, 23, 0, 24], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 152], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 12, 23, 0, 25]] | 1 | 113 |
#include <algorithm>
#include <bits/stdc++.h>
using namespace std;
#define ll long long
void solve() {
int h1, s1, h2, s2;
cin >> h1 >> s1 >> h2 >> s2;
while (true) {
h2 -= s1;
if (h2 <= 0) {
cout << "yes";
break;
}
h1 -= s2;
if (h1 <= 0) {
cout << "no";
break;
}
... | #include <algorithm>
#include <bits/stdc++.h>
using namespace std;
#define ll long long
void solve() {
int h1, s1, h2, s2;
cin >> h1 >> s1 >> h2 >> s2;
while (true) {
h2 -= s1;
if (h2 <= 0) {
cout << "Yes";
break;
}
h1 -= s2;
if (h1 <= 0) {
cout << "No";
break;
}
... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 95 |
A,B,C,D = list(map(int,input().split()))
count1 = 0
count2 = 0
while A > 0:
A -= D
count1 += 1
while C > 0:
C -= B
count2 += 1
if count1 < count2:
print("NO")
else:
print("Yes") | A,B,C,D = list(map(int,input().split()))
count1 = 0
count2 = 0
while A > 0:
A -= D
count1 += 1
while C > 0:
C -= B
count2 += 1
if count1 < count2:
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 | 70 |
#include <bits/stdc++.h>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
#define rep(i, n) for (int i = 0; i < (int)... | #include <bits/stdc++.h>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
#define rep(i, n) for (int i = 0; i < (int)... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 266 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
typedef vector<int> vec1;
typedef vector<string> vec2;
typedef vector<double> vec3;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0; i < 1000; i++) {
c = c - b;
if (c < 1) {
cout << "No" << endl;
return... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
typedef vector<int> vec1;
typedef vector<string> vec2;
typedef vector<double> vec3;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0; i < 1000; i++) {
c = c - b;
if (c < 1) {
cout << "Yes" << endl;
retur... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 124 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int th, ta, ah, aa;
cin >> th >> ta >> ah >> aa;
while (true) {
ah = ah - ta;
if (ah <= 0)
break;
th = th - aa;
if (th <= 0)
break;
}
if (th == 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int th, ta, ah, aa;
cin >> th >> ta >> ah >> aa;
while (true) {
ah = ah - ta;
if (ah <= 0)
break;
th = th - aa;
if (th <= 0)
break;
}
if (th <= 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 92 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, x, y;
cin >> a >> b >> c >> d;
x = a / d;
y = c / b;
a = a % d;
c = c % b;
if (a != 0) {
x += 1;
} else if (c != 0) {
y += 1;
}
if (x >= y) {
cout << "Yes";
} else {
cout << "No";
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, x, y;
cin >> a >> b >> c >> d;
x = a / d;
y = c / b;
a = a % d;
c = c % b;
if (a != 0) {
x += 1;
}
if (c != 0) {
y += 1;
}
if (x >= y) {
cout << "Yes";
} else {
cout << "No";
}
} | [["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 107 |
import java.io.*;
import java.util.*;
public class Main {
static StringTokenizer st;
static BufferedReader br;
static PrintWriter out;
public static void main(String[] args) throws IOException {
br = new BufferedReader(new InputStreamReader(System.in));
int A = nextInt(); // health
int B = nextIn... | import java.io.*;
import java.util.*;
public class Main {
static StringTokenizer st;
static BufferedReader br;
static PrintWriter out;
public static void main(String[] args) throws IOException {
br = new BufferedReader(new InputStreamReader(System.in));
int A = nextInt(); // health
int B = nextIn... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 266 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
while ((a < 0) || (c < 0)) {
a -= d;
c -= b;
}
if (a > 0) {
Syste... | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
while ((a > 0) && (c > 0)) {
a -= d;
c -= b;
}
if (c > 0) {
Syste... | [["-", 15, 15, 0, 16, 31, 23, 0, 16, 17, 18], ["+", 15, 15, 0, 16, 31, 23, 0, 16, 17, 47], ["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 98], ["-", 15, 15, 0, 16, 12, 23, 0, 16, 17, 18], ["+", 15, 15, 0, 16, 12, 23, 0, 16, 17, 47], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["+... | 3 | 127 |
A, B, C, D = map(lambda x: int(x), input().split())
while true:
C -= B
if C < 1:
print('Yes')
break
A -= D
if A < 1:
print('No') | A, B, C, D = map(lambda x: int(x), input().split())
while True:
C -= B
if C < 1:
print('Yes')
break
A -= D
if A < 1:
print('No')
break | [["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 146], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 58 |
A, B, C, D = [int(x) for x in input().split()]
while(1):
if A > 0:
C = C - B
if C <= 0:
print('yes')
break
if C > 0:
A = A - D
if A <= 0:
print('No')
break | A, B, C, D = [int(x) for x in input().split()]
while(1):
if A > 0:
C = C - B
if C <= 0:
print('Yes')
break
if C > 0:
A = 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 | 73 |
#include <bits/stdc++.h>
using namespace std;
/// File input & output /////
#define fRead(x) freopen("x.txt", "r", stdin)
#define fWrite(x) freopen("x.txt", "w", stdout)
#define mt make_tuple
#define ld long double
#define ll long long
#define ull unsigned long long
#define ff first
#define ss second
#define pb push_... | #include <bits/stdc++.h>
using namespace std;
/// File input & output /////
#define fRead(x) freopen("x.txt", "r", stdin)
#define fWrite(x) freopen("x.txt", "w", stdout)
#define mt make_tuple
#define ld long double
#define ll long long
#define ull unsigned long long
#define ff first
#define ss second
#define pb push_... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["-", 64, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 0, 9, 0,... | 1 | 351 |
/*
author : Anand
*/
#include <bits/stdc++.h>
using namespace std;
#define PI 3.1415926535897932384626
#define int long long
#define ll long long
template <typename A, typename B> string to_string(pair<A, B> p);
template <typename A, typename B, typename C>
string to_string(tuple<A, B, C> p);
template <typename... | /*
author : Anand
*/
#include <bits/stdc++.h>
using namespace std;
#define PI 3.1415926535897932384626
#define int long long
#define ll long long
template <typename A, typename B> string to_string(pair<A, B> p);
template <typename A, typename B, typename C>
string to_string(tuple<A, B, C> p);
template <typename... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 757 |
a , b , c , d = input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
while True:
c -= b
if c < 0:
print('Yes')
break
a -= d
if a < 0:
print('No')
break
| a , b , c , d = input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
while True:
c -= b
if c <= 0:
print('Yes')
break
a -= d
if a <= 0:
print('No')
break
| [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 72 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
c += b - 1;
a += d - 1;
c /= b, a /= d;
if (a >= c)
cout << "yes" << endl;
else
cout << "no" << endl;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
c += b - 1;
a += d - 1;
c /= b, a /= d;
if (a >= c)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [["-", 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 | 74 |
#include <stdio.h>
#include <stdlib.h>
int comp(const void *a, const void *b) { return (*((int *)b) - *((int *)a)); }
int main(int argc, char *argv[]) {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (1) {
c -= b;
if (c <= 0)
break;
a -= d;
if (a <= 0)
break;
}
... | #include <stdio.h>
#include <stdlib.h>
int comp(const void *a, const void *b) { return (*((int *)b) - *((int *)a)); }
int main(int argc, char *argv[]) {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (1) {
c -= b;
if (c <= 0)
break;
a -= d;
if (a <= 0)
break;
}
... | [["-", 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 | 133 |
a,b,c,d = map(int,input().split())
if c%b>0:
x=c//b+1
else:
x=c//b
if a%d>0:
y=a//d+1
else:
y=a//d
print(x,y)
print('Yes' if x<=y else 'No') | a,b,c,d = map(int,input().split())
if c%b>0:
x=c//b+1
else:
x=c//b
if a%d>0:
y=a//d+1
else:
y=a//d
print('Yes' if x<=y else 'No') | [["-", 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], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 82 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int ct, ca;
ct = 0;
ca = 0;
while (c > 0) {
c = c - b;
ct += 1;
}
while (a > 0) {
a = a - d;
ca += 1;
}
if (ct >= ca) {
cout << "Yes" << endl;
} else {
cout << "No" << e... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int ct, ca;
ct = 0;
ca = 0;
while (c > 0) {
c = c - b;
ct += 1;
}
while (a > 0) {
a = a - d;
ca += 1;
}
if (ct <= ca) {
cout << "Yes" << endl;
} else {
cout << "No" << e... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 110 |
import java.io.*;
import java.util.*;
public class Main {
static StringTokenizer st;
static BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
public static void main(String[] args) throws IOException {
int health1 = nextInt();
int attack1 = nextInt();
int health2 = next... | import java.io.*;
import java.util.*;
public class Main {
static StringTokenizer st;
static BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
public static void main(String[] args) throws IOException {
int health1 = nextInt();
int attack1 = nextInt();
int health2 = next... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 287 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define sz(x) (int)x.size()
typedef pair<int, int> pii;
const int mxN = 2e5, M = 1e9 + 7;
int a, b, c, d;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cin >> a >> b >> c >> d;
int k = 0;
while (a > 0 && c > 0) {... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define sz(x) (int)x.size()
typedef pair<int, int> pii;
const int mxN = 2e5, M = 1e9 + 7;
int a, b, c, d;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cin >> a >> b >> c >> d;
int k = 0;
while (a > 0 && c > 0) {... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 141 |
#include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &d);
if ((a + d - 1) / d > (b + c - 1) / b) {
printf("Yes");
} else {
printf("No");
}
return (0);
}
| #include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &d);
if ((a + d - 1) / d >= (c + b - 1) / b) {
printf("Yes");
} else {
printf("No");
}
return (0);
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22]] | 0 | 103 |
#include <bits/stdc++.h>
#define pb push_back
#define mod int(1e9 + 7)
#define N int(2e5 + 100)
#define ll long long int
#define pii pair<int, int>
#define pll pair<ll, ll>
#define fi first
#define si second
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int a... | #include <bits/stdc++.h>
#define pb push_back
#define mod int(1e9 + 7)
#define N int(2e5 + 100)
#define ll long long int
#define pii pair<int, int>
#define pll pair<ll, ll>
#define fi first
#define si second
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int a... | [["-", 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], ["-", 12, 23, 0, 41, 15, 23, 0, 16, 17, 20], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 17, 19]] | 1 | 133 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (A > 0 && C > 0) {
C = C - B;
if (C <= 0)
break;
A = 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;
while (A > 0 && C > 0) {
C = C - B;
if (C <= 0)
break;
A = A - D;
}
if (A <= 0)
cout << "No";
else
cout << "Yes";
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 82 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int H1, A1, H2, A2;
cin >> H1 >> A1 >> H2 >> A2;
while (true) {
H2 -= A1;
if (H2 < 0) {
cout << "Yes" << endl;
break;
}
H1 -= A2;
if (H1 < 0) {
cout << "No" << endl;
break;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int H1, A1, H2, A2;
cin >> H1 >> A1 >> H2 >> A2;
while (true) {
H2 -= A1;
if (H2 <= 0) {
cout << "Yes" << endl;
break;
}
H1 -= A2;
if (H1 <= 0) {
cout << "No" << endl;
break;
}
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 81 |
import java.math.*;
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int Th = scan.nextInt();
int Ts = scan.nextInt();
int Ah = scan.nextInt();
int As = scan.nextInt();
int i = 0;
while (Th > 0 && Ah > 0) {
if ... | import java.math.*;
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int Th = scan.nextInt();
int Ts = scan.nextInt();
int Ah = scan.nextInt();
int As = scan.nextInt();
int i = 0;
while (Th > 0 && Ah > 0) {
if ... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19], ["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 60], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 19]] | 3 | 170 |
a,b,c,d = map(int, input().split(" "))
tao = a // d
ttk = c // b
if a%d == 0:
tao -=1
if c%b == 0:
ttk -=1
print(tao,ttk)
if tao >= ttk:
print("Yes")
else:
print("No") | a,b,c,d = map(int, input().split(" "))
tao = a // d
ttk = c // b
if a%d == 0:
tao -=1
if c%b == 0:
ttk -=1
if tao >= ttk:
print("Yes")
else:
print("No") | [["-", 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 | 78 |
a, b, c, d = map(int,input().split())
if (a - 1) / d + 1 >= (c - 1) / b + 1 :
print("Yes")
else : print("No") | a, b, c, d = map(int,input().split())
if (a - 1) // d + 1 >= (c - 1) // b + 1 :
print("Yes")
else : print("No")
| [["-", 0, 57, 15, 666, 0, 657, 31, 657, 17, 85], ["+", 0, 57, 15, 666, 0, 657, 31, 657, 17, 676]] | 5 | 55 |
/*
author: blue_matrix
*/
#include <bits/stdc++.h>
using namespace std;
#define n_l '\n'
#define dbg(...) \
cout << "[" << #__VA_ARGS__ << "]: "; \
cout << to_string(__VA_ARGS__) << endl
template <typename T, s... | /*
author: blue_matrix
*/
#include <bits/stdc++.h>
using namespace std;
#define n_l '\n'
#define dbg(...) \
cout << "[" << #__VA_ARGS__ << "]: "; \
cout << to_string(__VA_ARGS__) << endl
template <typename T, s... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 791 |
#include <bits/stdc++.h>
using namespace std;
int round(int n, int m) {
if (n % m == 0)
return n / m;
else
return int(n / m + 1);
}
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (d == 0) {
cout << "Yes" << endl;
return 0;
}
if (b == 0) {
cout << "No" << endl;
return 0;
... | #include <bits/stdc++.h>
using namespace std;
int round(int n, int m) {
if (n % m == 0)
return n / m;
else
return int(n / m + 1);
}
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (d == 0) {
cout << "Yes" << endl;
return 0;
}
if (b == 0) {
cout << "No" << endl;
return 0;
... | [["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 22], ["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 21], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 21], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 22]] | 1 | 153 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
int frag;
cin >> A >> B >> C >> D;
while (true) {
C = C - B;
if (C <= 0) {
frag = 0;
break;
}
A = A - D;
if (A <= 0) {
frag = 1;
break;
}
}
if (frag = 0)
cout << "yes" << endl;
e... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
int frag;
cin >> A >> B >> C >> D;
while (true) {
C = C - B;
if (C <= 0) {
frag = 0;
break;
}
A = A - D;
if (A <= 0) {
frag = 1;
break;
}
}
if (frag == 0)
cout << "Yes" << endl;
... | [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 109 |
def ceiling(a, b):
return (a + b - 1) / a
a, b, c, d = map(int, input().split())
if(ceiling(c, b) <= ceiling(a, d)): print('Yes')
else: print('No')
| def ceiling(a, b):
return int((a + b - 1) / b)
a, b, c, d = map(int, input().split())
if(ceiling(c, b) <= ceiling(a, d)): print('Yes')
else: print('No')
| [["+", 0, 14, 8, 196, 0, 37, 0, 652, 63, 22], ["+", 8, 196, 0, 37, 0, 652, 3, 4, 0, 24], ["-", 0, 14, 8, 196, 0, 37, 0, 657, 12, 22], ["+", 0, 37, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 8, 196, 0, 37, 0, 652, 3, 4, 0, 25]] | 5 | 69 |
#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;
}
if (a > 0) {
cout << "Yes";
} else if (a <= 0 && c <= 0) {
cout << "Yes";
} else {
cout << "No";
}
} | #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;
}
if (a > 0) {
cout << "Yes";
} else if (a <= 0 && c <= 0) {
cout << "Yes";
} else {
cout << "No";
}
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98]] | 1 | 93 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0 && b > 0) {
c -= b;
a -= d;
}
if (a < 1)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0 && b > 0) {
c -= b;
a -= d;
}
if (c < 1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 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 | 77 |
#include <stdio.h>
#include <stdlib.h>
void main(void) {
int a, b, c, d, t, aoki;
scanf("%d %d %d %d", &a, &b, &c, &d);
if (c <= b) {
t = 1;
} else {
t = c / b;
if (c % b > 0) {
t++;
}
}
if (a <= d) {
aoki = 1;
} else {
t = a / d;
if (a % d > 0) {
aoki++;
}
... | #include <stdio.h>
#include <stdlib.h>
void main(void) {
int a, b, c, d, t, aoki;
scanf("%d %d %d %d", &a, &b, &c, &d);
if (c <= b) {
t = 1;
} else {
t = c / b;
if (c % b > 0) {
t++;
}
}
if (a <= d) {
aoki = 1;
} else {
aoki = a / d;
if (a % d > 0) {
aoki++;
}... | [["-", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22]] | 0 | 136 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
int taka = c / b;
if (c % b != 0) {
taka++;
}
int ao = a / d;
if ... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
int taka = c / b;
if (c % b != 0) {
taka++;
}
int ao = a / d;
if ... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]] | 3 | 144 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (A > 0) {
C -= B;
A -= D;
if (C <= 0) {
cout << "YES" << endl;
break;
} else if (A <= 0) {
cout << "NO" << endl;
break;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (A > 0) {
C -= B;
A -= D;
if (C <= 0) {
cout << "Yes" << endl;
break;
} else if (A <= 0) {
cout << "No" << endl;
break;
}
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 84 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll A, B, C, D;
ll turn = 0;
ll sum = 0;
cin >> A >> B >> C >> D;
while (A > 0 && C >> 0) {
if (turn == 0) {
C -= B;
turn ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll A, B, C, D;
ll turn = 0;
ll sum = 0;
cin >> A >> B >> C >> D;
while (A > 0 && C > 0) {
if (turn == 0) {
C -= B;
turn =... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 152], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47]] | 1 | 125 |
a,b,c,d = map(int,input().split(" "))
while True:
c -= b
if c <= 0:
print("yes")
exit()
a -= d
if a <= 0:
print("yes")
exit()
| a,b,c,d = map(int,input().split(" "))
while True:
c -= b
if c <= 0:
print("Yes")
exit()
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 | 60 |
#include <algorithm>
#include <climits>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
// author:Swastik Banerjee
using namespace std;
typedef long long ll;
#define MOD 1000000007
int main() {
ios_base::sy... | #include <algorithm>
#include <climits>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
// author:Swastik Banerjee
using namespace std;
typedef long long ll;
#define MOD 1000000007
int main() {
ios_base::sy... | [["-", 3, 4, 0, 16, 31, 74, 51, 23, 0, 22], ["+", 3, 4, 0, 16, 31, 74, 51, 23, 0, 22], ["-", 3, 4, 0, 16, 12, 74, 51, 23, 0, 22], ["+", 3, 4, 0, 16, 12, 74, 51, 23, 0, 22]] | 1 | 139 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
bool flag = true;
while (a > 0 && c > 0) {
if (flag) {
c = c - b;
} else {
a = a - d;
}
}
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;
bool flag = true;
while (a > 0 && c > 0) {
if (flag) {
c = c - b;
} else {
a = a - d;
}
flag = !flag;
}
cout << (a > 0 ? "Yes" : "No") << endl;
} | [["+", 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 | 87 |
#include <bits/stdc++.h>
#include <vector>
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
if (ceil(C / B) <= ceil(A / D)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
#include <vector>
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
using namespace std;
int main() {
float A, B, C, D;
cin >> A >> B >> C >> D;
if (ceil(C / B) <= ceil(A / D)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
// cout << ceil(C / B) << ceil(A... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 78 |
#include <iostream>
// #include<bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <vector>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (A >= 0 || C >= 0) {
C -= B;
if (C < 0) {
cout << "No" << endl;
break;
}
A -= D;
if (A < 0) {
... | #include <iostream>
// #include<bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <vector>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (A >= 0 || C >= 0) {
C -= B;
if (C <= 0) {
cout << "Yes" << endl;
break;
}
A -= D;
if (A <= 0)... | [["-", 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 | 94 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (A > 0) {
C -= B;
A -= D;
if (C <= 0) {
cout << "Yes" << endl;
}
}
if (C > 0) {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (A > 0) {
C -= B;
A -= D;
if (C <= 0) {
cout << "Yes" << endl;
break;
}
}
if (C > 0) {
cout << "No" << endl;
}
} | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 79 |
'use strict';
function main(input) {
const arr = input.trim().split(' ');
const hpT = Number(arr[0]);
const attackT = Number(arr[1]);
const hpA = Number(arr[2]);
const attackA = Number(arr[3]);
const T = Math.ceil(hpA / attackT);
const A = Math.ceil(hpT / attackA);
if (T >= A) {
console.log('Yes')... | 'use strict';
function main(input) {
const arr = input.trim().split(' ');
const hpT = Number(arr[0]);
const attackT = Number(arr[1]);
const hpA = Number(arr[2]);
const attackA = Number(arr[3]);
const T = Math.ceil(hpA / attackT);
const A = Math.ceil(hpT / attackA);
if (T <= A) {
console.log('Yes')... | [["-", 8, 556, 0, 57, 15, 23, 0, 16, 17, 20], ["+", 8, 556, 0, 57, 15, 23, 0, 16, 17, 19]] | 2 | 145 |
#include <bits/stdc++.h>
#define ll long long int
#define fori(a, b) for (i = a; i < b; i++)
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll x = (c / b);
ll y = (a / d);
if (c % b != 0)
x += 1;
if (a % d != 0)
y += 1;
... | #include <bits/stdc++.h>
#define ll long long int
#define fori(a, b) for (i = a; i < b; i++)
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll x = (c / b);
ll y = (a / d);
if (c % b != 0)
x += 1;
if (a % d != 0)
y += 1;
... | [["-", 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 | 125 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int a, b, c, d;
int i = 0;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
if (i % 2 == 0)
c -= b;
else
a -= d;
i++;
}
if (a == 0)
cout << "No";
else
cout << "Yes";
... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int a, b, c, d;
int i = 0;
cin >> a >> b >> c >> d;
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, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 101 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long long ld;
typedef vector<int> vi;
typedef pair<ll, ll> pii;
struct Node {
int node, len;
Node() { node = len = 0; }
Node(int node, int len) { this->node = node, this->len = len; }
};
typedef vector<Node> vg;
#define MAX 1
#define N... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long long ld;
typedef vector<int> vi;
typedef pair<ll, ll> pii;
struct Node {
int node, len;
Node() { node = len = 0; }
Node(int node, int len) { this->node = node, this->len = len; }
};
typedef vector<Node> vg;
#define MAX 1
#define N... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 255 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c -= b;
if (c <= 0) {
cout << "YES" << endl;
break;
}
a -= d;
if (a <= 0) {
cout << "NO" << endl;
break;
}
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
a -= d;
if (a <= 0) {
cout << "No" << endl;
break;
}
}
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 84 |
def main():
t, t_a, a, a_a = list(map(int, input().split()))
while True:
a = a - t_a
if a <= 0:
print('No')
exit()
t = t - a_a
if t <= 0:
print('Yes')
exit()
if __name__ == '__main__':
main() | def main():
t, t_a, a, a_a = list(map(int, input().split()))
while True:
a = a - t_a
if a <= 0:
print('Yes')
exit()
t = t - a_a
if t <= 0:
print('No')
exit()
if __name__ == '__main__':
main() | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 79 |
#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, cnt = 0;
cin >> A >> B >> C >> D;
int t1 = A / D;
int t2 = C / B;
if (A % D) {
++t1;
}
if (C % B) {
++t2;
}
if (t1 <= t2) {
cout << "Yes" << endl;
} else {
cout <... | #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;
int t1 = A / D;
int t2 = C / B;
if (A % D) {
++t1;
}
if (C % B) {
++t2;
}
if (t1 >= t2) {
cout << "Yes" << endl;
} else {
cout << "No" <<... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 106 |
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
int t_s, t_a, a_s, a_a;
cin >> t_s >> t_a >> a_s >> a_a;
while (0) {
a_s = a_s - t_a;
if (a_s <= 0) {
break;
}
t_s = t_s - a_a;
if (t_s <= 0) {
break;
}
}
if (a_s <= 0) {
printf... | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main() {
int t_s, t_a, a_s, a_a;
cin >> t_s >> t_a >> a_s >> a_a;
while (1) {
a_s = a_s - t_a;
// printf("a_s %d\n", a_s);
if (a_s <= 0) {
break;
}
t_s = t_s - a_a;
// printf("t_s %d\n", t_s);
if (... | [["-", 0, 14, 8, 9, 0, 52, 15, 339, 51, 13], ["+", 0, 14, 8, 9, 0, 52, 15, 339, 51, 13]] | 1 | 103 |
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") | 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 | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 56 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int turn = 1;
while (A > 0 && C > 0) {
if (turn & 1) {
C -= B;
// cout << "Taka attacks: " << C << endl;
turn = 0;
} else {
A -= D;
// cout << "Aoki... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int turn = 1;
while (A > 0 && C > 0) {
if (turn & 1) {
C -= B;
// cout << "Taka attacks: " << C << endl;
turn = 0;
} else {
A -= D;
// cout << "Aoki... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 101 |
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <vector>
#define mod 1000000007
#define ll long long
#define pi acos(-1)
using namespace std;
int main() {
ios::sync_with_stdio(false);
int a, b, c, d;
... | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <vector>
#define mod 1000000007
#define ll long long
#define pi acos(-1)
using namespace std;
int main() {
ios::sync_with_stdio(false);
int a, b, c, d;
... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 112 |
A,B,C,D = map(int,input().split())
state = "Yes"
while 1:
C -= B
if C <= 0:
break
A -= D
if D <= 0:
state = "No"
break
print(state) | A,B,C,D = map(int,input().split())
state = "Yes"
while 1:
C -= B
if C <= 0:
break
A -= D
if A <= 0:
state = "No"
break
print(state) | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 55 |
a, b, c, d = map(int, input().split())
print('Yes' if int(c / b + 1) <= int(a / d + 1) else 'No') | a, b, c, d = map(int, input().split())
print('Yes' if int(c / b + 0.9999) <= int(a / d + 0.9999) else 'No') | [["-", 0, 666, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 666, 0, 652, 3, 4, 0, 657, 12, 531]] | 5 | 48 |
#include <bits/stdc++.h>
using namespace std;
int mod = 1e9 + 7;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0;; i++) {
if (i % 2 == 0) {
c -= b;
if (c <= 0) {
cout << "YES";
return 0;
}
} else {
a -= d;
if (a <= 0) {
cout << "NO... | #include <bits/stdc++.h>
using namespace std;
int mod = 1e9 + 7;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0;; i++) {
if (i % 2 == 0) {
c -= b;
if (c <= 0) {
cout << "Yes";
return 0;
}
} else {
a -= d;
if (a <= 0) {
cout << "No... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 106 |
import sys
inp=input().split(" ")
thp=int(inp[0])
tat=int(inp[1])
ahp=int(inp[2])
aat=int(inp[3])
for i in range(100):
ahp-=tat
if ahp<=0:
print("Yes")
sys.exit()
thp-=aat
if thp<=0:
print("Yes")
sys.exit() | import sys
inp=input().split(" ")
thp=int(inp[0])
tat=int(inp[1])
ahp=int(inp[2])
aat=int(inp[3])
for i in range(100):
ahp-=tat
if ahp<=0:
print("Yes")
sys.exit()
thp-=aat
if thp<=0:
print("No")
sys.exit()
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 96 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
int turn = 1;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
if (turn % 2 == 1) {
c -= b;
} else if (turn % 2 == 0) {
a -= d;
}
}
if (a > 0) {
cout << "Yes" << endl;
} else if (a <= 0) {
cout << "No" ... | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
int turn = 1;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
if (turn % 2 == 1) {
c -= b;
} else if (turn % 2 == 0) {
a -= d;
}
turn++;
}
if (a > 0) {
cout << "Yes" << endl;
} else if (a <= 0) {
c... | [["+", 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 | 113 |
a,b,c,d = map(int,input().split())
import math
if math.ceil(c/b)>=math.ceil(a/d):
print('Yes')
else:
print('None') | a,b,c,d = map(int,input().split())
import math
if math.ceil(c/b)<=math.ceil(a/d):
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], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 55 |
a,b,c,d = map(int,input().split())
count1 = 0
count2 = 0
while c>0:
c=c-b
count1+=1
while a>0:
a=a-d
count2+=1
if count1 < count2:
print('No')
else:
print('Yes') | a,b,c,d = map(int,input().split())
count1 = 0
count2 = 0
while c>0:
c=c-b
count1+=1
while a>0:
a=a-d
count2+=1
if count1>count2:
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 | 71 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int a, b, c, d, i = 1;
int main() {
cin >> a >> b >> c >> d;
while (a > 0 && b > 0) {
if (i & 1)
c -= b;
else
a -= d;
i++;
}
if (a <= 0)
cout << "No";
else
cout << "Yes";
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int a, b, c, d, i = 1;
int main() {
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
if (i & 1)
c -= b;
else
a -= d;
i++;
}
if (a <= 0)
cout << "No";
else
cout << "Yes";
} | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 31, 22]] | 1 | 89 |
A,B,C,D=map(int,input().split())
taka=C//B
if taka%B!=0:
taka=taka+1
aoki=A//D
if aoki%D!=0:
aoki=aoki+1
if taka <= aoki:
print("No")
else:
print("Yes")
|
A,B,C,D=map(int,input().split())
taka=C//B
if C%B!=0:
taka=taka+1
aoki=A//D
if A%D!=0:
aoki=aoki+1
if taka <= aoki:
print("Yes")
else:
print("No")
| [["-", 0, 656, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 31, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 73 |
#include <stdio.h>
int main(void) {
int a, b, c, d, i;
scanf("%d %d %d %d", &a, &b, &c, &d);
i = 0;
while (a > 0 && c > 0) {
if (i % 2 == 0) {
a -= d;
} else {
c -= b;
}
i++;
}
if (a > 0)
printf("No");
else
printf("Yes");
return 0;
} | #include <stdio.h>
int main(void) {
int a, b, c, d, i;
scanf("%d %d %d %d", &a, &b, &c, &d);
i = 0;
while (a > 0 && c > 0) {
if (i % 2 != 0) {
a -= d;
} else {
c -= b;
}
i++;
}
if (a > 0)
printf("Yes");
else
printf("No");
return 0;
} | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 79], ["-", 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 | 103 |
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();
for (int i = 0; i < 100; i++) {
C = C - B;
if (C <= 0) {
System.ou... | 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();
for (int i = 0; i < 100; i++) {
C = C - B;
if (C <= 0) {
System.ou... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22]] | 3 | 147 |
A, B, C, D = map(int, input().split())
print('Yes' if -(-D//B) <= -(-A//C) else 'No') | A, B, C, D = map(int, input().split())
print('Yes' if -(-C//B) <= -(-A//D) else 'No') | [["-", 0, 664, 28, 23, 0, 657, 31, 664, 28, 22], ["+", 0, 664, 28, 23, 0, 657, 31, 664, 28, 22], ["-", 0, 666, 0, 664, 28, 23, 0, 657, 12, 22], ["+", 0, 666, 0, 664, 28, 23, 0, 657, 12, 22]] | 5 | 46 |
a, b, c, d = gets.chop.split.map(&:to_i)
until a <= 0 || c <= 0
a -= d
c -= b
end
if a <= 0 && c <= 0
puts "Yes"
elsif a <= 0
puts "Yes"
else
puts "No"
end | a, b, c, d = gets.chop.split.map(&:to_i)
until a <= 0 || c <= 0
a -= d
c -= b
end
if a <= 0 && c <= 0
puts "Yes"
elsif c <= 0
puts "Yes"
else
puts "No"
end | [["-", 0, 493, 0, 121, 75, 759, 15, 738, 31, 22], ["+", 0, 493, 0, 121, 75, 759, 15, 738, 31, 22]] | 4 | 60 |
#include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define push_back(x) push_back(x)
#define ll long long
#define MP make_pair
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll j = 0;
ll ans = 0;
while (a > 0 && c > 0) {
if (j % 2 == 0) {
c = c - b;
ans = 1;
} else... | #include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define push_back(x) push_back(x)
#define ll long long
#define MP make_pair
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
ll j = 0;
ll ans = 0;
while (a > 0 && c > 0) {
if (j % 2 == 0) {
c = c - b;
// cout<<"hello"<<e... | [["+", 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 | 124 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pii pair<int, int>
#define _FastIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pii pair<int, int>
#define _FastIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 31, 22]] | 1 | 111 |
a,b,c,d=map(int,input().split())
tak=-(-a//d)
aoki=-(-c//b)
if tak<=aoki:
print('No')
else:
print('Yes') | a,b,c,d=map(int,input().split())
tak=-(-a//d)
aoki=-(-c//b)
if tak<aoki:
print('No')
else:
print('Yes') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18]] | 5 | 57 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
bool flg = true;
while (true) {
c -= b;
if (c <= 0) {
break;
}
a -= d;
if (a <= 0) {
flg = false;
break;
}
}
if (flg) {
cout << "No" << endl;
} else {
c... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
bool flg = true;
while (true) {
c -= b;
if (c <= 0) {
break;
}
a -= d;
if (a <= 0) {
flg = false;
break;
}
}
if (flg) {
cout << "Yes" << endl;
} else {
... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 102 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.