buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define pii pair<int, int>
#define pci pair<char, int>
#define pcc pair<char, char>
#define vi vector<int>
#define vll vector<long long>
#define vld vector<long double>
#define vb vector<bool>
#define vc vector<char>
#define vs... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define pii pair<int, int>
#define pci pair<char, int>
#define pcc pair<char, char>
#define vi vector<int>
#define vll vector<long long>
#define vld vector<long double>
#define vb vector<bool>
#define vc vector<char>
#define vs... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 227 |
a,b,c,d=map(int,input().split())
if a%d ==0:
if c%d==0:
if a/d >= c/b:
print("Yes")
else:
print("No")
else:
if a/d >= (c//b+1) :
print("Yes")
else:
print("No")
else:
if c%d==0:
if (a//d+1) >= c/b:
print("Yes... | a,b,c,d=map(int,input().split())
if a%d ==0:
if c%b==0:
if a/d >= c/b:
print("Yes")
else:
print("No")
else:
if a/d >= (c//b+1) :
print("Yes")
else:
print("No")
else:
if c%b==0:
if (a//d+1) >= c/b:
print("Yes... | [["-", 64, 196, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 64, 196, 0, 57, 15, 666, 0, 657, 12, 22], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 155 |
import math
A,B,C,D=map(int,input().split())
E=math.ceil(A/D)
F=math.ceil(C/B)
if A>=B:
print("Yes")
else:
print("No")
| import math
A,B,C,D=map(int,input().split())
E=math.ceil(A/D)
F=math.ceil(C/B)
if E>=F:
print("Yes")
else:
print("No")
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]] | 5 | 61 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
scanf("%d%d%d%d", &A, &B, &C, &D);
int X, Y;
X = C / B;
Y = A / D;
if (C % B != 0)
X += 1;
if (A % D != 0)
Y += 1;
if (X <= Y)
printf("YES\n");
else
printf("NO\n");
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
scanf("%d%d%d%d", &A, &B, &C, &D);
int X, Y;
X = C / B;
Y = A / D;
if (C % B != 0)
X += 1;
if (A % D != 0)
Y += 1;
if (X <= Y)
printf("Yes\n");
else
printf("No\n");
return 0;
} | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 107 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int s = 1;
while (true) {
if (s % 2 == 0) {
c -= b;
} else {
a -= d;
}
s += 1;
if (a <= 0) {
cout << "No";
return 0;
} else if (c <= 0) {
cout << "Yes";
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int s = 2;
while (true) {
if (s % 2 == 0) {
c -= b;
} else {
a -= d;
}
s += 1;
if (a <= 0) {
cout << "No";
return 0;
} else if (c <= 0) {
cout << "Yes";
... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 102 |
a,b,c,d=map(int,input().split())
T=0
A=0
while c>0:
c-=b
T+=1
while a>0:
a-=d
A+=1
if A>T:
print("Yes")
else:
print("No") | a,b,c,d=map(int,input().split())
T=0
A=0
while c>0:
c-=b
T+=1
while a>0:
a-=d
A+=1
if A>=T:
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 | 67 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int anum, bnum;
anum = bnum = 0;
anum = c / b;
bnum = a / d;
if (c % d != 0)
anum++;
if (a % d != 0)
bnum++;
if (anum > bnum) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int anum, bnum;
anum = bnum = 0;
anum = c / b;
bnum = a / d;
if (c % b != 0)
anum++;
if (a % d != 0)
bnum++;
if (anum > bnum) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 103 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
int flag = 0;
while (c >= 0 || a >= 0) {
c = c - b;
if (c <= 0 && a > c) {
flag = 1;
break;
} else
a = a - d;
}
i... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int a, b, c, d;
cin >> a >> b >> c >> d;
int flag = 0;
while (c >= 0 || a >= 0) {
c = c - b;
if (c <= 0 && a > 0) {
flag = 1;
break;
} else
a = a - d;
}
i... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 126 |
A, B, C, D = map(int, input().split())
for i in range(100):
C -= B
if C <= 0:
print('Yes')
exit()
A -= D
if A <= 0:
print('No') | A, B, C, D = map(int, input().split())
for i in range(100):
C -= B
if C <= 0:
print('Yes')
exit()
A -= D
if A <= 0:
print('No')
exit() | [["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 59 |
a,b,c,d = (int(x) for x in input().split())
while(True):
c = c - b
if c <= 0:
print('yes')
break
a = a - d
if a <= 0:
print('no')
break
| a,b,c,d = (int(x) for x in input().split())
while(True):
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 | 63 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int A, B, C, D;
Scanner sc = new Scanner(System.in);
A = sc.nextInt();
B = sc.nextInt();
C = sc.nextInt();
D = sc.nextInt();
do {
C = C - B;
if (C < 0) {
System.out.println("Y... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int A, B, C, D;
Scanner sc = new Scanner(System.in);
A = sc.nextInt();
B = sc.nextInt();
C = sc.nextInt();
D = sc.nextInt();
do {
C = C - B;
if (C <= 0) {
System.out.println("... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]] | 3 | 148 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep2(i, a, n) for (int i = a; i < n; i++)
int main() {
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
cout << fixed << setprecision(15);
int a, b, c, d;
cin >> a >> b >> c >> d;
w... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rep2(i, a, n) for (int i = a; i < n; i++)
int main() {
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
cout << fixed << setprecision(15);
int a, b, c, d;
cin >> a >> b >> c >> d;
w... | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 130 |
#include <stdio.h>
int main() {
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
while (1) {
C -= B;
if (C <= 0) {
printf("No\n");
return 0;
}
A -= D;
if (A <= 0) {
printf("Yes\n");
return 0;
}
}
} |
#include <stdio.h>
int main() {
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
while (1) {
C -= B;
if (C <= 0) {
printf("Yes\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 | 88 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define rep(i, a, b) for (ll i = a; i < b; i++)
#define ml cout << endl
#define pii pair<ll, ll>
#define vi vector<ll>
#define vii vector<pii>
#define mi map<ll, ll>
#define all(a) (a).begin(), (a).end()
#define pb push_ba... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define rep(i, a, b) for (ll i = a; i < b; i++)
#define ml cout << endl
#define pii pair<ll, ll>
#define vi vector<ll>
#define vii vector<pii>
#define mi map<ll, ll>
#define all(a) (a).begin(), (a).end()
#define pb push_ba... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["-", 8, 9, 0, 57, 64, 9, 0, 1, 0, 22], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 22], ["-", 0, 57, 75, 76, 0, 9, 0, 1, 0, 22], ["+", 0, 57, 75, 76, 0, 9, 0, 1, 0, 22]] | 1 | 238 |
import math
a,b,c,d = map(int,input().split())
#a c hp
#b d atk
t_n = math.ceil(c / b)
a_n = math.ceil(a / d)
if t_n <= a_n:
print('YES')
else:
print('NO') | import math
a,b,c,d = map(int,input().split())
t_n = math.ceil(c / b)
a_n = math.ceil(a / d)
if t_n <= a_n:
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 | 63 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int f = 1;
while (1) {
if (f) {
c -= a;
f = 0;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
} else {
b -= d;
f = 1;
if (b <= 0) {
cout << "No... | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int f = 1;
while (1) {
if (f) {
c -= b;
f = 0;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
} else {
a -= d;
f = 1;
if (a <= 0) {
cout << "No... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["-", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 106 |
a, b, c, d = map(int, input().split())
if c%b ==0 :
e = c//d
else:
e = c//d + 1
if a%d ==0:
f = a//d
else:
f = a//d +1
if f >e:
print("Yes")
else:
print("No") | a, b, c, d = map(int, input().split())
if c%b ==0 :
e = c//b - 1
else:
e = c//b
if a%d ==0:
f = a//d
else:
f = a//d +1
if f >e:
print("Yes")
else:
print("No") | [["-", 64, 196, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 12, 612], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["-", 8, 196, 0, 1, 0, 662, 12, 657, ... | 5 | 81 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0; i < 100; i++) {
if ((c - b) <= 0) {
cout << "yes";
break;
} else {
c = c - b;
}
if ((a - d) <= 0) {
cout << "no";
break;
} else {
a = a - d;
... | /******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
******************************************... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 108 |
/*dismint|jjc*/
#include <bits/stdc++.h>
using namespace std;
#define forl(V, S, E) for (int V = S; V < E; V++)
#define ford(V, S, E) for (int V = S; V >= E; V--)
#define fore(E, X) for (auto &E : X)
#define println(X) cout << X << endl
#define printe(X) \
... | /*dismint|jjc*/
#include <bits/stdc++.h>
using namespace std;
#define forl(V, S, E) for (int V = S; V < E; V++)
#define ford(V, S, E) for (int V = S; V >= E; V--)
#define fore(E, X) for (auto &E : X)
#define println(X) cout << X << endl
#define printe(X) \
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 156 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll n, t, a, b, c, d, e, p, q, cnt = 0;
map<ll, ll> mp;
vector<ll> vec;
string s, s1, s2;
cin >> a >> b >> c >> d;
while (1) {
c -= b;
if (c <= 0) {
break;
}
a -= d;
if (a <= 0) {
break;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll n, t, a, b, c, d, e, p, q, cnt = 0;
map<ll, ll> mp;
vector<ll> vec;
string s, s1, s2;
cin >> a >> b >> c >> d;
while (1) {
c -= b;
if (c <= 0) {
break;
}
a -= d;
if (a <= 0) {
break;
... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 134 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int first = (c + b - 1) / b;
int second = (a + d - 1) / d;
if (first <= second) {
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 first = (c + b - 1) / b;
int second = (a + d - 1) / d;
if (first <= second) {
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 | 83 |
#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++) {
a -= d;
c -= b;
if (c == 0) {
cout << "No" << endl;
break;
} else if (a == 0) {
cout << "Yes" << endl;
break;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0; i < 1000; i++) {
a -= d;
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
break;
} else if (a <= 0) {
cout << "No" << endl;
break;
}
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 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], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 92 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
bool isEnd = false;
int turn = 0;
while (isEnd == false) {
if (turn % 2 == 0) {
C -= B;
} else {
A -= D;
}
if (A <= 0 || C <= 0)
isEnd = true;
else
turn++;
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
bool isEnd = false;
int turn = 0;
while (isEnd == false) {
if (turn % 2 == 0) {
C -= B;
} else {
A -= D;
}
if (A <= 0 || C <= 0)
isEnd = true;
else
turn++;
}
... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 116 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
A = (A + D - 1) / D;
C = (C + B - 1) / B;
cout << (A >= B ? "Yes" : "No") << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
A = (A + D - 1) / D;
C = (C + B - 1) / B;
cout << (A >= C ? "Yes" : "No") << endl;
return 0;
} | [["-", 31, 16, 12, 23, 0, 41, 15, 16, 12, 22], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 12, 22]] | 1 | 76 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int A; //高橋HP
int B; //高橋攻撃
int C; //青木HP
int D; //青木攻撃
int r = 0; //勝敗
cin >> A >> B >> C >> D;
while (r == 0) {
if (B >= C) {
r = 1;
cout << "Yes";
} else {
C = C - B;
}
if (D >= ... | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int A; //高橋HP
int B; //高橋攻撃
int C; //青木HP
int D; //青木攻撃
int r = 0; //勝敗
cin >> A >> B >> C >> D;
while (r == 0) {
if (B >= C) {
r = 1;
cout << "Yes";
} else {
C = C - B;
if (D >= A) {... | [["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46], ["+", 0, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 111 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = (a % d == 0 ? a / d : a / d + 1);
int y = (c % b == 0 ? c / b : c / b + 1);
if (x == 1)
cout << "Yes";
else {
if (x <= y + 1)
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 y = (a % d == 0 ? a / d : a / d + 1);
int x = (c % b == 0 ? c / b : c / b + 1);
if (x == 1)
cout << "Yes";
else {
if (x < y + 1)
cout << "Yes";
else
cout << "No";
}
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 112 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, i = 1;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
if (i % 2 != 0)
c -= b;
else
a -= d;
i++;
}
if (a == 0)
cout << "No";
else
cout << "Yes";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, i = 1;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
if (i % 2 != 0)
c -= b;
else
a -= d;
i++;
}
// cout<<a<<" " <<c;
if (a <= 0)
cout << "No";
else
cout << "Yes";
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 89 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, c, d;
long long i = 0;
long long mod = 1000000007;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
bool aa = false;
while (true) {
c = c - b;
if (c <= 0) {
break;
}
a = a - d;
if (a <= 0) {
aa = true;... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, b, c, d;
long long i = 0;
long long mod = 1000000007;
cin >> a;
cin >> b;
cin >> c;
cin >> d;
bool aa = false;
while (true) {
c = c - b;
if (c <= 0) {
break;
}
a = a - d;
if (a <= 0) {
aa = true;... | [["-", 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 | 120 |
#include <stdio.h>
int main() {
long long int a, b, c, d;
scanf("%lld%lld%lld%lld", &a, &b, &c, &d);
while (c > 0 || a > 0) {
c = c - b;
if (c <= 0) {
printf("yes");
break;
}
a = a - d;
if (a <= 0) {
printf("no");
break;
}
}
return 0;
} | #include <stdio.h>
int main() {
long long int a, b, c, d;
scanf("%lld%lld%lld%lld", &a, &b, &c, &d);
while (c > 0 || a > 0) {
c = c - b;
if (c <= 0) {
printf("Yes");
break;
}
a = a - d;
if (a <= 0) {
printf("No");
break;
}
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 99 |
#include <bits/stdc++.h>
#include <stdio.h>
#include <stdlib.h>
#define mp make_pair
#define ii int
#define ll long long
#define ld long double
#define pii pair<ii, ii>
#define pll pair<ll, ll>
#define vcii vector<ii>
#define vcll vector<ll>
#define vcd vector<double>
#define pb push_back
#define vcs vector<string>
#de... | #include <bits/stdc++.h>
#include <stdio.h>
#include <stdlib.h>
#define mp make_pair
#define ii int
#define ll long long
#define ld long double
#define pii pair<ii, ii>
#define pll pair<ll, ll>
#define vcii vector<ii>
#define vcll vector<ll>
#define vcd vector<double>
#define pb push_back
#define vcs vector<string>
#de... | [["-", 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 | 187 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int D = sc.nextInt();
int i = 0;
while (A > 0 || C > 0) {
if (i % 2 != 0) {
C = C - B;
... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int D = sc.nextInt();
int i = 1;
while (A > 0 && C > 0) {
if (i % 2 != 0) {
C = C - B;
... | [["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 98]] | 3 | 149 |
class Main:
t1, a1, t2, a2= map(int,input().split());
w = "t1"
while t1 >= 0 and t2 >= 0:
if t2 <= 0:
w = "t1"
break;
t2 = t2 - a1;
if t1 <= 0:
w = "t2"
break;
t1 = t1 - a2;
if w == "t1":
print("Yes");
else:
... |
class Main:
t1, a1, t2, a2= map(int,input().split());
w = "t1"
while t1 >= 0 or t2 >= 0:
if t2 <= 0:
w = "t1"
break;
t2 = t2 - a1;
if t1 <= 0:
w = "t2"
break;
t1 = t1 - a2;
if w == "t1":
print("Yes");
else:
... | [["-", 0, 682, 8, 196, 0, 52, 15, 679, 17, 355], ["+", 0, 682, 8, 196, 0, 52, 15, 679, 17, 354]] | 5 | 96 |
#include <bits/stdc++.h>
#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for (int i = int(a), i##_len = (b); i < i##_len; ++i)
#define MSVC_UNKO(x) x
#define rep(...) \
MSVC_UNKO(_overload3(__VA_ARGS__,... | #include <bits/stdc++.h>
#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for (int i = int(a), i##_len = (b); i < i##_len; ++i)
#define MSVC_UNKO(x) x
#define rep(...) \
MSVC_UNKO(_overload3(__VA_ARGS__,... | [["+", 0, 2, 3, 4, 0, 41, 15, 16, 17, 47], ["+", 0, 2, 3, 4, 0, 41, 15, 16, 12, 13]] | 1 | 249 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (A > 0 && C > 0) {
A -= D;
if (A <= 0)
break;
C -= B;
}
if (A <= 0)
cout << "No";
else
cout << "Yes";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (A > 0 && C > 0) {
C -= B;
if (C <= 0)
break;
A -= D;
}
if (A <= 0)
cout << "No";
else
cout << "Yes";
} | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 78 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int n_t, n_a;
n_t = a / b;
if (a % b)
n_t++;
n_a = c / d;
if (c % d)
n_a++;
if (n_t >= n_a)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int n_t, n_a;
n_t = c / b;
if (c % b)
n_t++;
n_a = a / d;
if (a % d)
n_a++;
if (n_t <= n_a)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 89 |
#include <bits/stdc++.h>
using namespace std;
#define int long long int
int i;
main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int t = a;
int an = c;
while (t > 0 && an > 0) {
an = an - b;
t = t - d;
// cout<<t<<' '<<an<<endl;
if (t <= 0 || an <= 0)
break;
}
if (an <= 0)
cout... | #include <bits/stdc++.h>
using namespace std;
#define int long long int
int i;
main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int t = a;
int an = c;
while (t > 0 && an > 0) {
an = an - b;
t = t - d;
// cout<<t<<' '<<an<<endl;
if (t <= 0 || an <= 0)
break;
}
if (an <= 0)
cout... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 106 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
scanf("%d%d%d%d", &a, &b, &c, &d);
a = ceil(a / d);
c = ceil((double)c / (double)b);
// printf("%d\n%d\n", a, c);
if (a >= c)
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
scanf("%d%d%d%d", &a, &b, &c, &d);
a = ceil((double)a / (double)d);
c = ceil((double)c / (double)b);
// printf("%d\n%d\n", a, c);
if (a >= c)
printf("Yes\n");
else
printf("No\n");
return 0;
} | [["+", 12, 2, 3, 4, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 16, 31, 74, 39, 77, 39, 40], ["+", 12, 2, 3, 4, 0, 16, 31, 74, 0, 25], ["+", 12, 2, 3, 4, 0, 16, 12, 74, 0, 24], ["+", 3, 4, 0, 16, 12, 74, 39, 77, 39, 40], ["+", 12, 2, 3, 4, 0, 16, 12, 74, 0, 25]] | 1 | 91 |
a, b, c, d = gets.split(' ').map(&:to_i)
takahashi = c.quo(b).to_f.ceil
aoki = a.quo(d).to_f.ceil + 1
puts takahashi <= aoki ? 'Yes' : 'No' | a, b, c, d = gets.split(' ').map(&:to_i)
takahashi = c.quo(b).to_f.ceil
aoki = a.quo(d).to_f.ceil
puts takahashi <= aoki ? 'Yes' : 'No' | [["-", 36, 36, 0, 493, 0, 662, 12, 738, 17, 72], ["-", 36, 36, 0, 493, 0, 662, 12, 738, 12, 612]] | 4 | 60 |
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <unordered_map>
using namespace std;
const int N = 2e6 + 5;
int t, n, m;
int a, b, c, d;
int main() {
scanf("%d%d%d%d", &a, &b, &c, &d);
while (1) {
c -= b;
if (c <= 0)
break;
a... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <unordered_map>
using namespace std;
const int N = 2e6 + 5;
int t, n, m;
int a, b, c, d;
int main() {
scanf("%d%d%d%d", &a, &b, &c, &d);
while (1) {
c -= b;
if (c <= 0)
break;
a... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 116 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int i = 1;
while (a > 0 || c > 0) {
if (i % 2 != 0) {
c = c - b;
if (c <= 0)
break;
}
if (i % 2 != 0) {
a = a - d;
if (a <= 0)
break;
}
i++;
}
if (i... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int i = 1;
while (a > 0 && c > 0) {
if (i % 2 != 0) {
c = c - b;
if (c <= 0)
break;
}
if (i % 2 == 0) {
a = a - d;
if (a <= 0)
break;
}
i++;
}
if (i... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 124 |
n = list(map(int, input().split()))
while n[0]>0 or n[2]>0:
n[2] = n[2] - n[1]
if n[2] <= 0:
break
n[0] = n[0] - n[3]
if n[0]>=n[2]:
print("Yes")
else:
print("No") | n = list(map(int, input().split()))
while n[0]>0 and n[2]>0:
n[2] = n[2] - n[1]
if n[2] <= 0:
break
n[0] = n[0] - n[3]
if n[0]>n[2]:
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], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]] | 5 | 94 |
A, B, C, D = map(int, input().split())
while A > 0 and C >0:
C -= B
A -= D
print("Yes" if A < 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, 0, 22], ["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 18], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 19]] | 5 | 49 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define debug(a) cout << #a << ": " << a << endl
#define sz(a) int(a.size())
#define rep(i, n) for (int i = 0; i < n; i++)
#define forr(i, st, en) for (int i = st; i <= en; i++)
#define all(v) (v).begin(), (v).end()
#define fast ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define debug(a) cout << #a << ": " << a << endl
#define sz(a) int(a.size())
#define rep(i, n) for (int i = 0; i < n; i++)
#define forr(i, st, en) for (int i = st; i <= en; i++)
#define all(v) (v).begin(), (v).end()
#define fast ... | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22]] | 1 | 136 |
a,b,c,d = map(int,input().split())
turn =1
while((a>0) or (c>0)):
if(turn == 1):
c -= b
turn = 0
else:
a -= d
turn = 1
if(a<=0):
print("No")
else:
print("Yes")
| a,b,c,d = map(int,input().split())
turn =1
while((a>0) and (c>0)):
if(turn == 1):
c -= b
turn = 0
else:
a -= d
turn = 1
if(a<=0):
print("No")
else:
print("Yes") | [["-", 0, 656, 0, 52, 15, 23, 0, 679, 17, 354], ["+", 0, 656, 0, 52, 15, 23, 0, 679, 17, 355]] | 5 | 80 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int D = sc.nextInt();
int x = 0;
int y = 0;
while (A >= 0) {
A = A - D;
x++;
}
while (C... | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int D = sc.nextInt();
int x = 0;
int y = 0;
while (A > 0) {
A = A - D;
x++;
}
while (C ... | [["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 20], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 47]] | 3 | 147 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int ht, st, ho, so;
cin >> ht >> st >> ho >> so;
bool turn = true;
while (ht > 0 && ho > 0) {
if (turn) {
ho = ho - st;
turn = false;
} else {
ht = ht - so;
turn = true;
}
}
if (ho) {
cout << "No" << end... | #include <bits/stdc++.h>
using namespace std;
int main() {
int ht, st, ho, so;
cin >> ht >> st >> ho >> so;
bool turn = true;
while (ht > 0 && ho > 0) {
if (turn) {
ho = ho - st;
turn = false;
} else {
ht = ht - so;
turn = true;
}
}
if (ho > 0) {
cout << "No" <<... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 105 |
A ,B ,C ,D = map(int,input().split())
turn = 0
if A%C == 0 or D ==1:
turn = A/D -1
else:
turn = A//D
if B * (turn+1) >= C:
print("Yes")
else:
print("No") | A ,B ,C ,D = map(int,input().split())
turn = 0
if A%D == 0 :
turn = A/D -1
else:
turn = A//D
if B * (turn+1) >= C:
print("Yes")
else:
print("No") | [["-", 0, 57, 15, 679, 31, 666, 0, 657, 12, 22], ["-", 0, 656, 0, 57, 15, 679, 31, 666, 667, 60], ["-", 0, 656, 0, 57, 15, 679, 31, 666, 0, 612], ["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]] | 5 | 73 |
#include <bits/stdc++.h>
#define endl "\n"
using namespace std;
typedef long long int lli;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
lli i, a[2], b[2], turn = 1;
cin >> a[0] >> a[1] >> b[0] >> b[1];
swap(b[1], a[0]);
swap(b[0], a[1]);
while (1) {
if (turn == 1) {
turn = 2... | #include <bits/stdc++.h>
#define endl "\n"
using namespace std;
typedef long long int lli;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
lli i, a[2], b[2], turn = 1;
cin >> a[0] >> a[1] >> b[0] >> b[1];
swap(b[1], a[0]);
swap(b[0], a[1]);
while (1) {
if (turn == 1) {
turn = 2... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 195 |
A, B, C, D = map(int, input().split())
a=0
c=0
while C-B>0:
C-=B
a+=1
while A-D>0:
A-=D
c+=1
print(a,c)
print("Yes") if c>=a else print("No") | A, B, C, D = map(int, input().split())
a=0
c=0
while C-B>0:
C-=B
a+=1
while A-D>0:
A-=D
c+=1
print("Yes") if c>=a else print("No") | [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 0, 656, 0, 1, 0, 41, 0, 652, 63, 22], ["-", 0, 1, 0, 41, 0, 652, 3, 4, 0, 24]] | 5 | 75 |
#define _USE_MATH_DEFINES
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int A, B, C, D;
int H, K;
cin >> A;
cin >> B;
cin >> C;
cin >> D;
H = A / C;
if (A % C > 0) {
H++;
}
K = D / B;
if (D % B > 0) {
K++;
}
if (H >= K)... | #define _USE_MATH_DEFINES
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int A, B, C, D;
int H, K;
cin >> A;
cin >> B;
cin >> C;
cin >> D;
H = A / D;
if (A % D > 0) {
H++;
}
K = C / B;
if (C % B > 0) {
K++;
}
if (H >= K)... | [["-", 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, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["-", 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, 5... | 1 | 114 |
if __name__ == "__main__":
a,b,c,d=map(int,input().strip().split())
jishu1=0
jishu2=0
while True:
a=a-d
jishu1+=1
if a<=0:
break
while True:
c=c-b
jishu2+=1
if a<=0:
break
if jishu1<jishu2:
print("No")
else:
... | if __name__ == "__main__":
a,b,c,d=map(int,input().strip().split())
jishu1=0
jishu2=0
while True:
a=a-d
jishu1+=1
if a<=0:
break
while True:
c=c-b
jishu2+=1
if c<=0:
break
if jishu1<jishu2:
print("No")
else:
... | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 90 |
#include <iostream>
using namespace std;
int a, b, c, d;
int main() {
cin >> a >> b >> c >> d;
while (1) {
c = c - b;
if (c <= 0) {
cout << "yes" << endl;
break;
}
a = a - d;
if (a <= 0) {
cout << "no" << endl;
break;
}
}
}
| #include <iostream>
using namespace std;
int a, b, c, d;
int main() {
cin >> a >> b >> c >> d;
while (1) {
c = c - b;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
a = 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 | 85 |
ht, st, ha, sa = list(map(int, input().split(' ')))
bool_player = True # Takashi
while (ht == 0 or st == 0):
if bool_player:
ha -= st
bool_player = False
else:
ht -= sa
bool_player = True
if ht <= 0:
print('No')
else:
print('Yes')
| ht, st, ha, sa = list(map(int, input().split(' ')))
bool_player = True # Takashi
while (ht > 0 and ha > 0):
if bool_player:
ha -= st
bool_player = False
else:
ht -= sa
bool_player = True
if ht <= 0:
print('No')
else:
print('Yes')
| [["-", 0, 52, 15, 23, 0, 679, 31, 666, 667, 60], ["+", 0, 52, 15, 23, 0, 679, 31, 666, 667, 47], ["-", 0, 656, 0, 52, 15, 23, 0, 679, 17, 354], ["-", 0, 52, 15, 23, 0, 679, 12, 666, 0, 22], ["-", 0, 52, 15, 23, 0, 679, 12, 666, 667, 60], ["+", 0, 656, 0, 52, 15, 23, 0, 679, 17, 355], ["+", 0, 52, 15, 23, 0, 679, 12, 66... | 5 | 77 |
A,B,C,D = map(int, input().split())
a = C//B
b = A//D
if C%B != 0:
a = a + 1
elif A%D != 0:
b = b + 1
if a <= b:
print("Yes")
else:
print("No")
| A,B,C,D = map(int, input().split())
a = C//B
b = A//D
if C%B != 0:
a = a + 1
if A%D != 0:
b = b + 1
if a <= b:
print("Yes")
else:
print("No")
| [["-", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683], ["+", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121]] | 5 | 73 |
#include <iostream>
using namespace std;
int a, b, c, d;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cin >> a >> b >> c >> d;
int d = 1;
while (a > 0 && c > 0) {
if (d == 1) {
c -= b;
d = 2;
} else {
a -= d;
d = 1;
}
}
if (a > 0)
cout << "Yes";
else
... | #include <iostream>
using namespace std;
int a, b, c, d;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cin >> a >> b >> c >> d;
int dem = 1;
while (a > 0 && c > 0) {
if (dem == 1) {
c -= b;
dem = 2;
} else {
a -= d;
dem = 1;
}
}
if (a > 0)
cout << "Yes";... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["-", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 75, 76, 0, ... | 1 | 108 |
//
// main.cpp
// ABC164
//
//
// Copyright © 2020 エロやん. All rights reserved.
//
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c = c - b;
if (c < 0) {
cout << "Yes" << endl;
goto EXIT;
}
a = a - d;
if (a < 0) {
... | //
// main.cpp
// ABC164
//
//
// Copyright © 2020 エロやん. All rights reserved.
//
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (1) {
c = c - b;
if (c <= 0) {
cout << "Yes" << endl;
goto EXIT;
}
a = a - d;
if (a <= 0) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 99 |
def fight(a,b):
if b%a==0:
return b//a
else:
return (b//a)+1
A,B,C,D=map(int,input().split())
if fight(C,B)>=fight(D,A):
print("No")
else:
print("Yes")
| def fight(a,b):
if b%a==0:
return b//a
else:
return (b//a)+1
A,B,C,D=map(int,input().split())
if fight(B,C)>fight(D,A):
print("No")
else:
print("Yes")
| [["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 22], ["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 21], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 21], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]] | 5 | 78 |
A, B, C, D = map(int, input().split())
while(True):
if C-B <= 0:
print("yes")
break
C -= B
if A-D <= 0:
print("no")
break
A -= D
| A, B, C, D = map(int, input().split())
# h, p
# A, B
# C, D
while(True):
if C-B <= 0:
print("Yes")
break
C -= B
if A-D <= 0:
print("No")
break
A -= D
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 59 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
// INT_MAX = 2147483647, UINT_MAX = 4294967295
int a, b, c, d;
cin >> a >> b >> c >> d;
int hits1 = floor(a / d);
int hits2 = floor(c / b);
if (a % d != 0)
hits1++;
if (c % b != 0)
hits2++;
i... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
// INT_MAX = 2147483647, UINT_MAX = 4294967295
int a, b, c, d;
cin >> a >> b >> c >> d;
int hits1 = floor(a / d);
int hits2 = floor(c / b);
if (a % d != 0)
hits1++;
if (c % b != 0)
hits2++;
i... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 112 |
ABCD=input()
ABCD=ABCD.split()
A=int(ABCD[0])
B=int(ABCD[1])
C=int(ABCD[2])
D=int(ABCD[3])
while(1):
C=C-B
if(C<=0):
print('No')
break
A=A-D
if(A<=0):
print('Yes')
break
|
ABCD=input()
ABCD=ABCD.split()
A=int(ABCD[0])
B=int(ABCD[1])
C=int(ABCD[2])
D=int(ABCD[3])
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 | 91 |
#include <iostream>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int ta, ao;
ta = C / B;
ao = A / D;
if (C % B != 0)
ta++;
if (A % D != 0)
ao++;
if (ta >= ao) {
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 ta, ao;
ta = C / B;
ao = A / D;
if (C % B != 0)
ta++;
if (A % D != 0)
ao++;
if (ta <= ao) {
cout << "Yes";
} else {
cout << "No";
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 96 |
a,b,c,d=map(int,input().split())
while a > 0:
c=c-b
if c<=0:
print('Yes')
break
if a-d<=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, 656, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 56 |
A, B, C, D = list(map(int, input().split()))
while A > 0 and C > 0:
C = C - B
A = A - D
if A > C:
print("Yes")
else:
print("No")
| A, B, C, D = list(map(int, input().split()))
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, 57, 15, 666, 0, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]] | 5 | 61 |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX(a, b) (a > b ? a : b)
#define MIN(a, b) (a < b ? a : b)
#define MOD 1000000007
int compare(const void *a, const void *b) { return *(int *)a - *(int *)b; }
void testCase() {
int i, j, k, l;
if (scanf("%d%d%d%d", &i, &j, &k, &... | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX(a, b) (a > b ? a : b)
#define MIN(a, b) (a < b ? a : b)
#define MOD 1000000007
int compare(const void *a, const void *b) { return *(int *)a - *(int *)b; }
void testCase() {
int i, j, k, l;
if (scanf("%d%d%d%d", &i, &j, &k, &... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 163 |
#include <stdio.h>
int main() {
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
int i;
for (i = 1; i <= 1000; i++) {
C = C - B;
if (C = 0) {
printf("Yes");
break;
}
A = A - D;
if (A = 0) {
printf("No");
break;
}
}
}
| #include <stdio.h>
int main() {
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
int i;
for (i = 1; i <= 1000; i++) {
C = C - B;
if (C <= 0) {
printf("Yes");
break;
}
A = A - D;
if (A <= 0) {
printf("No");
break;
}
}
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 100 |
import java.util.*;
public class Main {
public static void main(String[] args) {
int a = 0;
int b = 0;
int c = 0;
int d = 0;
Scanner scan = new Scanner(System.in);
a = scan.nextInt();
b = scan.nextInt();
c = scan.nextInt();
d = scan.nextInt();
while (true) {
c = c - b;
... | import java.util.*;
public class Main {
public static void main(String[] args) {
int a = 0;
int b = 0;
int c = 0;
int d = 0;
Scanner scan = new Scanner(System.in);
a = scan.nextInt();
b = scan.nextInt();
c = scan.nextInt();
d = scan.nextInt();
while (true) {
c = c - b;
... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 148 |
import sys
A,B,C,D = map(int,input().split())
while True:
C = C - B
if C <= 0:
print('Yes')
sys.exit()
A = A - D
if A <= 0:
print('no')
sys.exit() | import sys
A,B,C,D = map(int,input().split())
while True:
C = C - B
if C <= 0:
print('Yes')
sys.exit()
A = A - D
if A <= 0:
print('No')
sys.exit() | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 67 |
#include <stdio.h>
int main() {
int A, B, C, D;
scanf("%d", &A);
scanf("%d", &B);
scanf("%d", &C);
scanf("%d", &D);
while (1) {
C -= B;
if (C <= 0) {
printf("yes");
break;
}
A -= D;
if (A <= 0) {
printf("no");
break;
}
}
return 0;
} | #include <stdio.h>
int main() {
int A, B, C, D;
scanf("%d", &A);
scanf("%d", &B);
scanf("%d", &C);
scanf("%d", &D);
while (1) {
C -= B;
if (C <= 0) {
printf("Yes");
break;
}
A -= D;
if (A <= 0) {
printf("No");
break;
}
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 108 |
'use strict'
function main(inp) {
inp = inp.trim().split(' ').map(x => x * 1);
// 高橋モンスターの倒れるまでの回数
let AdevD = Math.floor(inp[0] / inp[3]);
// 青木モンスターの倒れるまでの回数
let CdevB = Math.floor(inp[2] / inp[1]);
if (AdevD > CdevB) {
console.log("No")
} else {
console.log("Yes")
}
}
main(require('fs').read... | 'use strict'
function main(inp) {
inp = inp.trim().split(' ').map(x => x * 1);
// 高橋モンスターの倒れるまでの回数
let AdevD = Math.ceil(inp[0] / inp[3]);
// 青木モンスターの倒れるまでの回数
let CdevB = Math.ceil(inp[2] / inp[1]);
if (AdevD >= CdevB) {
console.log("Yes")
} else {
console.log("No")
}
}
main(require('fs').readF... | [["-", 0, 570, 0, 200, 51, 2, 63, 558, 559, 560], ["+", 0, 570, 0, 200, 51, 2, 63, 558, 559, 560], ["-", 8, 556, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 556, 0, 57, 15, 23, 0, 16, 17, 20], ["-", 0, 1, 0, 2, 3, 3, 0, 557, 0, 491], ["+", 0, 1, 0, 2, 3, 3, 0, 557, 0, 491]] | 2 | 120 |
/*input
10 10 10 10
*/
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | /*input
10 10 10 10
*/
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
using namespace std;
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 322 |
#include <bits/stdc++.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int c, d;
cin >> c >> d;
while (true) {
c -= d;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
a -= d;
if (a <= 0) {
cout << "No" << endl;
bre... | #include <bits/stdc++.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int c, d;
cin >> c >> d;
while (true) {
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
a -= d;
if (a <= 0) {
cout << "No" << endl;
bre... | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22]] | 1 | 91 |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define ff first
#define ss second
#define quick \
ios::sync_with_stdio(false); \
cin.tie(0);
#define time cerr << (0.1 * clock()) / CLO... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define ff first
#define ss second
#define quick \
ios::sync_with_stdio(false); \
cin.tie(0);
#define time cerr << (0.1 * clock()) / CLO... | [["-", 15, 339, 51, 16, 12, 23, 0, 16, 12, 22], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 12, 22]] | 1 | 132 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def main():
A, B, C, D = map(int, input().split())
while True:
C -= B
if C <= 0:
result = "No"
break
A -= D
if A <= 0:
result = "Yes"
break
print(result)
if __name__ == "__main_... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def main():
A, B, C, D = map(int, input().split())
while True:
C -= B
if C <= 0:
result = "Yes"
break
A -= D
if A <= 0:
result = "No"
break
print(result)
if __name__ == "__main_... | [["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 72 |
a,b,c,d = map(int,input().split())
for i in range(200):
if c-b <= 0:
print("yes")
break
elif a-d <= 0:
print("No")
break
else:
a = a-d
c = c-b | a,b,c,d = map(int,input().split())
for i in range(200):
if c-b <= 0:
print("Yes")
break
elif a-d <= 0:
print("No")
break
else:
a = a-d
c = c-b | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 68 |
#include <iostream>
using namespace std;
class H {
public:
H(int hp, int atk) : attack(atk), hp(hp) {}
int attack;
int hp;
bool Attack(H *h_ref) {
h_ref->hp -= attack;
return (h_ref->hp <= 0);
}
};
int main() {
int a[4];
cin >> a[0] >> a[1] >> a[2] >> a[3];
H *h1 = new H(a[0], a[1]);
H *... |
#include <iostream>
using namespace std;
class H {
public:
H(int hp, int atk) : attack(atk), hp(hp) {}
int attack;
int hp;
bool Attack(H *h_ref) {
h_ref->hp -= attack;
return (h_ref->hp <= 0);
}
};
int main() {
int a[4];
cin >> a[0] >> a[1] >> a[2] >> a[3];
H *h1 = new H(a[0], a[1]);
H *h... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 186 |
A, B, C, D = map(int, input().split())
takahashi = 0
aoki = 0
while A >= 0:
A = A - D
takahashi += 1
while C >= 0:
C = C - B
aoki += 1
if aoki <= takahashi:
print("No")
else:
print("Yes") | A, B, C, D = map(int, input().split())
takahashi = 0
aoki = 0
while A > 0:
A = A - D
takahashi += 1
while C > 0:
C = C - B
aoki += 1
# print(takahashi)
# print(aoki)
if aoki <= takahashi:
print("Yes")
else:
print("No") | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 71 |
//#include <bits/stdc++.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
#define FASTER \
ios_base::s... | //#include <bits/stdc++.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
#define FASTER \
ios_base::s... | [["-", 64, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 130 |
A,B,C,D = map(int, input().split())
while True:
C -= B
if C<=0:
print("Yes")
break
if C>0:
A -= D
if A<=0:
print("No")
break
i += 1 | A,B,C,D = map(int, input().split())
i = 0
while True:
C -= B
if C<=0:
print("Yes")
break
if C>0:
A -= D
if A<=0:
print("No")
break
i += 1 | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 61 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
#define ff first
#define ss second
#define mp make_pair
#define pb push_back
#define ios \
std::ios::sync_with_stdio(false); ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
#define ff first
#define ss second
#define mp make_pair
#define pb push_back
#define ios \
std::ios::sync_with_stdio(false); ... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 303 |
#include <stdio.h>
int main() {
int a, b, c, d, e;
scanf("%d %d %d %d", &a, &b, &c, &d);
e = a / d;
for (int i = 0; i < e; i++) {
c -= b;
if (c <= 0) {
printf("Yes");
break;
}
a -= d;
if (a <= 0) {
printf("No");
break;
}
}
} | #include <stdio.h>
int main() {
int a, b, c, d, e;
scanf("%d %d %d %d", &a, &b, &c, &d);
e = a / d;
e += 1;
for (int i = 0; i < e; i++) {
c -= b;
if (c <= 0) {
printf("Yes");
break;
}
a -= d;
if (a <= 0) {
printf("No");
break;
}
}
} | [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 0 | 102 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
for (int i = 0; A > 0 && C > 0; i++) {
C -= B;
A -= D;
}
if (C <= 0) {
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;
for (int i = 0; A > 0 && C > 0; i++) {
C -= B;
A -= D;
}
if (C <= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 86 |
#include <algorithm>
#include <climits>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
#define ff first
#define ss second
#define int long ... | #include <algorithm>
#include <climits>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
#define ff first
#define ss second
#define int long ... | [["+", 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 | 268 |
import math
a, b, c, d = map(int, input().split())
if math.ceil(a/d) + 1 >= math.ceil(c/b) :
print('Yes')
else:
print('No')
| import math
a, b, c, d = map(int, input().split())
if math.ceil(a/d) + 1 > math.ceil(c/b) :
print('Yes')
else:
print('No')
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]] | 5 | 57 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
int tak, aok;
cin >> a >> b >> c >> d;
if (c % b == 0) {
tak = c / b;
} else {
tak = int((double)c / b) + 1;
}
if (a % d == 0) {
aok = a / d;
} else {
aok = int((double)a / c) + 1;
}
if (tak <= aok) {
co... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
int tak, aok;
cin >> a >> b >> c >> d;
if (c % b == 0) {
tak = c / b;
} else {
tak = int((double)c / b) + 1;
}
if (a % d == 0) {
aok = a / d;
} else {
aok = int((double)a / d) + 1;
}
if (tak <= aok) {
co... | [["-", 12, 16, 31, 2, 3, 4, 0, 16, 12, 22], ["+", 12, 16, 31, 2, 3, 4, 0, 16, 12, 22]] | 1 | 129 |
#include <math.h>
#include <stdio.h>
int main() {
double a, b, c, d, m, n;
scanf("%f%f%f%f", &a, &b, &c, &d);
m = ceil(a / d); // m+1ci A si
n = ceil(c / b); // n+1ci B si
if (m - n >= 0) {
printf("Yes");
} else
printf("No");
} | #include <math.h>
#include <stdio.h>
int main() {
float a, b, c, d, m, n;
scanf("%f%f%f%f", &a, &b, &c, &d);
m = ceil(a / d); // m+1ci A si
n = ceil(c / b); // n+1ci B si
if (m - n >= 0) {
printf("Yes");
} else
printf("No");
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 0 | 87 |
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
| a, b, c, d = map(int, input().split())
while True:
c = c - b
if c <= 0:
print("Yes")
break
a = a - d
if a <= 0:
print("No")
break
| [["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22]] | 5 | 55 |
l = [int(x) for x in input().split()]
A, B, C, D = l[0], l[1], l[2], l[3]
takahashi = C//B
if C%B > 0:
takahashi+=1
aoki = A//D
if A%D>0:
aoki+=1
if aoki > takahashi:
print('Yes')
else:
print('No') | l = [int(x) for x in input().split()]
A, B, C, D = l[0], l[1], l[2], l[3]
takahashi = C//B
if C%B > 0:
takahashi+=1
aoki = A//D
if A%D>0:
aoki+=1
if aoki >= takahashi:
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 | 94 |
#include <iostream>
using namespace std;
long long a, b, c, d;
int main() {
cin >> a >> b >> c >> d;
if (a % d != 0)
a = a / d + 1;
else
a = a / d;
if (c % b != 0)
c = c / b + 1;
else
c = c / b;
if (a >= c)
cout << "YES";
else
cout << "NO";
}
| #include <iostream>
using namespace std;
long long a, b, c, d;
int main() {
cin >> a >> b >> c >> d;
if (a % d != 0)
a = a / d + 1;
else
a = a / d;
if (c % b != 0)
c = c / b + 1;
else
c = c / b;
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 | 97 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
bool frag = true;
while (A > 0 || C > 0) {
if (frag) {
C -= B;
frag = false;
} else {
A -= D;
frag = true;
}
}
if (frag) {
cout << "No" << endl;
} else {
cout <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
bool frag = true;
while (A > 0 || C > 0) {
if (frag) {
C -= B;
frag = false;
continue;
} else {
A -= D;
frag = true;
}
}
if (frag) {
cout << "Yes" << endl;
} e... | [["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 35], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 98 |
/**
* @copyright (c) 2020 Daisuke Hashimoto
*/
#include <bits/stdc++.h>
#include <iostream>
struct Person {
int32_t hp{0};
int32_t attack{0};
};
enum class Turn : int32_t { kTakahashi = 0, kAoki };
int main() {
std::cin.tie(0);
std::ios::sync_with_stdio(false);
Person takahashi, aoki;
std::cin >> taka... | /**
* @copyright (c) 2020 Daisuke Hashimoto
*/
#include <bits/stdc++.h>
#include <iostream>
struct Person {
int32_t hp{0};
int32_t attack{0};
};
enum class Turn : int32_t { kTakahashi = 0, kAoki };
int main() {
std::cin.tie(0);
std::ios::sync_with_stdio(false);
Person takahashi, aoki;
std::cin >> taka... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 208 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll mod = 1000000007;
ll power(ll x, ll y) {
ll res = 1;
x = x % mod;
while (y) {
if (y & 1)
res = ((res % mod) * (x % mod)) % mod;
y >>= 1;
x = ((x % mod) * (x % mod)) % mod;
}
return res;
}
int main() {
ios::sync_wit... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll mod = 1000000007;
ll power(ll x, ll y) {
ll res = 1;
x = x % mod;
while (y) {
if (y & 1)
res = ((res % mod) * (x % mod)) % mod;
y >>= 1;
x = ((x % mod) * (x % mod)) % mod;
}
return res;
}
int main() {
ios::sync_wit... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 193 |
#include <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int ah, aa, bh, ba;
double ka, kb;
cin >> ah >> aa >> bh >> ba;
ka = ceil(bh / aa);
kb = ceil(ah / ba);
if (ka <= kb) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
double ah, aa, bh, ba;
double ka, kb;
cin >> ah >> aa >> bh >> ba;
ka = ceil(bh / aa);
kb = ceil(ah / ba);
if (ka <= kb) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 85 |
#include <iostream>
using namespace std;
int main() {
int hp_taka, atk_taka, hp_aoki, atk_aoki;
cin >> hp_taka >> atk_taka >> hp_aoki >> atk_aoki;
for (int i = 0; i < 100; i++) {
hp_aoki -= atk_taka;
if (hp_aoki <= 0) {
cout << "Yes";
}
hp_taka -= atk_aoki;
if (hp_taka <= 0) {
c... | #include <iostream>
using namespace std;
int main() {
int hp_taka, atk_taka, hp_aoki, atk_aoki;
cin >> hp_taka >> atk_taka >> hp_aoki >> atk_aoki;
for (int i = 0; i < 100; i++) {
hp_aoki -= atk_taka;
if (hp_aoki <= 0) {
cout << "Yes";
break;
}
hp_taka -= atk_aoki;
if (hp_taka <=... | [["+", 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 | 83 |
import math
a,b,c,d=map(int,input().split())
print('Yes' if math.floor(a/d)<math.floor(c/b) else 'No') | import math
a,b,c,d=map(int,input().split())
print('Yes' if math.ceil(a/d)>math.ceil(c/b)-1 else 'No') | [["-", 0, 41, 0, 666, 0, 652, 63, 319, 319, 22], ["+", 0, 41, 0, 666, 0, 652, 63, 319, 319, 22], ["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 18], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 47], ["+", 0, 666, 0, 657, 31, 652, 63, 319, 319, 22], ["+", 3, 4, 0, 41, 0, 666, 0, 657, 17, 33], ["+", 3, 4, 0, 41, 0, 666, 0, 657, 12, ... | 5 | 50 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n, m, k, sum = 0, a = 0, b = 0, c = 0, d = 0, ans = 0;
long long MOD = 1000000007;
long long INF = 1LL << 60;
cin >> a >> b >> c >> d;
while (true) {
a -= d;
c -= b;
if (a <= 0 && b <= 0) {
ans = 0;
break;
} else... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, m, k, sum = 0, a = 0, b = 0, c = 0, d = 0, ans = 0;
long long MOD = 1000000007;
long long INF = 1LL << 60;
cin >> a >> b >> c >> d;
while (true) {
a -= d;
c -= b;
if (a <= 0 && c <= 0) {
ans = 0;
break;
} else... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 157 |
A,B,C,D = map(int,input().split())
taka = -(-D//B)
aoki = -(-A//C)
if taka > aoki:
print("No")
else:
print("Yes") | A,B,C,D = map(int,input().split())
taka = -(-C//B)
aoki = -(-A//D)
if taka > aoki:
print("No")
else:
print("Yes")
| [["-", 12, 664, 28, 23, 0, 657, 31, 664, 28, 22], ["+", 12, 664, 28, 23, 0, 657, 31, 664, 28, 22], ["-", 0, 662, 12, 664, 28, 23, 0, 657, 12, 22], ["+", 0, 662, 12, 664, 28, 23, 0, 657, 12, 22]] | 5 | 57 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
bool k = false;
for (int i = 0; i <= 20000; i++) {
c -= b;
if (c == 0) {
k = true;
break;
}
a -= d;
if (a == 0) {
break;
}
}
cout << (k ? "Yes" : "No");
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
bool k = false;
for (int i = 0; i <= 20000; i++) {
c -= b;
if (c <= 0) {
k = true;
break;
}
a -= d;
if (a <= 0) {
break;
}
}
cout << (k ? "Yes" : "No");
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 98 |
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int A, B, C, D;
scanf("%d %d %d %d\n", &A, &B, &C, &D);
while (A >= 0) {
C = C - B;
if (C <= 0) {
printf("Yes");
return 0;
}
A = A - D;
}
printf("No");
return 0;
} | #include <stdio.h>
#include <stdlib.h>
int main(void) {
int A, B, C, D;
scanf("%d %d %d %d\n", &A, &B, &C, &D);
while (A > 0) {
C = C - B;
if (C <= 0) {
printf("Yes");
return 0;
}
A = A - D;
}
printf("No");
return 0;
}
| [["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 47]] | 0 | 88 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int e = c / b;
int f = a / d;
int g = c % b;
int h = a % d;
if (e > f + 1) {
cout << "No" << endl;
} else if (e = f + 1) {
if (h != 0 && g == 0) {
cout << "Yes" << endl;... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int e = c / b;
int f = a / d;
int g = c % b;
int h = a % d;
if (e > f + 1) {
cout << "No" << endl;
} else if (e == f + 1) {
if (h != 0 && g == 0) {
cout << "Yes" << endl... | [["-", 75, 76, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 192 |
import math
a, b, c, d = map(int, input().split())
taka = math.ceil(a/d)
aoki = math.ceil(c/b)
print(taka, aoki)
if taka >= aoki:
print("Yes")
else:
print("No") | import math
a, b, c, d = map(int, input().split())
taka = math.ceil(a/d)
aoki = math.ceil(c/b)
if taka >= aoki:
print("Yes")
else:
print("No") | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 67 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.