buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
import sys
input = sys.stdin.readline
# B - Battle
def win_takahashi(A, B, C, D):
for i in range(300):
if i % 2 == 0:
C -= B
if C <= 0:
return True
else:
D -= A
if A <= 0:
return False
A, B, C, D = map(int, input().split())
if win_takahashi(A, B, C, D):
print('Yes')
else:
prin... | import sys
input = sys.stdin.readline
# B - Battle
def win_takahashi(A, B, C, D):
for i in range(300):
if i % 2 == 0:
C -= B
if C <= 0:
return True
else:
A -= D
if A <= 0:
return False
A, B, C, D = map(int, input().split())
if win_takahashi(A, B, C, D):
print('Yes')
else:
prin... | [["-", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22], ["-", 75, 76, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 12, 22]] | 5 | 105 |
#include <stdio.h>
int main(void) {
int A, B, C, D, counter = 0;
scanf("%d %d %d %d", &A, &B, &C, &D);
while (A >= 0 && C >= 0) {
if (counter % 2 == 0) {
C -= B;
} else {
A -= D;
}
counter++;
}
if (A <= 0) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int A, B, C, D, counter = 0;
scanf("%d %d %d %d", &A, &B, &C, &D);
while (A > 0 && C > 0) {
if (counter % 2 == 0) {
C -= B;
} else {
A -= D;
}
counter++;
}
if (A <= 0) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | [["-", 0, 52, 15, 23, 0, 16, 31, 16, 17, 20], ["+", 0, 52, 15, 23, 0, 16, 31, 16, 17, 47], ["-", 0, 52, 15, 23, 0, 16, 12, 16, 17, 20], ["+", 0, 52, 15, 23, 0, 16, 12, 16, 17, 47]] | 0 | 107 |
F = list(map(int,input().split()))
A = F[0]
B = F[1]
C = F[2]
D = F[3]
count = 0
while(1):
if count%2==0:
C -= B
else:
A -= D
count += 1
if C<=0 and A<=0:
if C <= 0:
print('Yes')
break
else:
print('No')
break
| F = list(map(int,input().split()))
A = F[0]
B = F[1]
C = F[2]
D = F[3]
count = 0
while(1):
if count%2==0:
C -= B
else:
A -= D
count += 1
if C<=0 or A<=0:
if C <= 0:
print('Yes')
break
else:
print('No')
break
| [["-", 0, 52, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 0, 52, 8, 196, 0, 57, 15, 679, 17, 354]] | 5 | 97 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int cnt = 1;
int sw = 0;
while (sw = 0) {
//
if (cnt % 2 > 0) {
A = A - D;
if (A <= 0) {
sw = 1;
}
} else {
C = C - B;
if (C <= 0) {
sw = 1;
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int cnt = 0;
int sw = 0;
while (sw == 0) {
//
if (cnt % 2 > 0) {
A = A - D;
if (A <= 0) {
sw = 1;
}
} else {
C = C - B;
if (C <= 0) {
sw = 1;
}
... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 52, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 60]] | 1 | 130 |
A, B, C, D = [int(s) for s in input().split()]
turn = 0
while A > 0 and C > 0:
if turn == 0:
A -= D
turn = 1
else:
C -= B
turn = 0
if A > 0:
print("Yes")
else:
print("No") | A, B, C, D = [int(s) for s in input().split()]
turn = 0
while A > 0 and C > 0:
if turn == 0:
C -= B
turn = 1
else:
A -= D
turn = 0
if A > 0:
print("Yes")
else:
print("No") | [["-", 0, 57, 64, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 31, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 677, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 12, 22], ["-", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22], ["-", 75, 76, 8, 196, 0, 1, 0, 677, 12, 22], ["+"... | 5 | 74 |
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
#define QuatientRU(a, r) (a + r + 1) / r
int main() {
int a, b, c, d;
int x, y;
cin >> a >> b >> c >> d;
x = QuatientRU(c, b);
y = QuatientRU(a, d);
if (y >= x) {
cout << "Yes" << endl;
} else {
cout << "No" << end... | #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
#define QuatientRU(a, r) (a + r - 1) / r
int main() {
int a, b, c, d;
int x, y;
cin >> a >> b >> c >> d;
x = QuatientRU(c, b);
y = QuatientRU(a, d);
if (y >= x) {
cout << "Yes" << endl;
} else {
cout << "No" << end... | [["-", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59]] | 1 | 96 |
a, b, c, d = map(int, input().split())
while a>0 and c>0:
c -= b
a -= d
if a>0:
print("Yes")
else:
print("No")
| a, b, c, d = map(int, input().split())
while a>0 and c>0:
c -= b
a -= d
if c<=0:
print("Yes")
else:
print("No")
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 54 |
th,td,ah,ad = map(int,input().split())
x,y = (td+ah-1)//ah,(ad+th-1)//th
if(x<=y):print("Yes")
else:print("No")
| th,td,ah,ad = map(int,input().split())
x,y = (td+ah-1)//td,(ad+th-1)//ad
if(x<=y):print("Yes")
else:print("No")
| [["-", 0, 1, 0, 662, 12, 432, 0, 657, 12, 22], ["+", 0, 1, 0, 662, 12, 432, 0, 657, 12, 22]] | 5 | 64 |
/******************************************************************************
Online Java Compiler.
Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.
*****************************************************... | /******************************************************************************
Online Java Compiler.
Code, Compile, Run and Debug java program online.
Write your code in this editor and press "Run" button to execute it.
*****************************************************... | [["-", 0, 57, 75, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 75, 196, 0, 1, 0, 11, 12, 22], ["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 149 |
a, b, c, d = [int(s) for s in input().split(" ")]
while(True):
c -= b
if c <= 0:
print("Yes")
break
a -= d
if c <= 0:
print("No")
break | a, b, c, d = [int(s) for s in input().split(" ")]
while(True):
c -= b
if c <= 0:
print("Yes")
break
a -= d
if a <= 0:
print("No")
break | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 62 |
A,B,C,D = map(int,input().split())
if -A//D >= -C//B :
print('Yes')
else:
print('No')
| A,B,C,D = map(int,input().split())
if -(-A//D) >= -(-C//B) :
print('Yes')
else:
print('No')
| [["+", 0, 57, 15, 666, 0, 664, 28, 23, 0, 24], ["+", 0, 664, 28, 23, 0, 657, 31, 664, 17, 33], ["+", 0, 57, 15, 666, 0, 664, 28, 23, 0, 25], ["+", 0, 656, 0, 57, 15, 666, 0, 664, 17, 33]] | 5 | 45 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int a, b, c, d;
cin >> a >> b >> c >> d;
int order = 1;
while (true) {
if (order == 0) {
a -= d;
if (a <= 0) {
cout << "No" << en... | #include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int a, b, c, d;
cin >> a >> b >> c >> d;
int order = 1;
while (true) {
if (order == 0) {
a -= d;
if (a <= 0) {
cout << "No" << en... | [["-", 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, 0, 9, 0, 1, 0, 11, 12, 13]] | 1 | 129 |
a,b,c,d=map(int,input().split())
while not(a<=0 or c<=0):
a=a-d
c=c-b
if a<=0 and c<=0:
print("yes\n")
elif a<=0:
print("no\n")
else:
print("yes\n") | a,b,c,d=map(int,input().split())
while not(a<=0 or c<=0):
a=a-d
c=c-b
if a<=0 and c<=0:
print("Yes\n")
elif a<=0:
print("No\n")
else:
print("Yes\n") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 557, 0, 6, 0, 44], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 557, 0, 6, 0, 44]] | 5 | 79 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = c / b;
if (c % b != 0) {
x += 1;
}
int y = a / d;
if (a % d != 0) {
y += 1;
}
if (x >= y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = c / b;
if (c % b != 0) {
x += 1;
}
int y = a / d;
if (a % d != 0) {
y += 1;
}
if (x <= y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 103 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int i = 0;
while (c > 0 && a > 0) {
if (i % 2) {
a -= d;
} else {
c -= b;
}
i++;
}
if (c <= 0) {
cout << "yes";
} else {
cout << "no";
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int i = 0;
while (c > 0 && a > 0) {
if (i % 2) {
a -= d;
} else {
c -= b;
}
i++;
}
if (c <= 0) {
cout << "Yes";
} else {
cout << "No";
}
return 0;
} | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 96 |
from sys import stdin
import math
def main():
_in = [_.rstrip() for _ in stdin.readlines()]
A, B, C, D = list(map(int,_in[0].split(' '))) # type:list(int)
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
HP_takahashi = A
HP_aoki = C
while HP_takahashi-D > 0 or HP_aoki-B > 0:
HP_a... | from sys import stdin
import math
def main():
_in = [_.rstrip() for _ in stdin.readlines()]
A, B, C, D = list(map(int,_in[0].split(' '))) # type:list(int)
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
HP_takahashi = A
HP_aoki = C
while HP_takahashi-D > 0 or HP_aoki-B > 0:
HP_a... | [["-", 0, 666, 0, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 666, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 666, 0, 652, 3, 4, 0, 657, 17, 85], ["+", 0, 666, 0, 652, 3, 4, 0, 657, 12, 22]] | 5 | 214 |
a,b,c,d=map(int,input().split())
taka=c/b
ao=a/d
taka=taka if taka==c//b else taka+1
ao=ao if ao==a//d else ao+1
print("Yes" if taka<=ao else "No") | a,b,c,d=map(int,input().split())
taka=c/b
ao=a/d
taka=taka if taka==c//b else int(taka)+1
ao=ao if ao==a//d else int(ao)+1
print("Yes" if taka<=ao else "No") | [["+", 0, 662, 12, 41, 0, 657, 31, 652, 63, 22], ["+", 12, 41, 0, 657, 31, 652, 3, 4, 0, 24], ["+", 12, 41, 0, 657, 31, 652, 3, 4, 0, 25]] | 5 | 70 |
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
typedef long long ll;
typedef long double ld;
#define FASTIO \
ios_b... | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
typedef long long ll;
typedef long double ld;
#define FASTIO \
ios_b... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 177 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double a, b, c, d;
cin >> a >> b >> c >> d;
if (ceil(a / d) < ceil(b / c))
cout << "No";
else
cout << "Yes";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b, c, d;
cin >> a >> b >> c >> d;
if (ceil(a / d) < ceil(c / b))
cout << "No";
else
cout << "Yes";
return 0;
} | [["-", 51, 16, 12, 2, 3, 4, 0, 16, 31, 22], ["-", 51, 16, 12, 2, 3, 4, 0, 16, 17, 85], ["+", 51, 16, 12, 2, 3, 4, 0, 16, 17, 85], ["+", 51, 16, 12, 2, 3, 4, 0, 16, 12, 22]] | 1 | 63 |
a, b, c, d = list(map(int, input().split()))
x = int((a+d-1)/d)
y = int((c+b-1)/b)
print("Yes" if a >= b else "No")
| a, b, c, d = list(map(int, input().split()))
x = int((a+d-1)/d)
y = int((c+b-1)/b)
print("Yes" if x >= y else "No") | [["-", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22]] | 5 | 65 |
a,b,c,d=map(int, input().split())
while a>0 or c>0:
c=c-b
if c<=0:
break
a=a-d
if c<=0:
print('Yes')
else:
print('No') | a,b,c,d=map(int, input().split())
while a>0 and c>0:
c=c-b
if c<=0:
break
a=a-d
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 | 64 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
c -= b;
if (c <= 0) {
cout << "Yes\n";
break;
}
a -= d;
if (d <= 0) {
cout << "No\n";
break;
}
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
c -= b;
if (c <= 0) {
cout << "Yes\n";
break;
}
a -= d;
if (a <= 0) {
cout << "No\n";
break;
}
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 82 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
if (c % b != 0 && a % d != 0) {
if (a / d < c / b)
cout << "N";
else
cout << "Yes";
} else if (c % b != 0 && a % d == 0) {
if (a / d < c / b + 1)
cout << "No";
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
if (c % b != 0 && a % d != 0) {
if (a / d < c / b)
cout << "No";
else
cout << "Yes";
} else if (c % b != 0 && a % d == 0) {
if (a / d < c / b + 1)
cout << "No";... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]] | 1 | 199 |
#include <bits/stdc++.h>
#define int long long
#define float long double
#define PB push_back
#define MP make_pair
#define ss second
#define ff first
#define PI 3.14159265
#define fastrack \
ios_base::sync_with_stdio(false); ... | #include <bits/stdc++.h>
#define int long long
#define float long double
#define PB push_back
#define MP make_pair
#define ss second
#define ff first
#define PI 3.14159265
#define fastrack \
ios_base::sync_with_stdio(false); ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 157 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
a -= d;
if (a < 0) {
cout << "No" << endl;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
a -= d;
if (a <= 0) {
cout << "No" << endl;
break;
}
}
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]] | 1 | 82 |
#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
int a[N], b[N];
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int cnt = (c + b - 1) / b;
if (d * (cnt - 1) >= a) {
printf("Yes\n");
} else
printf("No\n");
} | #include <bits/stdc++.h>
using namespace std;
const int N = 100005;
int a[N], b[N];
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int cnt = (c + b - 1) / b;
if (d * (cnt - 1) < a) {
printf("Yes\n");
} else
printf("No\n");
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 92 |
#include <bits/stdc++.h>
#define ll long long
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>
#define ll long long
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;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 87 |
THP, TAT, AHP, AAT = map(int, input().split())
turn = 0
while True:
if turn % 2 == 0:
AHP -= TAT
if AHP <= 0:
print("Yes")
break
else:
THP -= AAT
if THP <= 0:
print("No")
break | THP, TAT, AHP, AAT = map(int, input().split())
turn = 0
while True:
if turn % 2 == 0:
AHP -= TAT
if AHP <= 0:
print("Yes")
break
else:
THP -= AAT
if THP <= 0:
print("No")
break
turn += 1 | [["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 65 |
/*
* Name : chaitanya
*
* Institute : ANITS,Visakhapatnam
*
*/
#include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <... | /*
* Name : chaitanya
*
* Institute : ANITS,Visakhapatnam
*
*/
#include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 627 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
if ((A + D) / D >= (C + B) / B) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
if ((A + D - 1) / D >= (C + B - 1) / B) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
}
| [["+", 51, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 12, 13]] | 1 | 70 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int n, m;
if (c % b == 0)
n = c / b;
else
n = c / b + 1;
if (a % d == 0)
m = a / d;
else
m = a / d + 1;
if (n >= m)
cout << "Yes\n";
else
cout << "No\n";
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int n, m;
if (c % b == 0)
n = c / b;
else
n = c / b + 1;
if (a % d == 0)
m = a / d;
else
m = a / d + 1;
if (n <= m)
cout << "Yes\n";
else
cout << "No\n";
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 103 |
a, b, c, d = map(int, input().split())
while True:
c = c - b
if(c <= 0):
print("YES")
break
else:
a = a - d
if (a <= 0):
print("NO")
break
| a, b, c, d = map(int, input().split())
while True:
c = c - b
if(c <= 0):
print("Yes")
break
else:
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 | 63 |
h1_init,a_t,h2_init,a_a = list(map(int, input().split()))
h1=h1_init
h2=h2_init
while h1>=0 or h2>=0:
h2=h2-a_t
if h2<=0:
print("yes")
break
h1=h1-a_a
if h1<=0 :
print("no")
break | h1_init,a_t,h2_init,a_a = list(map(int, input().split()))
h1=h1_init
h2=h2_init
while h1>=0 or h2>=0:
h2=h2-a_t
if h2<=0:
print("Yes")
break
h1=h1-a_a
if h1<=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 th, td, ah, ad;
cin >> th >> td >> ah >> ad;
while (th > 0 || ah > 0) {
if (ah - td <= 0) {
printf("Yes");
ah -= td;
} else {
ah -= td;
}
if (th - ad <= 0) {
printf("No");
th -= ad;
} else {
th -... | #include <bits/stdc++.h>
using namespace std;
int main() {
int th, td, ah, ad;
cin >> th >> td >> ah >> ad;
while (th > 0 || ah > 0) {
if (ah - td <= 0) {
printf("Yes");
ah -= td;
break;
} else {
ah -= td;
}
if (th - ad <= 0) {
printf("No");
th -= ad;
brea... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35]] | 1 | 99 |
import java.io.*;
import java.util.*;
public class Main {
static PrintWriter out;
static StringBuilder sb;
static int mod = 998244353;
static long inf = (long)1e18 + 1;
static int[] col;
static int n, m;
static ArrayList<Integer>[] ad;
static long[][][] memo;
static HashSet<Integer> h;
static int[]... | import java.io.*;
import java.util.*;
public class Main {
static PrintWriter out;
static StringBuilder sb;
static int mod = 998244353;
static long inf = (long)1e18 + 1;
static int[] col;
static int n, m;
static ArrayList<Integer>[] ad;
static long[][][] memo;
static HashSet<Integer> h;
static int[]... | [["-", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 619 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a <= 0 || c <= 0) {
c = c - b;
a = a - d;
if (c <= 0) {
cout << "Yes";
break;
}
if (a <= 0) {
cout << "No";
break... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0 || c > 0) {
c = c - b;
a = a - d;
if (c <= 0) {
cout << "Yes";
break;
}
if (a <= 0) {
cout << "No";
break;
... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 47], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47]] | 1 | 101 |
#include <bits/stdc++.h>
using namespace std;
#define MAX 2 * 10000
#define ll long long
#define input freopen("input.txt", "r", stdin)
#define output freopen("output.txt", "w", stdout)
#define inf 10000000
int main() {
// input;
// output;
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c = c -... | #include <bits/stdc++.h>
using namespace std;
#define MAX 2 * 10000
#define ll long long
#define input freopen("input.txt", "r", stdin)
#define output freopen("output.txt", "w", stdout)
#define inf 10000000
int main() {
// input;
// output;
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c = c -... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 107 |
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int a, b, c, d;
cin >> a >> b >> c >> d;
int k = 0;
while (a > 0 && c > 0) {
if (k % 2 == 0) {
c -= b;
k++;
} else {
a -= c;
k++;
}
}
if (a <= 0)
cout << "No";
else
cout << "Yes... | #include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int a, b, c, d;
cin >> a >> b >> c >> d;
int k = 0;
while (a > 0 && c > 0) {
if (k % 2 == 0) {
c -= b;
k++;
} else {
a -= d;
k++;
}
}
if (a <= 0)
cout << "No";
else
cout << "Yes... | [["-", 75, 76, 0, 9, 0, 1, 0, 11, 12, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 12, 22]] | 1 | 98 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int k = 0;
while (a > 0 && c > 0) {
if (k % 2 == 0) {
c -= b;
k++;
} else {
a -= c;
k++;
}
}
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;
int k = 0;
while (a > 0 && c > 0) {
if (k % 2 == 0) {
c -= b;
k++;
} else {
a -= d;
k++;
}
}
if (a <= 0) {
cout << "No";
} else
cout << "Yes";
}
| [["-", 75, 76, 0, 9, 0, 1, 0, 11, 12, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 12, 22]] | 1 | 96 |
a,b,c,d = map(int,input().split())
if -(-c/b) > -(-a//d):
print("Yes")
else:
print("No") | a,b,c,d = map(int,input().split())
if -(-c/b) <= -(-a//d):
print("Yes")
else:
print("No") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 51 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
scanf("%d%d%d%d", &a, &b, &c, &d);
while (a && c) {
a = min(0, a - d);
c = min(0, c - b);
}
if (c)
printf("No");
else
printf("Yes");
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
scanf("%d%d%d%d", &a, &b, &c, &d);
while (a && c) {
a = max(0, a - d);
c = max(0, c - b);
}
if (c)
printf("No");
else
printf("Yes");
} | [["-", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22]] | 1 | 89 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = a / d;
int y = c / d;
if (a / d != 0)
x++;
if (c / d != 0)
y++;
cout << (x >= y ? "Yes" : "No") << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = a / d;
int y = c / b;
if (a % d != 0)
x++;
if (c % b != 0)
y++;
cout << (x >= y ? "Yes" : "No") << endl;
return 0;
} | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 88 |
#define isFile 0
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <ctype.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <st... | #define isFile 0
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <ctype.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <st... | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22]] | 1 | 318 |
#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 5;
const int MOD = 1e9 + 7;
typedef long long ll;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int n1 = a / d;
int n2 = c / b;
if (a % d != 0)
n1++;
if (c % b != 0)
n2++;
if (n2 > n1)
cout << "no\n";
else
cout ... | #include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 5;
const int MOD = 1e9 + 7;
typedef long long ll;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int n1 = a / d;
int n2 = c / b;
if (a % d != 0)
n1++;
if (c % b != 0)
n2++;
if (n2 > n1)
cout << "No\n";
else
cout ... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 109 |
#include <cstdio>
using namespace std;
int a, b, c, d;
void solve() {
scanf("%d %d %d %d", &a, &b, &c, &d);
for (int i = 0; 0 < a || 0 < c; i++) {
if (i % 2)
a -= d;
else
c -= b;
}
if (0 >= a)
printf("No\n");
else
printf("Yes\n");
}
int main() {
solve();
return 0;
} | #include <cstdio>
using namespace std;
int a, b, c, d;
void solve() {
scanf("%d %d %d %d", &a, &b, &c, &d);
for (int i = 0; 0 < a && 0 < c; i++) {
if (i % 2)
a -= d;
else
c -= b;
}
if (0 >= a)
printf("No\n");
else
printf("Yes\n");
}
int main() {
solve();
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 106], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 98]] | 1 | 111 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = (c + b - 1) / b;
int y = (a + d - 1) / d;
if (x >= y) {
cout << "Yes";
} else {
cout << "No";
}
... | #include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = (c + b - 1) / b;
int y = (a + d - 1) / d;
if (y >= x) {
cout << "Yes";
} else {
cout << "No";
}
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 107 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update
using namespace std;
using namespace __gnu_pbds;
#define ll long long
#define pp pair<ll, ll>
typedef tree<pp, null_type, less<pp>, rb_tree_tag,
... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update
using namespace std;
using namespace __gnu_pbds;
#define ll long long
#define pp pair<ll, ll>
typedef tree<pp, null_type, less<pp>, rb_tree_tag,
... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 360 |
[a,b,c,d] = list(map(int, input().strip().split()))
x = (a+d-1)//d
y = (b+c-1)//b
if x >= y:
print("yes")
else:
print("no") |
[a,b,c,d] = list(map(int, input().strip().split()))
x = (a+d-1)//d
y = (b+c-1)//b
if x >= y:
print("Yes")
else:
print("No") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 70 |
t_hp, t_ap, a_hp, a_ap = map(int,input().split())
while t_hp > 0 or a_hp > 0:
a_hp -= t_ap
if a_hp <= 0:
return 'Yes'
break
t_hp -= a_ap
if t_hp <= 0:
return 'No'
break | t_hp, t_ap, a_hp, a_ap = map(int,input().split())
while t_hp > 0 or a_hp > 0:
a_hp -= t_ap
if a_hp <= 0:
print('Yes')
break
t_hp -= a_ap
if t_hp <= 0:
print('No')
break | [["-", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 55 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int n;
if (c % b == 0)
n = c / b;
else
n = c / b + 1;
if (a - (n - 1) * d > 0)
cout << "yes";
else
cout << "no";
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int n;
if (c % b == 0)
n = c / b;
else
n = c / b + 1;
if (a - (n - 1) * d > 0)
cout << "Yes";
else
cout << "No";
return 0;
} | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 87 |
a, b, c, d = map(int,input().split())
while True :
a -= d
if a <= 0:
print("Yes")
break
a -= d
if a <= 0:
print("No")
break | a, b, c, d = map(int,input().split())
while True:
c -= b
if c <= 0:
print("Yes")
break
a -= d
if a <= 0:
print("No")
break | [["-", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 677, 12, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 53 |
#include <math.h>
#include <stdio.h>
int main(void) {
int A, B, C, D;
scanf("%i %i %i %i", &A, &B, &C, &D);
while (1) {
C -= B;
if (C <= 0) {
printf("yes\n");
return 0;
}
A -= D;
if (A <= 0) {
printf("no\n");
return 0;
}
}
} | #include <math.h>
#include <stdio.h>
int main(void) {
int A, B, C, D;
scanf("%i %i %i %i", &A, &B, &C, &D);
while (1) {
C -= B;
if (C <= 0) {
printf("Yes\n");
return 0;
}
A -= D;
if (A <= 0) {
printf("No\n");
return 0;
}
}
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 91 |
#include <bits/stdc++.h>
using namespace std;
#define LL long long
#define ULL unsigned LL
#define LD long double
#define debug(x) cerr << #x << " " << x << endl;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
int j = 0;
while (a > 0 && c > ... | #include <bits/stdc++.h>
using namespace std;
#define LL long long
#define ULL unsigned LL
#define LD long double
#define debug(x) cerr << #x << " " << x << endl;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
int j = 1;
while (a > 0 && c > ... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 123 |
import java.util.Scanner;
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();
int count = 0;
while (true) {
if ((count % 2) == 0) {
C -=... | import java.util.Scanner;
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();
int count = 0;
while (true) {
if ((count % 2) == 0) {
C -=... | [["-", 64, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 64, 196, 0, 57, 15, 15, 0, 16, 17, 19], ["-", 75, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 75, 196, 0, 57, 15, 15, 0, 16, 17, 19]] | 3 | 149 |
#include <iostream>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int n = C % B > 0 ? C / B : C / B - 1;
if (A - D * n <= 0) {
cout << "no" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int n = C % B > 0 ? C / B : C / B - 1;
if (A - D * n <= 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | [["-", 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 <bits/stdc++.h>
#include <cmath>
#include <cstdlib>
#include <map>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (ceil(a / d) >= ceil(c / b))
cout << "Yes" <... | #include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <cstdlib>
#include <map>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (ceil((double)a / d) >= ceil((double)c / b))
... | [["+", 31, 2, 3, 4, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 16, 31, 74, 39, 77, 39, 40], ["+", 31, 2, 3, 4, 0, 16, 31, 74, 0, 25], ["+", 15, 339, 51, 16, 12, 2, 3, 4, 0, 24], ["+", 12, 2, 3, 4, 0, 16, 31, 74, 0, 25]] | 1 | 87 |
a, b, c, d = map(int, input().split())
while c > 0 and a > 0:
c = c - b
a = a - d
if a <= 0:
print("No")
else:
print("Yes")
| a, b, c, d = map(int, input().split())
while c > 0 and a > 0:
c = c - b
a = a - d
if c > 0:
print("No")
else:
print("Yes")
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]] | 5 | 58 |
#pragma GCC optimize("O3")
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <l... | #pragma GCC optimize("O3")
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <l... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 307 |
a, b, c, d = map(int, input().split())
if (a-1)//d >= (b-1)//c:
print('Yes')
else:
print('No')
| a, b, c, d = map(int, input().split())
if (a-1)//d >= (c-1)//b:
print('Yes')
else:
print('No')
| [["-", 15, 666, 0, 657, 31, 23, 0, 657, 31, 22], ["+", 15, 666, 0, 657, 31, 23, 0, 657, 31, 22], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 51 |
a, b, c, d = map(int, input().split())
X=(a+d-1)/d
Y=(c+b-1)/b
if X >= Y:
s = "Yes"
else:
s = "No"
print(s) | a, b, c, d = map(int, input().split())
X = (a+d-1)//d
Y=(c+b-1)//b
if X >= Y:
s = "Yes"
else:
s = "No"
print(s) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]] | 5 | 63 |
function main(arg) {
var [A, B, C, D] = arg[0].split(' ').map(v => v - 0);
while (A > 0 || C > 0) {
C -= B;
if (C <= 0) {
console.log('yes')
break;
}
A -= D;
if (A <= 0) {
console.log('no')
break;
}
}
}
main(require("fs").readFileSync("/dev/stdin", "utf8").trim().... | function main(arg) {
var [A, B, C, D] = arg[0].split(' ').map(v => v - 0);
while (A > 0 || C > 0) {
C -= B;
if (C <= 0) {
console.log('Yes')
break;
}
A -= D;
if (A <= 0) {
console.log('No')
break;
}
}
}
main(require("fs").readFileSync("/dev/stdin", "utf8").trim().... | [["-", 0, 1, 0, 2, 3, 3, 0, 557, 0, 491], ["+", 0, 1, 0, 2, 3, 3, 0, 557, 0, 491]] | 2 | 127 |
#include <bits/stdc++.h>
#define IOFAST \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
using namespace std;
#define ll long ... | #include <bits/stdc++.h>
#define IOFAST \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
using namespace std;
#define ll long ... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 97 |
// BISMILLAHIR RAHMANIR RAHIM
// ALLAH HU AKABR
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
int x, y;
x = (a + d - 1) / d;
y = (c + b - 1) / b;
if (x >= y) {
cout << "yes" << endl;
} el... | // BISMILLAHIR RAHMANIR RAHIM
// ALLAH HU AKABR
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
int x, y;
x = (a + d - 1) / d;
y = (c + b - 1) / b;
if (x >= y)
cout << "Yes" << endl;
else
... | [["-", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 110 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if ((d - 1) / a + 1 <= (b - 1) / c + 1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if ((c - 1) / b + 1 <= (a - 1) / d + 1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [["-", 31, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["-", 15, 339, 51, 16, 31, 16, 31, 16, 12, 22], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 12, 22], ["-", 12, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 31, 22], ["-", 15, 339, 51, 16, 12, 16, 31, 16, ... | 1 | 73 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x, y;
x = d / b;
if (d % b != 0) {
x++;
}
y = a / c;
if (a % c != 0) {
y++;
}
if (x > y) {
cout << "No";
} else {
cout << "Yes";
}
} | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x, y;
x = c / b;
if (c % b != 0) {
x++;
}
y = a / d;
if (a % d != 0) {
y++;
}
// cout << x << " "<< y << endl;
if (x > y) {
cout << "No";
} else {
cout <... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 5... | 1 | 99 |
a,b,c,d=map(int,input().split())
print("Yes" if c//b<=a//d else "No") | a,b,c,d=map(int,input().split())
print("Yes" if -c//b>=-a//d else "No") | [["+", 0, 41, 0, 666, 0, 657, 31, 664, 17, 33], ["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 19], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 20]] | 5 | 38 |
a,b,c,d=map(int,input().split())
for _ in range(100):
a-=d
c-=b
if b<1:
print("Yes")
exit()
if a<1:
print("No")
exit() | a,b,c,d=map(int,input().split())
for _ in range(100):
a-=d
c-=b
if c<1:
print("Yes")
exit()
if a<1:
print("No")
exit() | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 62 |
def func(a,b,c,d):
while True:
c-=b
if c<0:
return "Yes"
a-=d
if a<0:
return "No"
print(func(*list(map(int,input().split())))) | def func(a,b,c,d):
while True:
c-=b
if c<=0:
return "Yes"
a-=d
if a<=0:
return "No"
print(func(*list(map(int,input().split()))))
| [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 61 |
def main():
A, B, C, D = map(int, input().split())
print(A, C)
while True:
C -= B
if C <= 0:
print('Yes')
break
A -= D
if A <= 0:
print('No')
break
if __name__ == '__main__':
main()
| def main():
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
if __name__ == '__main__':
main()
| [["-", 0, 14, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 74 |
#include <algorithm>
#include <cstring>
#include <iostream>
#include <math.h>
#define ll long long int
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0; i < 100; i++) {
c %= b;
if (c <= 0) {
cout << "Yes";
... | #include <algorithm>
#include <cstring>
#include <iostream>
#include <math.h>
#define ll long long int
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0; i < 100; i++) {
c -= b;
if (c <= 0) {
cout << "Yes";
... | [["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 110], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 113 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int a, b, c, 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) {... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int a, b, c, 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) {... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 114 |
/**
* Copyright(c)
* Author : tiketiskte
* Date : 2020-04-27-11.56.25
*/
#include <bits/stdc++.h>
#define IOS \
{ \
ios::sync_with_stdio(false); ... | /**
* Copyright(c)
* Author : tiketiskte
* Date : 2020-04-27-11.56.25
*/
#include <bits/stdc++.h>
#define IOS \
{ \
ios::sync_with_stdio(false); ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 94 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, n;
cin >> a >> b >> c >> d;
if (d % b == 0) {
n = d / b;
} else {
n = d / b + 1;
}
if (a - (n - 1) * d <= 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, n;
cin >> a >> b >> c >> d;
if (c % b == 0) {
n = c / b;
} else {
n = c / b + 1;
}
if (a - (n - 1) * d <= 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 64, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22]] | 1 | 98 |
#pragma GCC optimize("Ofast")
#include <algorithm>
#include <stdio.h>
using namespace std;
int main() {
int a, b, c, d;
scanf("%d%d%d%d", &a, &b, &c, &d);
while (1) {
c -= b;
if (c <= 0) {
puts("YES");
return 0;
}
a -= d;
if (a <= 0) {
puts("NO");
return 0;
}
}
}
| #pragma GCC optimize("Ofast")
#include <algorithm>
#include <stdio.h>
using namespace std;
int main() {
int a, b, c, d;
scanf("%d%d%d%d", &a, &b, &c, &d);
while (1) {
c -= b;
if (c <= 0) {
puts("Yes");
return 0;
}
a -= d;
if (a <= 0) {
puts("No");
return 0;
}
}
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 94 |
#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <u... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <u... | [["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 24], ["+", 51, 16, 31, 16, 31, 23, 0, 27, 17, 29], ["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 25]] | 1 | 236 |
# -*- coding: utf-8 -*-
"""
Spyderエディタ
これは一時的なスクリプトファイルです
"""
strT, pwT, strA, pwA = map(int, input().split())
while strT > 0 or strA > 0:
strA -= pwT
if strA <= 0:
break
strT -= pwA
print(strT, strA)
if strT > 0:
print('Yes')
else:
print('No') | # -*- coding: utf-8 -*-
"""
Spyderエディタ
これは一時的なスクリプトファイルです
"""
strT, pwT, strA, pwA = map(int, input().split())
while strT > 0 or strA > 0:
strA -= pwT
if strA <= 0:
break
strT -= pwA
if strT > 0:
print('Yes')
else:
print('No') | [["-", 0, 52, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 70 |
#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i, s, e) for (int i = s; i < e; i++)
#define endl '\n'
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int t_a = C / B;
if (C % B != 0)
t_a++;
int a_t = A / D;
if (A % D != 0)
a_t++;
if (t_a >= a_t)
cout ... | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i, s, e) for (int i = s; i < e; i++)
#define endl '\n'
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int t_a = C / B;
if (C % B != 0)
t_a++;
int a_t = A / D;
if (A % D != 0)
a_t++;
if (t_a <= a_t)
cout ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 106 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = 1; i <= (int)(n); i++)
#define pb push_back
#define all(v) v.begin(), v.end()
#define fi first
#define se second
using namespace std;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<vi> vii;
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = 1; i <= (int)(n); i++)
#define pb push_back
#define all(v) v.begin(), v.end()
#define fi first
#define se second
using namespace std;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<vi> vii;
... | [["-", 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 | 168 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
string print;
while (true) {
c -= b;
if (c <= 0) {
print = "YES";
break;
}
a -= d;
if (a <= 0) {
print = "NO";
break;
}
}
cout << print << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
string print;
while (true) {
c -= b;
if (c <= 0) {
print = "Yes";
break;
}
a -= d;
if (a <= 0) {
print = "No";
break;
}
}
cout << print << endl;
}
| [["-", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6]] | 1 | 86 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, cnt;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
cnt++;
if (d % 2 == 1)
c -= b;
else
a -= d;
}
if (a <= 0)
cout << "No";
else
cout << "Yes";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, cnt;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
cnt++;
if (cnt % 2 == 1)
c -= b;
else
a -= d;
}
if (a <= 0)
cout << "No";
else
cout << "Yes";
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 84 |
a, b, c, d = map(int,input().split())
cnt = 0
while a > 0 and c > 0:
if cnt%2==0:
c -= b
else:
a -= d
cnt += 1
if a < 0:
print("No")
else:
print("Yes")
| a, b, c, d = map(int,input().split())
cnt = 0
while a > 0 and c > 0:
if cnt%2==0:
c -= b
else:
a -= d
cnt += 1
if a <= 0:
print("No")
else:
print("Yes")
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 69 |
#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";
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 (1) {
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 | 77 |
def solve():
a,b,c,d=map(int,input().split())
i=0
while(a>0 and c>0):
if i%2==0:
c-=b
else:
a-=d
i+=1
if(c<0):
print('Yes')
else:
print('No')
solve()
|
def solve():
a,b,c,d=map(int,input().split())
i=0
while(a>0 and c>0):
if i%2==0:
c-=b
else:
a-=d
i+=1
if(c<=0):
print('Yes')
else:
print('No')
solve()
| [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 19]] | 5 | 81 |
// nani?
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/detail/standard_policies.hpp>
#include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update
#define pi acos(-1);
#define fs first
#define sc second
#define pb push_back
#define mp make_pai... | // nani?
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/detail/standard_policies.hpp>
#include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update
#define pi acos(-1);
#define fs first
#define sc second
#define pb push_back
#define mp make_pai... | [["+", 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 | 362 |
hT, sT, hA, sA = map(int, input().split())
win = ''
while True:
hA = hA-sT
if hA <= 0:
win = 'yes'
break
hT = hT - sA
if hT <= 0:
win = 'no'
break
print(win) | hT, sT, hA, sA = map(int, input().split())
win = ''
while True:
hA = hA-sT
if hA <= 0:
win = 'Yes'
break
hT = hT - sA
if hT <= 0:
win = 'No'
break
print(win) | [["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 63 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
int k = 0;
while (a > 0 && c > 0) {
if (k % 2 == 0) {
c -= b;
k++;
} else {
a -= c;
k++;
}
}
if (a <= 0)
cout ... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
int k = 0;
while (a > 0 && c > 0) {
if (k % 2 == 0) {
c -= b;
k++;
} else {
a -= d;
k++;
}
}
if (a <= 0)
cout ... | [["-", 75, 76, 0, 9, 0, 1, 0, 11, 12, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 12, 22]] | 1 | 118 |
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s = new Scanner(System.in);
int a = s.nextInt();
int b = s.nextInt();
int c = s.nextInt();
int d = s.nextInt();
int flag = 0;
while (true) {
if (a <= 0 || c <= 0) {
break;
} else {... | import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s = new Scanner(System.in);
int a = s.nextInt();
int b = s.nextInt();
int c = s.nextInt();
int d = s.nextInt();
int flag = 0;
while (true) {
if (a <= 0 || c <= 0) {
break;
} else {... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 17, 32], ["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["-", 75, 196, 0, 57, 64, 196, 0, 1, 0, 35]] | 3 | 163 |
#include <stdio.h>
int main() {
int a, b, c, d, turn = 0;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (1) {
turn++;
if (turn % 2 != 0) // odd-taka attacks
c = c - b;
else // even - ako attacks
a = a - d;
if (a <= 0 || c <= 0)
break;
}
if (a >= c)
puts("yes");
else
p... | #include <stdio.h>
int main() {
int a, b, c, d, turn = 0;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (1) {
turn++;
if (turn % 2 != 0) // odd-taka attacks
c = c - b;
else // even - ako attacks
a = a - d;
if (a <= 0 || c <= 0)
break;
}
if (a >= c)
puts("Yes");
else
p... | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 108 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int step = 1;
while (a > 0 && c > 0) {
if (step % 2 == 0)
a = a - d;
else
c = c - b;
step++;
}
if (a > c)
cout << "yes";
else
cout << "no";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int step = 1;
while (a > 0 && c > 0) {
if (step % 2 == 0)
a = a - d;
else
c = c - b;
step++;
}
if (a > c)
cout << "Yes ";
else
cout << "No ";
} | [["-", 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 | 91 |
A,B,C,D = map(int,input().split())
x = ((A+D)-1)/D
y = ((B+C)-1)/B
if(x>=y):
print('Yes')
else:
print('No') | A,B,C,D = map(int,input().split())
x = ((A+D)-1)//D
y = ((B+C)-1)//B
if(x>=y):
print('Yes')
else:
print('No')
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]] | 5 | 67 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
bool e = true;
while (1) {
if (e) {
c -= b;
} else {
a -= d;
}
if (d <= 0) {
cout << "Yes\n";
return 0;
}
if (a <= 0) {... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
bool e = true;
while (1) {
if (e) {
c -= b;
} else {
a -= d;
}
if (c <= 0) {
cout << "Yes\n";
return 0;
}
if (a <= 0) {... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 117 |
a, b, c, d = map(int, input().split())
takahashi = c / b
aoki = a / d
if c % b != 0:
takahashi += 1
if a % d != 0:
aoki += 1
if takahashi <= aoki:
print('Yes')
else:
print('No') | a, b, c, d = map(int, input().split())
takahashi = c // b
aoki = a // d
if c % b != 0:
takahashi += 1
if a % d != 0:
aoki += 1
if takahashi <= aoki:
print('Yes')
else:
print('No') | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]] | 5 | 69 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define mod 1000000007
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (ceil((double)a / (double)d) >= ceil((double)c / (double)b))
cout << "yes";
else
cout << "no";
cout << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define mod 1000000007
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (ceil((double)a / (double)d) >= ceil((double)c / (double)b))
cout << "Yes";
else
cout << "No";
cout << endl;
} | [["-", 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 | 82 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define mod 1000000007
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int flag, i = 0;
while (1) {
if (i % 2 == 0) {
c -= b;
if (c <= 0) {
flag = 1;
break;
}
} else {
a -= d;
if (... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define mod 1000000007
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int flag, i = 0;
while (1) {
if (i % 2 == 0) {
c -= b;
if (c <= 0) {
flag = 1;
break;
}
} else {
a -= d;
if (... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 125 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a >= 0) {
c -= b;
if (b <= 0)
break;
a -= d;
}
cout << (a <= 0 ? "No" : "Yes") << 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;
if (c <= 0)
break;
a -= d;
}
cout << (a <= 0 ? "No" : "Yes") << endl;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 73 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c = c - b;
a = a - d;
if (a <= 0) {
cout << "Yes";
break;
} else if (a <= 0) {
cout << "No";
break;
}
}
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c = c - b;
a = a - d;
if (c <= 0) {
cout << "Yes";
break;
} else 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 | 82 |
a, b, c, d = gets.split.map(&:to_i)
puts ((a + b - 1) / b >= (c + d - 1) / d) ? "Yes" : "No" | a, b, c, d = gets.split.map(&:to_i)
puts ((c + b - 1) / b <= (a + d - 1) / d) ? "Yes" : "No" | [["-", 31, 738, 31, 739, 0, 738, 31, 738, 31, 22], ["+", 31, 738, 31, 739, 0, 738, 31, 738, 31, 22], ["-", 3, 4, 0, 754, 15, 739, 0, 738, 17, 20], ["+", 3, 4, 0, 754, 15, 739, 0, 738, 17, 19], ["-", 12, 738, 31, 739, 0, 738, 31, 738, 31, 22], ["+", 12, 738, 31, 739, 0, 738, 31, 738, 31, 22]] | 4 | 47 |
#include <iostream>
using namespace std;
int main() {
int h1, s1, h2, s2;
cin >> h1 >> s1 >> h2 >> s2;
while (true) {
if (h2 - s1 >= 0)
h2 -= s1;
else {
cout << "No";
break;
}
if (h1 - s2 >= 0)
h1 -= s2;
else {
cout << "Yes";
break;
}
}
}
| #include <iostream>
using namespace std;
int main() {
int h1, s1, h2, s2;
cin >> h1 >> s1 >> h2 >> s2;
while (true) {
if (h2 - s1 > 0)
h2 -= s1;
else {
cout << "Yes";
break;
}
if (h1 - s2 > 0)
h1 -= s2;
else {
cout << "No";
break;
}
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 83 |
#include <bits/stdc++.h>
#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()
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> P;
const int INF = 1e9;
const int MOD = 1e9 + 7;
co... | #include <bits/stdc++.h>
#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()
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> P;
const int INF = 1e9;
const int MOD = 1e9 + 7;
co... | [["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 60], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 19]] | 1 | 164 |
def main():
A, B, C, D = map(int, input().split())
while True:
C -= B
if C <= 0:
print("No")
return 0
A -= D
if A <= 0:
print("Yes")
return 0
return 0
if __name__ == '__main__':
main() | def main():
A, B, C, D = map(int, input().split())
while True:
C -= B
if C <= 0:
print("Yes")
return 0
A -= D
if A <= 0:
print("No")
return 0
return 0
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 | 72 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.