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 math
a, b, c, d = map(int, input().split())
t = math.ceil(a/d)
k = math.ceil(c/b)
if (t <= k):
print("Yes")
else:
print("No") | import math
a, b, c, d = map(int, input().split())
k = math.ceil(a/d)
t = math.ceil(c/b)
if (t <= k):
print("Yes")
else:
print("No") | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]] | 5 | 63 |
def solve():
A, B, C, D = map(int, input().split())
print('NYoe s'[-(-C//B) > -(-A//D)::2])
if __name__ == '__main__':
solve()
| def solve():
A, B, C, D = map(int, input().split())
print('YNeos'[-(-C//B) > -(-A//D)::2])
if __name__ == '__main__':
solve()
| [["-", 0, 652, 3, 4, 0, 206, 51, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 206, 51, 557, 0, 6]] | 5 | 61 |
#include <iostream>
using namespace std;
int main(void) {
int a, b, c, d;
cin >> a >> b >> c >> d;
cout << ((c + b - 1) / b <= (d + a - 1) / a ? "Yes" : "No") << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int a, b, c, d;
cin >> a >> b >> c >> d;
// cout << ((c+b-1)/b) << " " << ((a+d-1)/d) << endl;
cout << ((c + b - 1) / b <= (a + d - 1) / d ? "Yes" : "No") << endl;
return 0;
} | [["-", 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], ["-", 12, 23, 0, 41, 15, 16, 12, 16, 12, 22], ["+", 12, 23, 0, 41, 15, 16, 12, 16, 12, 22]] | 1 | 69 |
import math
a,b,c,d = map(int,input().rstrip().split(' '))
if math.ceil(c/b)>=math.ceil(a/d):
print('No')
else: print('Yes') | import math
a,b,c,d = map(int,input().rstrip().split(' '))
if math.ceil(c/b)>math.ceil(a/d):
print('No')
else: print('Yes') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]] | 5 | 62 |
A, B, C, D = map(int, input().split())
while A > 0 and C > 0:
C -= B
A -= D
print('Yes' if C == 0 else 'No' ) | A, B, C, D = map(int, input().split())
while A > 0 and C > 0:
C -= B
A -= D
print('Yes' if C <= 0 else 'No' ) | [["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 60], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 19]] | 5 | 49 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0; i < 100; i++) {
a -= d;
c -= b;
if (b <= 0) {
cout << "Yes" << endl;
return 0;
}
if (a <= 0) {
cout << "No" << endl;
return 0;
}
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0; i < 100; i++) {
a -= d;
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
return 0;
}
if (a <= 0) {
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]] | 1 | 93 |
A,B,C,D = list(map(int,input().split(" ")))
S,T = [0,0]
if A%D != 0:
S +=1
if C%B != 0:
T += 1
if C//B + T < A//D + S:
print("Yes")
else:
print("No") | A,B,C,D = list(map(int,input().split(" ")))
S,T = [0,0]
if A%D != 0:
S +=1
if C%B != 0:
T += 1
if C//B + T <= A//D + S:
print("Yes")
else:
print("No") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 82 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
bool TakahashiWin = false;
while (A >= 0) {
C -= B;
if (C <= 0) {
TakahashiWin = true;
break;
}
A -= D;
}
if (TakahashiWin) {
cout << "Yes" << endl;
} else {
cout << "... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
bool TakahashiWin = false;
while (A > 0) {
C -= B;
if (C <= 0) {
TakahashiWin = true;
break;
}
A -= D;
}
if (TakahashiWin) {
cout << "Yes" << endl;
} else {
cout << "N... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 91 |
#include <stdio.h>
int main(int argc, char const *argv[]) {
// 1<A,H<100
int takaA, takaH;
int aoA, aoH;
int takaC, aoC;
if (scanf("%d%d%d%d", &takaH, &takaA, &aoH, &aoA) != 4) {
return -1;
}
takaC = aoH / takaA;
aoC = takaH / aoA;
if (aoH % takaA != 0)
takaC++;
if (takaH % aoA != 0)
ao... | #include <stdio.h>
int main(int argc, char const *argv[]) {
// 1<A,H<100
int takaA, takaH;
int aoA, aoH;
int takaC, aoC;
if (scanf("%d%d%d%d", &takaH, &takaA, &aoH, &aoA) != 4) {
return -1;
}
takaC = aoH / takaA;
aoC = takaH / aoA;
if (aoH % takaA != 0)
takaC++;
if (takaH % aoA != 0)
ao... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 121 |
#include <stdio.h>
int main() {
int t_hp, t_a, a_hp, a_a;
int t_c, a_c;
if (scanf("%d%d", &t_hp, &t_a, &a_hp, &a_a) != 4)
return -1;
t_c = t_hp / a_a;
a_c = a_hp / t_a;
if (t_hp % a_a != 0) {
t_c++;
}
if (a_hp % t_a != 0) {
a_c++;
}
if (t_c >= a_c)
printf("Yes\n");
else
printf... | #include <stdio.h>
int main() {
int t_hp, t_a, a_hp, a_a;
int t_c, a_c;
if (scanf("%d%d%d%d", &t_hp, &t_a, &a_hp, &a_a) != 4)
return -1;
t_c = t_hp / a_a;
a_c = a_hp / t_a;
if (t_hp % a_a != 0) {
t_c++;
}
if (a_hp % t_a != 0) {
a_c++;
}
if (t_c >= a_c)
printf("Yes\n");
else
pr... | [["-", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6]] | 0 | 112 |
a,b,c,d = map(int,input().split())
#a = Takahashi's HP,b = T's ATK, c = Aoki's HP, d = A's ATK
#T -> A -> T -> A...
print("Yes" if (a//d)+1 >= (c//b) else "No") | a,b,c,d = map(int,input().split())
#a = Takahashi's HP,b = T's ATK, c = Aoki's HP, d = A's ATK
#T -> A -> T -> A...
print("Yes" if -(-a//d) >= -(-c//b) else "No") | [["+", 3, 4, 0, 41, 0, 666, 0, 664, 17, 33], ["+", 0, 664, 28, 23, 0, 657, 31, 664, 17, 33], ["-", 3, 4, 0, 41, 0, 666, 0, 657, 17, 72], ["-", 3, 4, 0, 41, 0, 666, 0, 657, 12, 612]] | 5 | 46 |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define ll long long
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
c -= b;
a -= d;
}
if (a > 0)
cout << "Yes\n";
else
cout << "No\n";
... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define ll long long
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
c -= b;
if (c > 0)
a -= d;
}
if (a > 0)
cout << "Yes\n";
else
co... | [["+", 8, 9, 0, 52, 8, 9, 0, 57, 0, 121], ["+", 0, 52, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 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, 12, 13], ["+", 0, 52, 8, 9, 0, 57, 15, 339, 0, 25]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using LL = long long;
using P = pair<int, int>;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (1) {
C -= B;
if (C < 0) {
cout << "No" << endl;
return 0;
}
A -= D;
if (A... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using LL = long long;
using P = pair<int, int>;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (1) {
C -= B;
if (C <= 0) {
cout << "Yes" << endl;
return 0;
}
A -= D;
if ... | [["-", 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 | 110 |
a,b,c,d=map(int,input().split())
if(((c+b-1)/b)<=((a+d-1)/d)):
print("Yes")
else:
print("No") | a,b,c,d=map(int,input().split())
if(int((c+b-1)/b)<=int((a+d-1)/d)):
print("Yes")
else:
print("No") | [["+", 0, 57, 15, 23, 0, 666, 0, 652, 63, 22]] | 5 | 61 |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
vector<int> g[100003];
vector<int> v(100003);
queue<int> q;
int main() {
double a, b, c, d;
cin >> a >> b >> c >> d;
int e = ceil(d / b);
int f = ceil(a / c);
if (e <= f) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
vector<int> g[100003];
vector<int> v(100003);
queue<int> q;
int main() {
double a, b, c, d;
cin >> a >> b >> c >> d;
int e = ceil(c / b);
int f = ceil(a / d);
// cout<<e<<" "<<f<<endl;
if (e <= f) {
cout << "Yes" << endl;
} else {
... | [["-", 49, 50, 51, 2, 3, 4, 0, 16, 31, 22], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 31, 22], ["-", 49, 50, 51, 2, 3, 4, 0, 16, 12, 22], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 22]] | 1 | 105 |
a, b, c, d = map(int, input().split())
tak = -(-c//b)
aok = -(-a//d)
if tak < aok:
print("No")
else:
print("Yes")
| a, b, c, d = map(int, input().split())
tak = -(-c//b)
aok = -(-a//d)
if tak > aok:
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 | 57 |
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef vector<int> vi;
int main(void) {
int a, b, c, d;
cin >> a >> b >> c >> d;
int l = 0;
while (l == 0) {
c -= b;
if (c <= 0) {
cout << "Yes";
return 0;
}
a -= d;
if (c <= 0) {
cout << "No";
ret... | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef vector<int> vi;
int main(void) {
int a, b, c, d;
cin >> a >> b >> c >> d;
int l = 0;
while (l == 0) {
c -= b;
if (c <= 0) {
cout << "Yes";
return 0;
}
a -= d;
if (a <= 0) {
cout << "No";
ret... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 104 |
a,b,c,d=map(int,input().split())
count=0
for i in range(100):
turn1=c-b
c=turn1
count+=1
if c<=0:
break
newcount=0
for i in range(100):
turn2=a-d
a=turn2
newcount+=1
if a<=0:
break
if count>=newcount:
print('Yes')
else:
print('No') | a,b,c,d=map(int,input().split())
count=0
for i in range(100):
turn1=c-b
c=turn1
count+=1
if c<=0:
break
newcount=0
for i in range(100):
turn2=a-d
a=turn2
newcount+=1
if a<=0:
break
if count<=newcount:
print('Yes')
else:
print('No') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 95 |
A,B,C,D=map(int,input().split())
Tattack=ceil(A/D)
Aattack=ceil(C/B)
if Tattack>=Aattack:
print("Yes")
else:
print("No") | import math
A,B,C,D=map(int,input().split())
Tattack=math.ceil(A/D)
Aattack=math.ceil(C/B)
if Tattack>=Aattack:
print("Yes")
else:
print("No")
| [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131]] | 5 | 55 |
def round_up(x):
if x>int(x):
return int(x)+1
else:
return int(x)
a,b,c,d=map(int,input().split())
m,n=round_up(a/b),round_up(c/d)
print('No' if m<n else 'Yes') | def round_up(x):
if x>int(x):
return int(x)+1
else:
return int(x)
a,b,c,d=map(int,input().split())
m,n=round_up(c/b),round_up(a/d)
print('No' if m>n else 'Yes')
| [["-", 12, 432, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 12, 432, 0, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 18], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 47]] | 5 | 79 |
A,B,C,D = list(map(int, input().split()))
takahashi = -(-C // B)
aoki = -(-A // D)
if(takahashi >= aoki):
print("Yes")
else:
print("No") | A,B,C,D = list(map(int, input().split()))
takahashi = -(-C // B)
aoki = -(-A // D)
if(takahashi > aoki):
print("No")
else:
print("Yes") | [["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 20], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 667, 47], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 62 |
a, b, c, d = map(int, input().split())
while a>0:
c = c - b
if c <= 0:
print("Yes")
break
a = a- d
if a <=0:
print("NO")
break | a, b, c, d = map(int, input().split())
while a>0:
c = c - b
if c <= 0:
print("Yes")
break
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 | 59 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits.h>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#incl... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits.h>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#incl... | [["+", 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 | 1,994 |
a,b,c,d = map(int,input().split())
c -= b
while(a>0):
c -= b
a -= d
if a>0:
print("Yes")
else:
print("No") | a,b,c,d = map(int,input().split())
c -= b
while(c>0):
c -= b
a -= d
if a>0:
print("Yes")
else:
print("No") | [["-", 0, 656, 0, 52, 15, 23, 0, 666, 0, 22], ["+", 0, 656, 0, 52, 15, 23, 0, 666, 0, 22]] | 5 | 55 |
#include <bits/stdc++.h>
#include <iostream>
#define ll long long int
#define pb push_back
#define mp make_pair
#define M 998244353
#define inarr(arr, n) \
; \
for (ll i = 0; i < n; i+... | #include <bits/stdc++.h>
#include <iostream>
#define ll long long int
#define pb push_back
#define mp make_pair
#define M 998244353
#define inarr(arr, n) \
; \
for (ll i = 0; i < n; i+... | [["+", 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 | 240 |
a,b,c,d = map(int,input().split())
aoki = c - b
takahasi = a - d
for i in range(100):
if i % 2 == 0:
c -= b
if c < 0:
print('Yes')
exit()
elif i % 2 == 1:
a -= d
if a < 0:
print('No')
exit()
| a,b,c,d = map(int,input().split())
aoki = c - b
takahasi = a - d
for i in range(10000):
if i % 2 == 0:
c -= b
if c <= 0:
print('Yes')
exit()
elif i % 2 == 1:
a -= d
if a <= 0:
print('No')
exit()
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 57, 64, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 667, 19], ["-", 75, 665, 64, 196, 0, 57, 15, 666, 667, 18], ["+", 75, 665, 64, 196, 0, 57, 15, 666, 667, 19]] | 5 | 86 |
#include <bits/stdc++.h>
using namespace std;
long long int a, b, c, d, x, y;
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> a >> b >> c >> d;
x = a / d;
if (a % d != 0)
x++;
y = c / d;
if (c % b != 0)
y++;
if (x <= y)
cout << "Yes";
else
cout << "No... | #include <bits/stdc++.h>
using namespace std;
long long int a, b, c, d, x, y;
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> a >> b >> c >> d;
x = a / d;
if (a % d != 0)
x++;
y = c / b;
if (c % b != 0)
y++;
if (x >= y)
cout << "Yes";
else
cout << "No... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 111 |
#include <bits/stdc++.h>
using namespace std;
// #define int ll
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using si = set<int>;
using ii = pair<int, int>;
using vii = vector<ii>;
#define rep(i, n) for (int i = 0; i < n; i++)
#define dotc() ... | #include <bits/stdc++.h>
using namespace std;
// #define int ll
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using si = set<int>;
using ii = pair<int, int>;
using vii = vector<ii>;
#define rep(i, n) for (int i = 0; i < n; i++)
#define dotc() ... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13]] | 1 | 231 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = ceil(c / b);
int y = ceil(a / d);
if (x <= y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = ceil((float)c / b);
int y = ceil((float)a / d);
if (x <= y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [["+", 51, 2, 3, 4, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 16, 31, 74, 39, 77, 39, 40], ["+", 51, 2, 3, 4, 0, 16, 31, 74, 0, 25], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 24]] | 1 | 80 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int m, l;
if (c % b == 0) {
m = c / b;
} else {
m = c / b + 1;
}
if (a % d == 0) {
l = a / d;
} else {
l = a / d + 1;
}
if (m > l) {
cout << "no";
} else {
... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int m, l;
if (c % b == 0) {
m = c / b;
} else {
m = c / b + 1;
}
if (a % d == 0) {
l = a / d;
} else {
l = a / d + 1;
}
if (m > l) {
cout << "No";
} else {
... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 115 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int da, dc;
da = (a + d - 1) / d;
dc = (c + b - 1) / b;
if (da < dc) {
cout << "NO";
} else {
cout << "YES";
}
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int da, dc;
da = (a + d - 1) / d;
dc = (c + b - 1) / b;
if (da < dc) {
cout << "No";
} else {
cout << "Yes";
}
}
| [["-", 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 | 89 |
a, b, c, d = list(map(int, input().split()))
if math.ceil(c/b) > math.ceil(a/d):
print('No')
else:
print('Yes')
| import math
a, b, c, d = list(map(int, input().split()))
if math.ceil(c/b) > math.ceil(a/d):
print('No')
else:
print('Yes')
| [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 56 |
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
ll mod = 1000000007;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int e = 1;
while (a > 0 && c > 0) {
if (e)
c -= b, e = 0;
else
... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
ll mod = 1000000007;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int e = 1;
while (a > 0 && c > 0) {
if (e)
c -= b, e = 0;
else
... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 108 |
a, b, c, d = map(int, input().split())
count_T = (c-1)//b + 1
count_A = (a-1)//d + 1
if count_T > count_A:
print("Yes")
else:
print("No")
| a, b, c, d = map(int, input().split())
count_T = (c-1)//b + 1
count_A = (a-1)//d + 1
if count_T > count_A:
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 | 61 |
A,B,C,D = map(int,input().split())
while A >= 0 and C >= 0:
C -= B
if C <= 0:
break
A -= D
if A <= 0:
print('No')
if C <= 0:
print('Yes')
# else:
# print(A,C) | A,B,C,D = map(int,input().split())
while A > 0 and C > 0:
C -= B
if C <= 0:
break
A -= D
if A <= 0:
print('No')
if C <= 0:
print('Yes')
# else:
# print(A,C) | [["-", 0, 656, 0, 52, 15, 679, 31, 666, 667, 20], ["+", 0, 656, 0, 52, 15, 679, 31, 666, 667, 47], ["-", 0, 656, 0, 52, 15, 679, 12, 666, 667, 20], ["+", 0, 656, 0, 52, 15, 679, 12, 666, 667, 47]] | 5 | 65 |
a, b, c, d = gets.split.map(&:to_i)
while (0 < a) && (0 < b) do
c = c - b
a = a - d
if (c <= 0) && (a <= 0)
puts 'Yes'
elsif (c <= 0) && (a > 0)
puts 'Yes'
elsif (a <= 0) && (c > 0)
puts 'No'
end
end | a, b, c, d = gets.split.map(&:to_i)
while (0 < a) && (0 < b) do
c = c - b
a = a - d
if (c <= 0) && (a <= 0)
puts 'Yes'
break
elsif (c <= 0) && (a > 0)
puts 'Yes'
break
elsif (a <= 0) && (c > 0)
puts 'No'
break
end
end | [["+", 8, 170, 0, 121, 64, 749, 0, 94, 0, 94], ["+", 0, 121, 75, 759, 64, 749, 0, 94, 0, 94], ["+", 75, 759, 75, 759, 64, 749, 0, 94, 0, 94]] | 4 | 90 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int e = (c + b - 1) / b;
int f = (a + d - 1) / d;
if (e >= f)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int e = (c + b - 1) / b;
int f = (a + d - 1) / d;
if (e <= f)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 80 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int Taka = A;
int Aoki = C;
while (Taka >= 0 && Aoki >= 0) {
Taka -= D;
Aoki -= B;
}
if (Taka <= 0 && Aoki > 0) {
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;
int Taka = A;
int Aoki = C;
while (Taka > 0 && Aoki > 0) {
Taka -= D;
Aoki -= B;
}
if (Taka <= 0 && Aoki > 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 20], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 47], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 20], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47]] | 1 | 95 |
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
d = int(x[3])
while a > 0 or c > 0:
c = c - b
a = a - d
if c <= 0:
print('Yes')
else:
print('No') | x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
d = int(x[3])
while a > 0 and c > 0:
c = c - b
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 | 83 |
#include <algorithm>
#include <assert.h>
#include <cmath>
#include <deque>
#include <float.h>
#include <functional>
#include <iostream>
#include <limits.h>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#incl... | #include <algorithm>
#include <assert.h>
#include <cmath>
#include <deque>
#include <float.h>
#include <functional>
#include <iostream>
#include <limits.h>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#incl... | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 110], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 110], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 1,985 |
A, B, C, D = map(int, input().split())
count = 0
while True:
if(count % 2 == 0):
C = C - B
count = count + 1
else:
A = A - D
count = count + 1
print(C, A)
if (A <= 0):
print("No")
break
elif(C <= 0):
print("Yes")
break
| A, B, C, D = map(int, input().split())
count = 0
while True:
if(count % 2 == 0):
C = C - B
count = count + 1
else:
A = A - D
count = count + 1
if (A <= 0):
print("No")
break
elif(C <= 0):
print("Yes")
break
| [["-", 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 | 91 |
a, b, c, d = map(int, input().split())
x = (a+d-1)/d
y = (c+b-1)/b
print("Yes" if x >= y else "No")
| a, b, c, d = map(int, input().split())
x = (a+d-1)//d
y = (c+b-1)//b
print("Yes" if x >= y else "No")
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]] | 5 | 56 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d; // thi,ans;
cin >> a >> b >> c >> d;
double g, h;
g = a;
h = b; // string s="...",ans;
a = ceil(g / d);
c = ceil(c / h);
// cin>>ans;
// if(ans.length()>=n) { ans=ans.substr(0,n); ans+=s;}
/* set<int>a={2,4,5,7,9},b={0,1,6,... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d; // thi,ans;
cin >> a >> b >> c >> d;
double g, h;
g = a;
h = b; // string s="...",ans;
a = ceil(g / d);
c = ceil(c / h);
// cin>>ans;
// if(ans.length()>=n) { ans=ans.substr(0,n); ans+=s;}
/* set<int>a={2,4,5,7,9},b={0,1,6,... | [["-", 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 | 91 |
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();
String flag;
while (true) {
C -= B;
if (C <= 0) {
flag =... |
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();
String flag;
while (true) {
C -= B;
if (C <= 0) {
flag =... | [["-", 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 | 154 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define repk(i, m, n) for (int i = m; i < n; i++)
#define IOS \
ios::sync_with_stdio(false); ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep1(i, n) for (int i = 1; i <= n; i++)
#define repk(i, m, n) for (int i = m; i < n; i++)
#define IOS \
ios::sync_with_stdio(false); ... | [["-", 51, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["-", 51, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 155 |
#include <bits/stdc++.h>
using namespace std;
using lli = long long;
using pii = pair<int, int>;
#define rep(i, k, n) for (int i = (k); i != int(n); ++i)
#define sz(x) x.size()
#define all(x) x.begin(), x.end()
#define dbg(x) cout << #x << '=' << x << '\n'
#define dbg2(x, y) cout << #x << '=' << x << ' ' << #y << '='... | #include <bits/stdc++.h>
using namespace std;
using lli = long long;
using pii = pair<int, int>;
#define rep(i, k, n) for (int i = (k); i != int(n); ++i)
#define sz(x) x.size()
#define all(x) x.begin(), x.end()
#define dbg(x) cout << #x << '=' << x << '\n'
#define dbg2(x, y) cout << #x << '=' << x << ' ' << #y << '='... | [["-", 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 | 169 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define w(e) \
int e; \
cin >> e; \
while (... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define w(e) \
int e; \
cin >> e; \
while (... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 174 |
a,b,c,d = map(int, input().split())
while(1):
c = c-b
if c <= 0:
print("Yws")
break
a = a-d
if a <= 0:
print("No")
break
| a,b,c,d = map(int, input().split())
while(1):
c = c-b
if c <= 0:
print("Yes")
break
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 | 59 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Integer tHP = sc.nextInt();
Integer tAT = sc.nextInt();
Integer aHP = sc.nextInt();
Integer aAT = sc.nextInt();
while (tHP > 0 || aHP > 0) {
aHP = aHP - tAT;
... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Integer tHP = sc.nextInt();
Integer tAT = sc.nextInt();
Integer aHP = sc.nextInt();
Integer aAT = sc.nextInt();
while (tHP > 0 && aHP > 0) {
aHP = aHP - tAT;
... | [["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 98]] | 3 | 128 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
int Acnt, Ccnt = 0;
cin >> A >> B >> C >> D;
A -= D;
while (A > 0) {
A -= D;
Acnt++;
}
C -= B;
while (C > 0) {
C -= B;
Ccnt++;
}
if (Acnt < Ccnt)
cout << "NO";
else
cout << "YES";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
int Acnt, Ccnt = 0;
cin >> A >> B >> C >> D;
A -= D;
while (A > 0) {
A -= D;
Acnt++;
}
C -= B;
while (C > 0) {
C -= B;
Ccnt++;
}
if (Acnt < Ccnt)
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 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int t = 0;
int k = 0;
if (c % b != 0) {
t = c / b + 1;
} else {
t = c / b;
}
if (a % d != 0) {
k = a / d + 1;
} else {
k = a / d;
}
if (t >= k) {
cout << "Yes";
} else {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int t = 0;
int k = 0;
if (c % b != 0) {
t = c / b + 1;
} else {
t = c / b;
}
if (a % d != 0) {
k = a / d + 1;
} else {
k = a / d;
}
if (t <= k) {
cout << "Yes";
} else {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 118 |
a,b,c,d=map(int,input().split())
while True:
c-=b
if c<1:
print('Yes')
break
a-=d
if a<1:
print('No') | a,b,c,d=map(int,input().split())
while True:
c-=b
if c<1:
print('Yes')
break
a-=d
if a<1:
print('No')
break | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 52 |
def main():
A, B, C, D = map(int, input().split())
while True:
C -= B
if C <= 0:
print("Yes")
quit()
A -= D
if A <= 0:
print("Np")
quit()
if __name__ == "__main__":
main()
| def main():
A, B, C, D = map(int, input().split())
while True:
C -= B
if C <= 0:
print("Yes")
quit()
A -= D
if A <= 0:
print("No")
quit()
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 |
a,b,c,d=map(int,input().split())
while a>0 and b>0:
c-=b
a-=d
if a<=0 and b>0:
print('No')
elif b<=0:
print('Yes') | a,b,c,d=map(int,input().split())
while a>0 and b>0:
c-=b
a-=d
if a<=0 and c>0:
print('No')
elif c<=0:
print('Yes') | [["-", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["-", 0, 656, 0, 57, 75, 665, 15, 666, 0, 22], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 0, 22]] | 5 | 61 |
#include <iostream>
using namespace std;
typedef long long li;
#define ceil(a, b) (((a) + (b)-1) / (b))
#define rep(i, n) for (int i = 0; i < (n); i++)
#define df 0
template <class T> void print(const T &t) { cout << t << "\n"; }
template <class T, class... Ts> void print(const T &t, const Ts &...ts) {
cout << t;
i... | #include <iostream>
using namespace std;
typedef long long li;
#define ceil(a, b) (((a) + (b)-1) / (b))
#define rep(i, n) for (int i = 0; i < (n); i++)
#define df 0
template <class T> void print(const T &t) { cout << t << "\n"; }
template <class T, class... Ts> void print(const T &t, const Ts &...ts) {
cout << t;
i... | [["-", 15, 23, 0, 16, 12, 2, 3, 4, 0, 22], ["-", 15, 23, 0, 16, 12, 2, 3, 4, 0, 21], ["+", 15, 23, 0, 16, 12, 2, 3, 4, 0, 21], ["+", 15, 23, 0, 16, 12, 2, 3, 4, 0, 22]] | 1 | 154 |
A,B,C,D = map(int,input().split())
Takahashi = A
Aoki = B
while Takahashi >= 0 or Aoki >=0:
Aoki -= B
if Aoki <= 0:
print('Yes')
break
Takahashi -= D
if Takahashi <= 0:
print('No')
break | A,B,C,D = map(int,input().split())
Takahashi = A
Aoki = C
while Takahashi >= 0 or Aoki >=0:
Aoki -= B
if Aoki <= 0:
print('Yes')
break
Takahashi -= D
if Takahashi <= 0:
print('No')
break | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22]] | 5 | 65 |
<?php
list($takahashi_hp, $takahashi_att, $aoki_hp, $aoki_att) = explode(' ', trim(fgets(STDIN)));
for ($i = 0; $i <= 100; $i++) {
(int)$aoki_hp -= (int)$takahashi_att;
if ($aoki_hp <= 0) {
echo 'YES';
break;
}
(int)$takahashi_hp -= (int)$aoki_att;
if ($takahashi_hp <= 0) {
... | <?php
list($takahashi_hp, $takahashi_att, $aoki_hp, $aoki_att) = explode(' ', trim(fgets(STDIN)));
for ($i = 0; $i <= 100; $i++) {
(int)$aoki_hp -= (int)$takahashi_att;
if ($aoki_hp <= 0) {
echo 'Yes';
break;
}
(int)$takahashi_hp -= (int)$aoki_att;
if ($takahashi_hp <= 0) {
... | [["-", 0, 57, 8, 9, 0, 608, 0, 557, 0, 610], ["+", 0, 57, 8, 9, 0, 608, 0, 557, 0, 610]] | 6 | 105 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D, i = 0, j = 0;
cin >> A >> B >> C >> D;
while (C > 0) {
C = C - B;
i++;
}
while (A > 0) {
A = A - D;
j++;
}
if (i < j) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D, i = 0, j = 0;
cin >> A >> B >> C >> D;
while (C > 0) {
C = C - B;
i++;
}
while (A > 0) {
A = A - D;
j++;
}
if (i <= j) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 103 |
line = gets.split(' ').map(&:to_i)
thp = line[0]
tat = line[1]
ahp = line[2]
aat = line[3]
for i in 1..1000 do
ahp -= tat
if ahp <= 0 then
print "Yes"
break
end
thp -= aat
if ahp <= 0 then
print "No"
break
end
end | line = gets.split(' ').map(&:to_i)
thp = line[0]
tat = line[1]
ahp = line[2]
aat = line[3]
for i in 1..1000 do
ahp -= tat
if ahp <= 0 then
print "Yes"
break
end
thp -= aat
if thp <= 0 then
print "No"
break
end
end | [["-", 0, 88, 8, 170, 0, 121, 15, 738, 31, 22], ["+", 0, 88, 8, 170, 0, 121, 15, 738, 31, 22]] | 4 | 76 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
int B = scan.nextInt();
int C = scan.nextInt();
int D = scan.nextInt();
while (true) {
C -= B;
if (C <= 0) {
System.out.p... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
int B = scan.nextInt();
int C = scan.nextInt();
int D = scan.nextInt();
while (true) {
C -= B;
if (C <= 0) {
System.out.p... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22]] | 3 | 127 |
#include <stdio.h>
int main(void) {
int a, b, c, d;
scanf("%d%d%d%d", &a, &b, &c, &d);
while (1) {
c -= b;
if (c <= 0) {
printf("yes\n");
break;
}
a -= d;
if (a <= 0) {
printf("No\n");
break;
}
}
return 0;
} | #include <stdio.h>
int main(void) {
int a, b, c, d;
scanf("%d%d%d%d", &a, &b, &c, &d);
while (1) {
c -= b;
if (c <= 0) {
printf("Yes\n");
break;
}
a -= d;
if (a <= 0) {
printf("No\n");
break;
}
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 90 |
A, B, C, D = [int(x) for x in input().split()]
run = True
while run:
C -= B
if C <= 0:
run = False
result = "Yes"
continue
A -= D
if A <= 0:
run = False
result = "No"
continue | A, B, C, D = [int(x) for x in input().split()]
run = True
while run:
C -= B
if C <= 0:
run = False
result = "Yes"
continue
A -= D
if A <= 0:
run = False
result = "No"
continue
print(result) | [["+", 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, 25]] | 5 | 64 |
import math
A, B, C, D = list(map(int, input().split()))
#小数点に注意
#今回の場合は切り上げすること
n = math.ceil(A / D)
m = math.ceil(C / A)
if n >= m:
print("Yes")
else:
print("No") | import math
A, B, C, D = list(map(int, input().split()))
#小数点に注意
#今回の場合は切り上げすること
n = math.ceil(A / D)
m = math.ceil(C / B)
if n >= m:
print("Yes")
else:
print("No") | [["-", 0, 662, 12, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 22]] | 5 | 66 |
A, B, C, D = map(int,input().split())
n = 0
m = 0
while C > 0:
n += 1
C -= B
while A > 0:
m += 1
A -= D
if n >= m:
print('No')
else:
print('Yes')
| A, B, C, D = map(int,input().split())
n = 0
m = 0
while C > 0:
n += 1
C -= B
while A > 0:
m += 1
A -= D
if n > m:
print('No')
else:
print('Yes') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]] | 5 | 67 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int step = 0;
while (1) {
if (a < 0 || c < 0) {
break;
}
if (step % 2 == 0) {
c -= b;
} else {
a -= d;
}
step++;
}
if (a > c) {
cout << "Yes" << endl;
} else {... | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int step = 0;
while (1) {
if (a <= 0 || c <= 0) {
break;
}
if (step % 2 == 0) {
c -= b;
} else {
a -= d;
}
step++;
}
if (a > c) {
cout << "Yes" << endl;
} else... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 110 |
<?php
// B
fscanf(STDIN, '%d %d %d %d', $a, $b, $c, $d);
$ans = (int) ceil($a / $d) >= (int) ceil($c / $b) ? 'Yse' : 'No';
echo $ans; | <?php
// B
fscanf(STDIN, '%d %d %d %d', $a, $b, $c, $d);
$ans = (int) ceil($a / $d) >= (int) ceil($c / $b) ? 'Yes' : 'No';
echo $ans; | [["-", 0, 1, 0, 11, 12, 41, 8, 557, 0, 610], ["+", 0, 1, 0, 11, 12, 41, 8, 557, 0, 610]] | 6 | 62 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
string k = "Yes";
while (a > 0 || c > 0) {
c -= b;
if (c <= 0) {
k = "Yes";
break;
}
a -= d;
if (a <= 0) {
k = "No";
}
}
cout << k << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
string k = "Yes";
while (a > 0 || c > 0) {
c -= b;
if (c <= 0) {
k = "Yes";
break;
}
a -= d;
if (a <= 0) {
k = "No";
break;
}
}
cout << k << endl;
return 0;
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 97 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (A <= 0 or C <= 0) {
C -= B;
if (C <= 0)
break;
A -= D;
}
if (A <= 0)
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 and C > 0) {
C -= B;
if (C <= 0)
break;
A -= D;
}
if (A <= 0)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
}
| [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 47], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 354], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 355], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47]] | 1 | 85 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d, count = 0;
cin >> a >> b >> c >> d;
while (a > 0 and c > 0) {
if (count % 2 == 0) {
c -= b;
}
if (count % 2 == 1) {
a -= d;
}
count += 1;
}
if (a < 0)
cout << "No";
else
cout << "Yes";
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, count = 0;
cin >> a >> b >> c >> d;
while (a > 0 and c > 0) {
if (count % 2 == 0) {
c -= b;
}
if (count % 2 == 1) {
a -= d;
}
count += 1;
}
if (a <= 0)
cout << "No";
else
cout << "Yes";
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 98 |
A,B,C,D = map(int,input().split())
while True:
print(A,C)
C -= B
if C <= 0:
print("Yes")
break
A -= D
if A <= 0:
print("No")
break
| A,B,C,D = map(int,input().split())
while True:
C -= B
if C <= 0:
print("Yes")
break
A -= D
if A <= 0:
print("No")
break
| [["-", 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 | 59 |
#include <iostream>
#include <stdio.h>
#include <string>
using namespace ::std;
int main(void) {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c -= b;
if (c < 0) {
cout << "No";
return 0;
}
a -= d;
if (a < 0) {
cout << "Yes";
return 0;
}
}
}
| #include <iostream>
#include <stdio.h>
#include <string>
using namespace ::std;
int main(void) {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c -= b;
if (c <= 0) {
cout << "Yes";
return 0;
}
a -= d;
if (a <= 0) {
cout << "No";
return 0;
}
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 85 |
# AtCoder
A, B, C, D = map(int, input().split())
thp = (A+D-1)/D
ahp = (C+B-1)/B
if thp >= ahp:
print('Yes')
else:
print('No')
| # AtCoder
A, B, C, D = map(int, input().split())
thp = (A+D-1)//D
ahp = (C+B-1)//B
if thp >= ahp:
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 | 62 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
for (int i = 0; i < 1000; ++i) {
if (C - B <= 0) {
cout << "Yse" << endl;
break;
}
if (A - D <= 0) {
cout << "No" << endl;
break;
}
C -= B;
A -= D;
}
return 0;... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
for (int i = 0; i < 1000; ++i) {
if (C - B <= 0) {
cout << "Yes" << endl;
break;
}
if (A - D <= 0) {
cout << "No" << endl;
break;
}
C -= B;
A -= D;
}
return 0;... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 98 |
import math
A, B, C, D = map(int, input().split())
if math.ceil(C / B) <= math.ceil(A / D):
print("yes")
else:
print("No") | import math
A, B, C, D = map(int, input().split())
if math.ceil(C / B) <= math.ceil(A / D):
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 | 55 |
a, b, c, d = map(int, input().split())
while a > 0 and c > 0:
c -= b
if c < 0:
break
a -= d
if a < c:
print('No')
else:
print('Yes') | a, b, c, d = map(int, input().split())
while a > 0 and c > 0:
c -= b
if c <= 0:
break
a -= d
if a < c:
print('No')
else:
print('Yes') | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 60 |
#include <algorithm>
#include <functional>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
c = c - b;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
a = a - d;
if (b <= 0) {
cout << "No" << endl;
... | #include <algorithm>
#include <functional>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
c = c - b;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
a = a - d;
if (a <= 0) {
cout << "No" << endl;
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 91 |
A, B, C, D = map(int, input().split())
a = True
while a:
C -= B
A -= D
if C <= 0:
print('Yes')
a = False
elif A <= 0:
print('No')
b = False | A, B, C, D = map(int, input().split())
a = True
while a:
C -= B
A -= D
if C <= 0:
print('Yes')
break
elif A <= 0:
print('No')
break | [["-", 0, 57, 64, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 12, 147], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["-", 75, 665, 64, 196, 0, 1, 0, 662, 31, 22], ["-", 75, 665, 64, 196, 0, 1, 0, 662, 0, 32], ["-", 75, 665, 64, 196, 0, 1, 0, 662, 12, 147]... | 5 | 60 |
// Jai Bhole Ki
#include <bits/stdc++.h>
using namespace std;
#define fast \
int fvariable = []() { \
std::ios::sync_with_stdio(false); \
cin.tie(NUL... | // Jai Bhole Ki
#include <bits/stdc++.h>
using namespace std;
#define fast \
int fvariable = []() { \
std::ios::sync_with_stdio(false); \
cin.tie(NUL... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 176 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep_bit(n) for (int bit = 0; bit < (1 << n); ++bit)
#define all(x) (x).begin(), (x).end()
#define ll long long
#define ld long double
#define CYES cout << "Yes" << endl
#define CNO cout << "No" << endl
#define SP << " " <<
#define CST(x) cou... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep_bit(n) for (int bit = 0; bit < (1 << n); ++bit)
#define all(x) (x).begin(), (x).end()
#define ll long long
#define ld long double
#define CYES cout << "Yes" << endl
#define CNO cout << "No" << endl
#define SP << " " <<
#define CST(x) cou... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 210 |
a, b, c, d = map(int, input().split())
T = True
while a > 0 and c > 0:
if T:
c -= b
else:
a -= d
T = not T
print("Yes" if a else "No") | a, b, c, d = map(int, input().split())
T = True
while a > 0 and c > 0:
if T:
c -= b
else:
a -= d
T = not T
print("Yes" if a > 0 else "No") | [["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 47], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 612]] | 5 | 59 |
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
typedef long long int li;
typedef vector<char> vc;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (A > 0 && C > 0) {
C -= B;
if (C > 0)
break;
A -= D;
}
if (A > 0)
cout << "Yes";
else
cout ... | #include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
typedef long long int li;
typedef vector<char> vc;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (A > 0 && C > 0) {
C -= B;
if (C <= 0)
break;
A -= D;
}
if (A > 0)
cout << "Yes";
else
cout... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 98 |
A, B, C, D = list(map(int, input().split()))
while A>0 and B>0:
C -= B
if C < 0:
print("Yes")
break
A -= D
if A < 0:
print("No")
break | A, B, C, D = list(map(int, input().split()))
while A>0 and B>0:
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 | 62 |
#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;
}
}
} | #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;
}
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 81 |
#include <stdio.h>
// a atac taka
// b forca taka
// atac aoki
// forca aoki
int main() {
int a, b, c, d;
int saude1, saude2;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (a > 0 && c > 0) {
c = c - b; // tirando vida do aoki
a = a - d; // tirando vida do taka
}
if (a > 0) {
printf("Yes\n");
... | #include <stdio.h>
// a atac taka
// b forca taka
// atac aoki
// forca aoki
int main() {
int a, b, c, d;
int saude1, saude2;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (a > 0 && c > 0) {
c = c - b; // tirando vida do aoki
a = a - d; // tirando vida do taka
}
if (c <= 0) {
printf("Yes\n");
... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 101 |
a,b,c,d=map(int,input().split())
while a>0:
c-=b
if c>0:
a-=d
else:
break
if a<0:
print("No")
else:
print("Yes") | a,b,c,d=map(int,input().split())
while a>0:
c-=b
if c>0:
a-=d
else:
break
if a<=0:
print("No")
elif a>0:
print("Yes") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["-", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 0, 22], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 0, 656, 0, 57, 75, 665, 15, 6... | 5 | 58 |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
long s = sc.nextLong();
long w = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
int i = -1;
while (true) {
i++;
if (i % 2 == ... | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
long s = sc.nextLong();
long w = sc.nextLong();
long c = sc.nextLong();
long d = sc.nextLong();
int i = -1;
while (true) {
i++;
if (i % 2 == ... | [["-", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 22]] | 3 | 151 |
a,b,c,d = map(int,input().split())
while a > 0:
c = c - b
if c <= 0:
print('Yes')
exit()
a = a - d
print("no")
| a,b,c,d = map(int,input().split())
while a > 0:
c = c - b
if c <= 0:
print('Yes')
exit()
a = a - d
print("No")
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 55 |
#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 > 0 && c > 0) {
a -= d;
c -= b;
}
if (c < 0)
printf("Yes\n");
else
printf("No\n");
} | #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 > 0 && c > 0) {
a -= d;
c -= b;
}
if (c <= 0)
printf("Yes\n");
else
printf("No\n");
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 83 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double A, B, C, D;
cin >> A >> B >> C >> D;
double X = ceil(C / D), Y = ceil(A / D);
if (X <= Y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
double A, B, C, D;
cin >> A >> B >> C >> D;
double X = ceil(C / B), Y = ceil(A / D);
if (X <= Y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 49, 50, 51, 2, 3, 4, 0, 16, 12, 22], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 22]] | 1 | 77 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, N) for (int i = 0; i < (int)(N); i++)
int main() {
double a, b, c, d;
cin >> a >> b >> c >> d;
double x = ceil(c / b), y = ceil(a / d);
string ans = "No";
if (x >= y)
ans = "Yes";
cout << ans << endl... | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, N) for (int i = 0; i < (int)(N); i++)
int main() {
double a, b, c, d;
cin >> a >> b >> c >> d;
double x = ceil(c / b), y = ceil(a / d);
string ans = "No";
if (x <= y)
ans = "Yes";
cout << ans << endl... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 88 |
#include <stdio.h>
int main(void) {
int Thp, Tat, Ahp, Aat;
scanf("%d%d%d%d", &Thp, &Tat, &Ahp, Aat);
while ((Thp > 0) || (Ahp > 0)) {
Ahp = Ahp - Tat;
if (Ahp > 0) {
Thp = Thp - Aat;
}
}
if (Ahp <= 0) {
printf("Yes\n");
} else if (Ahp > 0) {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int Thp, Tat, Ahp, Aat;
scanf("%d%d%d%d", &Thp, &Tat, &Ahp, &Aat);
while ((Thp > 0) && (Ahp > 0)) {
Ahp = Ahp - Tat;
if (Ahp > 0) {
Thp = Thp - Aat;
}
}
if (Ahp <= 0) {
printf("Yes\n");
} else if (Ahp > 0) {
printf("No\n");
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 98]] | 0 | 108 |
a,b,c,d=map(int,input().split())
i=0
while a*c>0:
if i%2==0:
c+=(-b)
else:
a+=(-d)
if a>0:
print("Yes")
else:
print("No") | a,b,c,d=map(int,input().split())
i=0
while a*c>0:
if i%2==0:
c+=(-b)
else:
a+=(-d)
i+=1
if a>0:
print("Yes")
else:
print("No") | [["+", 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 | 70 |
a,b,c,d=map(int,input().split())
print('YNeos'[a//d<c//b::2]) | a,b,c,d=map(int,input().split())
print('YNeos'[~-a//d<~-c//b::2]) | [["+", 206, 663, 0, 666, 0, 657, 31, 664, 17, 92], ["+", 0, 666, 0, 657, 31, 664, 28, 664, 17, 33]] | 5 | 38 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
typedef vector<int> Vl;
typedef pair<int, int> pii;
typedef vector<pii> Vll;
typedef vector<pair<int, pair<int, int>>> Vlll;
#define S second
#define F first
#define mp make_pair
#define ms(x, y) memset(x, y, sizeof(x))
#define pb push_back
#define sl(... | #include <bits/stdc++.h>
using namespace std;
#define int long long
typedef vector<int> Vl;
typedef pair<int, int> pii;
typedef vector<pii> Vll;
typedef vector<pair<int, pair<int, int>>> Vlll;
#define S second
#define F first
#define mp make_pair
#define ms(x, y) memset(x, y, sizeof(x))
#define pb push_back
#define sl(... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 216 |
a,b,c,d = map(int,input().split())
#L = list(map(int,input()split()))
T = c//b
A = a//d
if c%d>0:
T +=1
if a%d>0:
A +=1
if T >= A:
print("Yes")
else:
print("No") | a,b,c,d = map(int,input().split())
#L = list(map(int,input()split()))
T = c//b
#print(T,c%b,a,b,c,d)
A = a//d
if c%b>0:
#(c%d>0)
T +=1
if a%d>0:
A +=1
#print(T,A)
if T <= A:
print("Yes")
else:
print("No") | [["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 12, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 70 |
#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;
a = a - d;
}
if (a <= 0 && c > 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
c = c - b;
a = a - d;
}
if (a <= 0 && c > 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98]] | 1 | 86 |
a,b,c,d=map(int,input().split())
judg=True
while(judg==True):
a-=d
if a<=0:
judg = False
break
c-=b
if c<=0:
judg = False
break
if a<=0:
print("No")
else:
print("Yes") | a,b,c,d=map(int,input().split())
judg=True
while(judg==True):
c-=b
if c<=0:
judg = False
break
a-=d
if a<=0:
judg = False
break
if a<=0:
print("No")
else:
print("Yes") | [["-", 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 | 73 |
A, B, C, D = map(int, input().split())
import math
T = math.ceil(A / D)
M = math.ceil(C / B)
if T > M:
print('Yes')
else:
print('No')
| A, B, C, D = map(int, input().split())
import math
T = math.ceil(A / D)
M = math.ceil(C / B)
if T >= M:
print('Yes')
else:
print('No')
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]] | 5 | 61 |
import math
A, B, C, D = input().split()
A = int(A)
B = int(B)
C = int(C)
D = int(D)
E = math.ceil(C/A)
F = math.ceil(D/B)
if E <= F:
print('Yes')
else:
print('No') | import math
A, B, C, D = input().split()
A = int(A) # 高橋の体力
B = int(B) # 高橋の攻撃力
C = int(C) # 青木の体力
D = int(D) # 青木の攻撃力
E = math.ceil(C/B) # 高橋の攻撃回数
F = math.ceil(A/D) # 青木の攻撃回数
if E <= F:
print('Yes')
else:
print('No') | [["-", 0, 662, 12, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 22], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 31, 22]] | 5 | 80 |
import math
a,b,c,d = map(int,input().split())
cb = (c//b)
ad = (a//d)
if ad < cb :
print('No')
else:
print('Yes') | import math
a,b,c,d = map(int,input().split())
cb = -(-c//b)
ad = -(-a//d)
if ad < cb :
print('No')
else:
print('Yes') | [["+", 0, 656, 0, 1, 0, 662, 12, 664, 17, 33], ["+", 12, 664, 28, 23, 0, 657, 31, 664, 17, 33]] | 5 | 55 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.