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 <stdio.h>
int main(void) {
int a, b, c, d, flg = 0;
scanf("%d%d%d%d", &a, &b, &c, &d);
while (a > 0 && c > 0) {
// 0なら高橋が攻撃
if (flg == 0) {
c -= b;
flg++;
} else {
a -= d;
flg--;
}
}
if (a <= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
r... | #include <stdio.h>
int main(void) {
int a, b, c, d, flg = 0;
scanf("%d%d%d%d", &a, &b, &c, &d);
while (a > 0 && c > 0) {
// 0なら高橋が攻撃
if (flg == 0) {
c -= b;
flg++;
} else {
a -= d;
flg--;
}
}
if (a <= 0) {
printf("No\n");
} else {
printf("Yes\n");
}
r... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 109 |
a,b,c,d=list(map(int,input().split(" ")))
if c%b==0:
taro=c//b
else:
taro=c//b+1
if a%d==0:
sasaki=a//d
else:
sasaki=a//d+1
if taro<=sasaki:
print("yes")
else:
print("No") | a,b,c,d=list(map(int,input().split(" ")))
if c%b==0:
taro=c//b
else:
taro=c//b+1
if a%d==0:
sasaki=a//d
else:
sasaki=a//d+1
if taro<=sasaki:
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 | 87 |
#include <bits/stdc++.h>
using namespace std;
#define TRACE(x) x
#define WATCH(x) TRACE(cout << #x " = " << x << endl)
#define PRINT(x) TRACE(printf(x))
#define WATCHR(a, b) \
TRACE(for (auto c = a; c != b;) cout << *(c++) << " "; cout << endl;)
#define WATC... | #include <bits/stdc++.h>
using namespace std;
#define TRACE(x) x
#define WATCH(x) TRACE(cout << #x " = " << x << endl)
#define PRINT(x) TRACE(printf(x))
#define WATCHR(a, b) \
TRACE(for (auto c = a; c != b;) cout << *(c++) << " "; cout << endl;)
#define WATC... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 1,343 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int a = 0, b = 0, c = 0, d = 0;
cin >> a >> b >> c >> d;
int aturn = c / b, bturn = a / d;
if ((aturn * b) != c)
aturn += 1;
if ((bturn * d) != a)
bturn += 1;
if (aturn >= bturn)
cout << "Y... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int a = 0, b = 0, c = 0, d = 0;
cin >> a >> b >> c >> d;
int aturn = c / b, bturn = a / d;
if ((aturn * b) != c)
aturn += 1;
if ((bturn * d) != a)
bturn += 1;
if (aturn <= bturn)
cout << "Y... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 118 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, count = 0;
cin >> a >> b >> c >> d;
while (a > 0 || c > 0) {
if (count % 2 == 0) {
c -= b;
count++;
} else {
a -= d;
count++;
}
}
if (0 < a)
cout << "Yes" << endl;
else
cout << "No" << endl... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, count = 0;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
if (count % 2 == 0) {
c -= b;
count++;
} else {
a -= d;
count++;
}
}
if (0 < a)
cout << "Yes" << endl;
else
cout << "No" << endl... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98]] | 1 | 100 |
#!python3
# input
A, B, C, D = list(map(int, input().split()))
def main():
a = A // D if A % D == 0 else A // D + 1
b = C // B if C % B == 0 else C // B + 1
ans = "No" if a < b else "Yes"
print(a, b)
print(ans)
if __name__ == "__main__":
main()
| #!python3
# input
A, B, C, D = list(map(int, input().split()))
def main():
a = A // D if A % D == 0 else A // D + 1
b = C // B if C % B == 0 else C // B + 1
ans = "No" if a < b else "Yes"
print(ans)
if __name__ == "__main__":
main()
| [["-", 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], ["-", 0, 14, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 97 |
#include <bits/stdc++.h>
using namespace std;
//#include <boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;
#define int long long int
signed main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t = 1;
// cin>>t;
while (t--) {
int a, b, c, d;
cin >> a >> b >> c ... | #include <bits/stdc++.h>
using namespace std;
//#include <boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;
#define int long long int
signed main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t = 1;
// cin>>t;
while (t--) {
int a, b, c, d;
cin >> a >> b >> c ... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 31, 22]] | 1 | 131 |
#include <bits/stdc++.h>
using namespace std;
#define tani_nachi_ke \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define M_PI 3.14159265358979323846
#define data data_
#define ff first
#define ss second
#defi... | #include <bits/stdc++.h>
using namespace std;
#define tani_nachi_ke \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define M_PI 3.14159265358979323846
#define data data_
#define ff first
#define ss second
#defi... | [["-", 51, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 116 |
N = input().split(" ")
TL = int(N[0])
TA = int(N[1])
AL = int(N[2])
AA = int(N[3])
a = 0
while a == 0:
AL = AL - TA
if AL <= 0:
a = 1
break
TA = TA - AA
if TA <= 0:
a = 2
break
if a == 1:
print("Yes")
if a == 2:
print("No") | N = input().split(" ")
TL = int(N[0])
TA = int(N[1])
AL = int(N[2])
AA = int(N[3])
a = 0
while a == 0:
AL = AL - TA
if AL <= 0:
a = 1
break
TL = TL - AA
if TL <= 0:
a = 2
break
if a == 1:
print("Yes")
elif a == 2:
print("No")
| [["-", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+... | 5 | 106 |
import math
A, B, C, D = input().split()
if math.ceil(int(C)*1.0/(int(B)*1.0)) >= math.ceil(int(A)*1.0/(int(D)*1.0)):
print("Yes")
else:
print("No") | import math
A, B, C, D = input().split()
if math.ceil(int(C)*1.0/(int(B)*1.0)) <= math.ceil(int(A)*1.0/(int(D)*1.0)):
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 | 74 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long A = sc.nextLong();
long B = sc.nextLong();
long C = sc.nextLong();
long D = sc.nextLong();
sc.close();
long i = 0;
for (i = 1;; i++) {
if (C - B * i... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long A = sc.nextLong();
long B = sc.nextLong();
long C = sc.nextLong();
long D = sc.nextLong();
sc.close();
long i = 0;
for (i = 1;; i++) {
if (C - B * i... | [["-", 0, 16, 12, 16, 31, 16, 12, 16, 12, 499], ["+", 0, 16, 12, 16, 31, 16, 12, 16, 12, 22]] | 3 | 151 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll a, b, c, d;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin >> a >> b >> c >> d;
while (true) {
b -= c;
if (b <= 0) {
cout << "Yes";
break;
} else {
a -= d;
if (a <=... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll a, b, c, d;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin >> a >> b >> c >> d;
while (true) {
c -= b;
if (c <= 0) {
cout << "Yes";
break;
} else {
a -= d;
if (a <=... | [["-", 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 | 106 |
#pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <typeinfo>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef long double ld;
typedef complex<ld> cd;
typedef pair<int, i... | #pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <typeinfo>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef long double ld;
typedef complex<ld> cd;
typedef pair<int, i... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 566 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int TH = sc.nextInt();
int TA = sc.nextInt();
int AH = sc.nextInt();
int AA = sc.nextInt();
int turn = 1;
while (TH > 0 | AH > 0) {
if (turn % 2 == 1) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int TH = sc.nextInt();
int TA = sc.nextInt();
int AH = sc.nextInt();
int AA = sc.nextInt();
int turn = 1;
while (TH > 0 && AH > 0) {
if (turn % 2 == 1) {
... | [["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 139], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 98]] | 3 | 149 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a >= 0) {
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
return 0;
}
a -= d;
}
cout << "No" << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0) {
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
return 0;
}
a -= d;
}
cout << "No" << endl;
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 77 |
#include <iostream>
using namespace std;
int main(void) {
int a, b, c, d;
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 << "No";
} else {
cout << "Yes";
}
return ... | #include <iostream>
using namespace std;
int main(void) {
int a, b, c, d;
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 (c <= a) {
cout << "Yes";
} else {
cout << "No";
}
return ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["-", 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,... | 1 | 112 |
#include <iostream>
using namespace std;
int main() {
int t_HP, t_AT;
int a_HP, a_AT;
int turn = 1;
cin >> t_HP >> t_AT >> a_HP >> a_AT;
while (true) {
if (t_HP < 0 || a_HP < 0) {
break;
}
if (turn % 2 == 1) {
a_HP = a_HP - t_AT;
} else {
t_HP = t_HP - a_AT;
}
turn... | #include <iostream>
using namespace std;
int main() {
int t_HP, t_AT;
int a_HP, a_AT;
int turn = 1;
cin >> t_HP >> t_AT >> a_HP >> a_AT;
while (true) {
if (t_HP <= 0 || a_HP <= 0) {
break;
}
if (turn % 2 == 1) {
a_HP = a_HP - t_AT;
} else {
t_HP = t_HP - a_AT;
}
tu... | [["-", 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 | 115 |
#include <bits/stdc++.h>
using namespace std;
int a, b, c, d;
int main() {
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
a -= d;
c -= b;
}
if (a <= 0)
cout << "No";
else
cout << "Yes";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int a, b, c, d;
int main() {
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
a -= d;
c -= b;
}
if (c <= 0)
cout << "Yes";
else
cout << "No";
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 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 | 73 |
monsterAHP, monsterAAttack, monsterBHP, monsterBAttack = map(int, input().split(' '))
turnA = monsterBHP / monsterAAttack
modA = monsterBHP % monsterAAttack
turnB = monsterAHP / monsterBAttack
modB = monsterAHP % monsterBAttack
if(modA != 0):
turnA = turnA + 1
if(modB != 0):
turnB = turnB + 1
if(turnA > turnB)... | monsterAHP, monsterAAttack, monsterBHP, monsterBAttack = map(int, input().split(' '))
turnA = int(monsterBHP / monsterAAttack)
modA = monsterBHP % monsterAAttack
turnB = int(monsterAHP / monsterBAttack)
modB = monsterAHP % monsterBAttack
if(modA != 0):
turnA = turnA + 1
if(modB != 0):
turnB = turnB + 1
if(turn... | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 88 |
a,b,c,d=map(int,input().split())
taka=c+(b-1)//b
ao=a+(d-1)//d
if taka<=ao:
print("Yes")
else:
print("No") | a,b,c,d=map(int,input().split())
taka=(c+(b-1))//b
ao=(a+(d-1))//d
if taka<=ao:
print("Yes")
else:
print("No") | [["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 24], ["+", 12, 657, 31, 23, 0, 657, 12, 23, 0, 25]] | 5 | 61 |
#include <iostream>
using namespace std;
int main() {
int i;
int a_hp, a_atk, t_hp, t_atk;
cin >> t_hp >> t_atk >> a_hp >> a_atk;
for (i = 0;; i++) {
if (i % 2 == 0) {
a_hp -= t_atk;
} else {
t_hp -= a_atk;
}
if (a_hp <= 0 || t_hp <= 0)
break;
}
if (i % 2 == 0) {
c... | #include <iostream>
using namespace std;
int main() {
int i;
int a_hp, a_atk, t_hp, t_atk;
cin >> t_hp >> t_atk >> a_hp >> a_atk;
for (i = 0;; i++) {
if (i % 2 == 0) {
a_hp -= t_atk;
} else {
t_hp -= a_atk;
}
if (a_hp <= 0 || t_hp <= 0)
break;
}
if (i % 2 != 0) {
c... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79]] | 1 | 111 |
package main
import (
"fmt"
)
func main() {
var A,B,C,D int
fmt.Scan(&A,&B,&C,&D)
Tsum :=0
Asum :=0
Tsum = C/B
if C&B !=0{
Tsum++
}
Asum = A/D
if A%D !=0{
Asum++
}
if Tsum<=Asum{
fmt.Println("Yes")
}else{
fmt.Println("No")
}
} | package main
import (
"fmt"
)
func main() {
var A,B,C,D int
fmt.Scan(&A,&B,&C,&D)
Tsum :=0
Asum :=0
Tsum = C/B
if C%B !=0{
Tsum++
}
Asum = A/D
if A%D !=0{
Asum++
}
if Tsum<=Asum{
fmt.Println("Yes")
}else{
fmt.Println("No")
}
} | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 67], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 109]] | 7 | 116 |
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios_base::sync_with_stdio(false);
int a, b, c, d;
cin >> a >> b >> c >> d;
int e = 100;
int f = 100;
for (int i = 1; i <= 100; i++) {
if (a - d * i <= 0) {
e = i;
i = 101;
}
}
for (int i = 1; i <= 100; i++) {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios_base::sync_with_stdio(false);
int a, b, c, d;
cin >> a >> b >> c >> d;
int e = 100;
int f = 100;
for (int i = 1; i <= 100; i++) {
if (a - d * i <= 0) {
e = i;
i = 101;
}
}
for (int i = 1; i <= 100; i++) {
... | [["-", 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 | 150 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, x, y;
cin >> a >> b >> c >> d;
if (a % d == 0) {
x = a / d;
} else {
x = (a / d) + 1;
}
if (c % b == 0) {
y = c / b;
} else {
y = (c / b) + 1;
}
if (x > y) {
cout << "Yes"
<< "\n";
} e... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d, x, y;
cin >> a >> b >> c >> d;
if (a % d == 0) {
x = a / d;
} else {
x = (a / d) + 1;
}
if (c % b == 0) {
y = c / b;
} else {
y = (c / b) + 1;
}
if (x >= y) {
cout << "Yes"
<< "\n";
} ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 124 |
#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 (a > 0 && c > 0)
a -= d;
}
if (0 <= a)
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 -= b;
if (a > 0 && c > 0)
a -= d;
}
if (0 >= a)
cout << "No" << endl;
else
cout << "Yes" << endl;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 84 |
def count(hp,bp)
if(hp%bp!=0)
return hp/bp+1
end
return hp/bp
end
A,B,C,D = gets.split()
if(count(A.to_i(),D.to_i())<count(C.to_i(),B.to_i()))
puts('Yes')
else
puts('No')
end
| def count(hp,bp)
if(hp%bp!=0)
return hp/bp+1
end
return hp/bp
end
A,B,C,D = gets.split()
if(count(A.to_i(),D.to_i())>=count(C.to_i(),B.to_i()))
puts('Yes')
else
puts('No')
end | [["-", 0, 493, 0, 121, 15, 739, 0, 738, 17, 18], ["+", 0, 493, 0, 121, 15, 739, 0, 738, 17, 20]] | 4 | 86 |
N = [int(e) for e in input().split()]
if(N[2]%N[1] !=0):
ans = N[2]//N[1]+1
else:
ans = N[2]//N[1]
for i in range(0,ans):
N[0] -= N[3]
if(N[0] <= 0):
print('No')
break
else:
print('Yes') | N = [int(e) for e in input().split()]
if(N[2]%N[1] !=0):
ans = (N[2]//N[1])+1
else:
ans = N[2]//N[1]
for i in range(1,ans):
N[0] -= N[3]
if(N[0] <= 0):
print('No')
break
else:
print('Yes') | [["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 24], ["+", 0, 1, 0, 662, 12, 657, 31, 23, 0, 25], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 103 |
#include <iostream>
using namespace std;
int main() {
int a[4];
for (int i = 0; i < 4; i++) {
cin >> a[i];
}
while (1) {
a[2] -= a[1];
if (a[2] <= 0) {
cout << "No";
break;
}
a[0] -= a[3];
if (a[0] <= 0) {
cout << "Yes";
break;
}
}
}
| #include <iostream>
using namespace std;
int main() {
int a[4];
for (int i = 0; i < 4; i++) {
cin >> a[i];
}
while (1) {
a[2] -= a[1];
if (a[2] <= 0) {
cout << "Yes";
break;
}
a[0] -= a[3];
if (a[0] <= 0) {
cout << "No";
break;
}
}
}
| [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 105 |
#include <iostream>
using namespace std;
int main() {
int a;
int b;
int ata;
int bta;
scanf("%d", &a);
scanf("%d", &ata);
scanf("%d", &b);
scanf("%d", &bta);
int timesa = b / ata;
if (b % ata != 0)
timesa += 1;
int timesb = a / bta;
if (a % bta != 0)
timesb += 1;
if (timesa < timesb)
... | #include <iostream>
using namespace std;
int main() {
int a;
int b;
int ata;
int bta;
scanf("%d", &a);
scanf("%d", &ata);
scanf("%d", &b);
scanf("%d", &bta);
int timesa = b / ata;
if (b % ata != 0)
timesa += 1;
int timesb = a / bta;
if (a % bta != 0)
timesb += 1;
if (timesa <= timesb)
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 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 | 126 |
a, b, c, d = map(int, input().split())
aoki = c
takahashi = a
for i in range(101):
if aoki - b > 0:
if takahashi - d <= 0: #高橋負け
print("No")
break
else: #戦闘続く
takahashi = takahashi - d
aoki = aoki - c
continue
else: #高橋勝ち
print("Yes")
break | a, b, c, d = map(int, input().split())
aoki = c
takahashi = a
for i in range(101):
if aoki - b > 0: #高橋の攻撃
if takahashi - d <= 0: #青木の攻撃で高橋負け
print("No")
break
else: #戦闘続く
takahashi = takahashi - d
aoki = aoki - b
continue
else: #高橋勝ち
print("Yes")
break | [["-", 8, 196, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 22]] | 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();
while (true) {
A -= D;
if (C <= 0) {
System.out.println("Yes");
ret... | import java.util.*;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int D = sc.nextInt();
while (true) {
C -= B;
if (C <= 0) {
System.out.println("Yes");
ret... | [["-", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 22]] | 3 | 126 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
bool x = true;
while (true) {
C -= B;
if (C < 1)
break;
A -= D;
if (A < 1) {
x = false;
break;
}
}
if (x)
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;
bool x = true;
while (true) {
C -= B;
if (C < 1)
break;
A -= D;
if (A < 1) {
x = false;
break;
}
}
if (x)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 93 |
#include <stdio.h>
int main() {
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
while (A > 0 || C > 0) {
int E, F;
E = C - B;
F = A - D;
C = E;
A = F;
}
if (C - B <= 0) {
printf("Yes");
}
else if (A - D <= 0) {
printf("No");
}
} | #include <stdio.h>
int main() {
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
while (A - D > 0 && C - B > 0) {
int E, F;
E = C - B;
F = A - D;
C = E;
A = F;
}
if (C - B <= 0) {
printf("Yes");
}
else if (A - D <= 0) {
printf("No");
}
} | [["+", 15, 23, 0, 16, 31, 16, 31, 16, 17, 33], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 98], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 17, 33], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 12, 22]] | 0 | 108 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int aHP = scanner.nextInt();
int aPower = scanner.nextInt();
int bHP = scanner.nextInt();
int bPower = scanner.nextInt();
bHP -= aPower;
while (bHP > 1) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int aHP = scanner.nextInt();
int aPower = scanner.nextInt();
int bHP = scanner.nextInt();
int bPower = scanner.nextInt();
bHP -= aPower;
while (bHP > 0) {
... | [["-", 8, 196, 0, 52, 15, 15, 0, 16, 12, 499], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 12, 499], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35]] | 3 | 119 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = a / d;
if (a % d != 0)
x++;
int y = c / b;
if (c % b != 0)
y++;
if (x <= y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = a / d;
if (a % d != 0)
x++;
int y = c / b;
if (c % b != 0)
y++;
if (x >= y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 97 |
// By Atul Rathore
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define f(n) for (int i = 0; i < n; i++)
#define p(x) cout << x << endl;
#define fastio \
ios::sync_with_stdio(false); ... | // By Atul Rathore
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define f(n) for (int i = 0; i < n; i++)
#define p(x) cout << x << endl;
#define fastio \
ios::sync_with_stdio(false); ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (1) {
C -= B;
if (C <= 0) {
cout << "YES" << endl;
break;
}
A -= D;
if (A <= 0) {
cout << "No" << endl;
break;
}
}
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (1) {
C -= B;
if (C <= 0) {
cout << "Yes" << endl;
break;
}
A -= D;
if (A <= 0) {
cout << "No" << endl;
break;
}
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 87 |
#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++) {
C = C - B;
if (C > 0) {
A = A - D;
if (A <= 0) {
cout << "No" << endl;
break;
} else {
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 < 100; i++) {
C = C - B;
if (C > 0) {
A = A - D;
if (A <= 0) {
cout << "No" << endl;
break;
}
} else {
cout << "Yes" << endl;
break;
}... | [["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 64, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 98 |
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STR 100
int main() {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (a <= 0 || c <= 0) {
c -= b;
if (c <= 0) {
printf("Yes");
return 0;
}
a -= d;
if (a <= 0) {
... | #include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STR 100
int main() {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
while (a > 0 || c > 0) {
c -= b;
if (c <= 0) {
printf("Yes");
return 0;
}
a -= d;
if (a <= 0) {
p... | [["-", 0, 52, 15, 23, 0, 16, 31, 16, 17, 19], ["+", 0, 52, 15, 23, 0, 16, 31, 16, 17, 47], ["-", 0, 52, 15, 23, 0, 16, 12, 16, 17, 19], ["+", 0, 52, 15, 23, 0, 16, 12, 16, 17, 47]] | 0 | 106 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
int E = A / D;
int F = C / B;
if (A % D >= 0) {
E++;
}
if (C % B >= 0) {
F++;
}
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 = A / D;
int F = C / B;
if (A % D > 0) {
E++;
}
if (C % B > 0) {
F++;
}
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, 47]] | 1 | 98 |
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
void sort2array(double *a, long *b, long n) {
for (int i = 0; i < n; i++) {
b[i] = i;
}
sort(b, b + n, [a](long i, long j) -> bool { return a[i] < a[j]; });
}
// bを何回足せばaを超えるか
int wtover(int a, int b) {
if (... | #include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
void sort2array(double *a, long *b, long n) {
for (int i = 0; i < n; i++) {
b[i] = i;
}
sort(b, b + n, [a](long i, long j) -> bool { return a[i] < a[j]; });
}
// bを何回足せばaを超えるか
int wtover(int a, int b) {
if (... | [["-", 8, 9, 0, 1, 0, 41, 15, 16, 17, 20], ["+", 8, 9, 0, 1, 0, 41, 15, 16, 17, 19]] | 1 | 413 |
#include <iostream>
using namespace std;
int main() {
int A, B, C, D, a, c;
cin >> A >> B >> C >> D;
a = A;
c = C;
while (a >= 0 && c >= 0) {
c = c - B;
a = a - D;
}
if (a <= 0 && c <= 0) {
cout << "Yes" << endl;
} else if (a <= 0) {
cout << "No" << endl;
} else if (c <= 0) {
cout ... | #include <iostream>
using namespace std;
int main() {
int A, B, C, D, a, c;
cin >> A >> B >> C >> D;
a = A;
c = C;
while (a > 0 && c > 0) {
c = c - B;
a = a - D;
}
if (a <= 0 && c <= 0) {
cout << "Yes" << endl;
} else if (a <= 0) {
cout << "No" << endl;
} else if (c <= 0) {
cout <<... | [["-", 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 | 124 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int j = c / b;
int k = a / d;
bool f = true;
if (c % b != 0)
j++;
if (a % d != 0)
k++;
if (j >= k)
cout << "Yes";
else
cout << "No";
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int j = c / b;
int k = a / d;
bool f = true;
if (c % b != 0)
j++;
if (a % d != 0)
k++;
if (j <= k)
cout << "Yes";
else
cout << "No";
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 91 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int j = 0;
int k = 0;
bool f = true;
while (1) {
c -= b;
if (c <= 0) {
f = true;
break;
}
a -= d;
if (a <= 0) {
f = false;
break;
}
}
if (!f)
cout << "... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int j = 0;
int k = 0;
bool f = true;
while (1) {
c -= b;
if (c <= 0) {
f = true;
break;
}
a -= d;
if (a <= 0) {
f = false;
break;
}
}
if (f)
cout << "Y... | [["-", 8, 9, 0, 57, 15, 339, 51, 91, 17, 111]] | 1 | 106 |
#include <bits/stdc++.h>
#define ll long long
#define MOD 10e9 + 7
#define pb push_back
#define vll vector<long long>
#define vi vector<int>
#define vl vector<long>
#define pii pair<int, int>
#define all(a) (a).begin(), (a).end()
#define rep(i, a, b) for (int i = a; i < b; i++)
#define MAX 100002
#define ios ... | #include <bits/stdc++.h>
#define ll long long
#define MOD 10e9 + 7
#define pb push_back
#define vll vector<long long>
#define vi vector<int>
#define vl vector<long>
#define pii pair<int, int>
#define all(a) (a).begin(), (a).end()
#define rep(i, a, b) for (int i = a; i < b; i++)
#define MAX 100002
#define ios ... | [["+", 0, 57, 64, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 57, 64, 9, 0, 57, 64, 9, 0, 46], ["+", 75, 76, 0, 9, 0, 57, 64, 9, 0, 45], ["+", 75, 76, 0, 9, 0, 57, 64, 9, 0, 46]] | 1 | 154 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int th = sc.nextInt();
int ts = sc.nextInt();
int ah = sc.nextInt();
int as = sc.nextInt();
int tm = ah % ts;
int t = ah / ts;
if (tm > 0) {
t++;
}
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int th = sc.nextInt();
int ts = sc.nextInt();
int ah = sc.nextInt();
int as = sc.nextInt();
int tm = ah % ts;
int t = ah / ts;
if (tm > 0) {
t++;
}
... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]] | 3 | 160 |
function main(input) {
const i = input.split(' ');
const tHealth = parseInt(i[0]);
const tStrength = parseInt(i[1]);
const aHealth = parseInt(i[2]);
const aStrength = parseInt(i[3]);
while (tHealth > 0 && aHealth > 0) {
aHealth -= tStrength;
if (aHealth <= 0)
break;
tHealth -= aStrength;
... | function main(input) {
const i = input.split(' ');
let tHealth = parseInt(i[0]);
let tStrength = parseInt(i[1]);
let aHealth = parseInt(i[2]);
let aStrength = parseInt(i[3]);
while (tHealth > 0 && aHealth > 0) {
aHealth -= tStrength;
if (aHealth <= 0)
break;
tHealth -= aStrength;
if (t... | [["-", 0, 493, 0, 435, 8, 556, 0, 570, 571, 154], ["+", 0, 493, 0, 435, 8, 556, 0, 570, 571, 243]] | 2 | 145 |
a,b,c,d = map(int,input().split())
while(a>0 and c>0):
a-=d
c-=b
if c<=0:
print("Yes")
if a<=0:
print("No") | a,b,c,d = map(int,input().split())
while(a>0 and c>0):
a-=d
c-=b
if c<=0:
print("Yes")
elif a<=0:
print("No") | [["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]] | 5 | 59 |
a, b ,c, d = map(int, input().split())
while (a > 0) and (c > 0):
a = a - d
c = c - b
if c <= 0:
print("yes")
elif a <= 0:
print("no") | a, b ,c, d = map(int, input().split())
while (a > 0) and (c > 0):
a = a - d
c = c - b
if c <= 0:
print("Yes")
elif a <= 0:
print("No") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 65 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
// Your code here
long long A, B, C, D;
int turn = 0;
cin >> A >> B >> C >> D;
while (A > 0 && C > 0) {
A -= D;
C -= C;
}
if (C <= 0)
cout << "Yes";
else if (A <= 0)
cout << "No";
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
// Your code here
long long A, B, C, D;
int turn = 0;
cin >> A >> B >> C >> D;
while (A > 0 && C > 0) {
A -= D;
C -= B;
}
if (C <= 0)
cout << "Yes";
else if (A <= 0)
cout << "No";
} | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22]] | 1 | 84 |
A,B,C,D = map(int, input().split())
while A >= 0:
A = A - D
C = C - B
if C <= 0:
print("Yes")
break
else:
print("No") | A,B,C,D = map(int, input().split())
while A > 0:
A = A - D
C = C - B
if C <= 0:
print("Yes")
break
else:
print("No") | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]] | 5 | 55 |
#pragma GCC optimize("O2")
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | #pragma GCC optimize("O2")
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 144 |
A, B, C, D = map(int, input().split())
takahashi_count = (int)(C/B)
aoki_count = (int)(A/D)
if C % B != 0 :
takahashi_count += 1
if A % D != 0:
aoki_count += 1
if takahashi_count >= aoki_count:
print("Yes")
else:
print("No") | A, B, C, D = map(int, input().split())
takahashi_count = (int)(C/B)
aoki_count = (int)(A/D)
if C % B != 0 :
takahashi_count += 1
if A % D != 0:
aoki_count += 1
if takahashi_count <= aoki_count:
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 | 79 |
A,B,C,D=map(int,input().split())
m=A//D
if A%C!=0:
m+=1
n=C//B
if C%B!=0:
n+=1
if m>=n:
print('Yes')
else:
print('No') | A,B,C,D=map(int,input().split())
m=A//D
if A%D!=0:
m+=1
n=C//B
if C%B!=0:
n+=1
if m>=n:
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]] | 5 | 69 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
c -= b;
if (c <= 0) {
printf("No\n");
break;
}
a -= d;
if (a <= 0) {
printf("Yes\n");
break;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
c -= b;
if (c <= 0) {
printf("Yes\n");
break;
}
a -= d;
if (a <= 0) {
printf("No\n");
break;
}
}
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 81 |
T_HP,T_Atk,A_HP,A_Atk = map(int,input().split())
Takahashi = [T_HP,T_Atk]
Asakura = [A_HP,A_Atk]
while True:
Asakura[0] -= Takahashi[1]
if Asakura[0] < 0:
print("Yes")
exit()
Takahashi[0] -= Asakura[1]
if Takahashi[0] < 0:
print("No")
exit()
| T_HP,T_Atk,A_HP,A_Atk = map(int,input().split())
Takahashi = [T_HP,T_Atk]
Asakura = [A_HP,A_Atk]
while True:
Asakura[0] -= Takahashi[1]
if Asakura[0] < 1:
print("Yes")
exit()
Takahashi[0] -= Asakura[1]
if Takahashi[0] < 1:
print("No")
exit()
| [["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 89 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0) {
c = c - b;
if (c < 0) {
break;
}
a = a - d;
}
if (c <= 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0) {
c = c - b;
if (c <= 0) {
break;
}
a = a - d;
}
if (c <= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 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 | 88 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D, X, Y;
cin >> A >> B >> C >> D;
X = (A + D - 1) / D;
Y = (C + B - 1) / B;
if (X <= Y)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D, X, Y;
cin >> A >> B >> C >> D;
X = (A + D - 1) / D;
Y = (C + B - 1) / B;
if (X >= Y)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 82 |
a, b, c, d = map(int, input().split())
attack_num_t = 0
attack_num_a = 0
if a % d != 0:
attack_num_a = a //d
else:
attack_num_a = a// d + 1
if c % b != 0:
attack_num_t = c // b
else:
attack_num_t = c // b + 1
if attack_num_t >= attack_num_a:
print("Yes")
else:
print("No") |
a, b, c, d = map(int, input().split())
attack_num_t = 0
attack_num_a = 0
if a % d == 0:
attack_num_a = a // d
else:
attack_num_a = a // d + 1
if c % b == 0:
attack_num_t = c // b
else:
attack_num_t = c // b + 1
if attack_num_t <= attack_num_a:
print("Yes")
else:
print("No")
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 79], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 87 |
/* Simplicity and Goodness */
#include <bits/stdc++.h>
using namespace std;
#define scn(n) scanf("%d", &n)
#define lscn(n) scanf("%lld", &n)
#define lpri(n) printf("%lld ", n)
#define pri(n) printf("%d ", (int)n)
#define prin(n) printf("%d\n", (int)n)
#define lprin(n) printf("%lld\n", n)
#define deb(x) cout << #x << '... | /* Simplicity and Goodness */
#include <bits/stdc++.h>
using namespace std;
#define scn(n) scanf("%d", &n)
#define lscn(n) scanf("%lld", &n)
#define lpri(n) printf("%lld ", n)
#define pri(n) printf("%d ", (int)n)
#define prin(n) printf("%d\n", (int)n)
#define lprin(n) printf("%lld\n", n)
#define deb(x) cout << #x << '... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 216 |
import sys
import collections
import math
stdin = sys.stdin
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))
a,b,c,d = nm()
ao=math.floor(a/d)
su=math.floor(c/b)
if(ao<su):
pri... | import sys
import collections
import math
stdin = sys.stdin
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))
a,b,c,d = nm()
ao=math.ceil(a/d)
su=math.ceil(c/b)
if(ao<su):
print... | [["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22]] | 5 | 131 |
A_s,B_s,C_s,D_s=input().split()
A=int(A_s)
B=int(B_s)
C=int(C_s)
D=int(D_s)
ansA=C/B
ansC=A/D
if C%B!=0:
ansA=ansA+1
if A%D!=0:
ansC=ansC+1
if ansA<=ansC:
print("Yes")
else:
print("No") | A_s,B_s,C_s,D_s=input().split()
A=int(A_s)
B=int(B_s)
C=int(C_s)
D=int(D_s)
ansA=int(C/B)
ansC=int(A/D)
if C%B!=0:
ansA=ansA+1
if A%D!=0:
ansC=ansC+1
if ansA<=ansC:
print("Yes")
else:
print("No") | [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 92 |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.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");
break;
}
A -= D;
if (A <= 0) {
printf("NO");
break;
}
}
retu... | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.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");
break;
}
A -= D;
if (A <= 0) {
printf("No");
break;
}
}
retu... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 94 |
#include <bits/stdc++.h>
using namespace std;
#define read(num) scanf("%d", &num)
#define readll(num) scanf("%lld", &num)
#define read2(num1, num2) scanf("%d%d", &num1, &num2)
#define read3(num1, num2, num3) scanf("%d%d%d", &num1, &num2, &num3)
#define reads(str) scanf("%s", str)
#define readc(ch) scanf("%c", &ch)
#d... | #include <bits/stdc++.h>
using namespace std;
#define read(num) scanf("%d", &num)
#define readll(num) scanf("%lld", &num)
#define read2(num1, num2) scanf("%d%d", &num1, &num2)
#define read3(num1, num2, num3) scanf("%d%d%d", &num1, &num2, &num3)
#define reads(str) scanf("%s", str)
#define readc(ch) scanf("%c", &ch)
#d... | [["-", 8, 9, 0, 57, 15, 339, 51, 91, 17, 111]] | 1 | 173 |
#include <bits/stdc++.h>
using namespace std;
#define io \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define ll lo... | #include <bits/stdc++.h>
using namespace std;
#define io \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define ll lo... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 126 |
A,B,C,D=map(int,input().split())
flag=0
while A>0 or C>0:
if flag==0:
C-=B
flag=1
else:
A-=D
flag=0
if A<=0:
print("Yes")
else:
print("No") | A,B,C,D=map(int,input().split())
flag=0
while A>0 and C>0:
if flag==0:
C-=B
flag=1
else:
A-=D
flag=0
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], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]] | 5 | 70 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int ao = a / d;
if (ao * d < a)
ao++;
int ta = c / b;
if (ta * b < c)
ta++;
if (ta >= ao) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int ao = a / d;
if (ao * d < a)
ao++;
int ta = c / b;
if (ta * b < c)
ta++;
if (ta <= ao) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 97 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define l long
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define M1 1000000007
#define M2 998244353
#define fl(i, a, b) for (ll i = a; i < b; i++)
#define ifl(i, a, b) for (ll i = b - 1; i >= a; ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define l long
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define M1 1000000007
#define M2 998244353
#define fl(i, a, b) for (ll i = a; i < b; i++)
#define ifl(i, a, b) for (ll i = b - 1; i >= a; ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 511 |
a,b,c,d = map(int,input().split())
taka = (int(c/b)) + (1 if c%b != 0 else 0)
aoki = (int(a/d)) + (1 if a%d != 0 else 0)
if taka >= aoki:
print('Yes')
else:
print('No') | a,b,c,d = map(int,input().split())
taka = (int(c/b)) + (1 if c%b != 0 else 0)
aoki = (int(a/d)) + (1 if a%d != 0 else 0)
if taka <= aoki:
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 | 83 |
import sys
input = sys.stdin.readline
def solve():
t_stamina, t_attack, a_stamina, a_attack = map(int, input().split())
t_num_attack_to_be_beaten = - (-t_stamina // a_attack)
a_num_attack_to_be_beaten = - (-a_stamina // t_attack)
if t_num_attack_to_be_beaten >= a_num_attack_to_be_beaten:
ret... | import sys
input = sys.stdin.readline
def solve():
t_stamina, t_attack, a_stamina, a_attack = map(int, input().split())
t_num_attack_to_be_beaten = - (-t_stamina // a_attack)
a_num_attack_to_be_beaten = - (-a_stamina // t_attack)
if t_num_attack_to_be_beaten >= a_num_attack_to_be_beaten:
ret... | [["-", 0, 57, 64, 196, 0, 37, 0, 557, 0, 6], ["+", 0, 57, 64, 196, 0, 37, 0, 557, 0, 6], ["-", 75, 76, 8, 196, 0, 37, 0, 557, 0, 6], ["+", 75, 76, 8, 196, 0, 37, 0, 557, 0, 6]] | 5 | 83 |
#include <algorithm>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
//#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a), i##formax = (b); i < i##formax; i++)
typedef long long ll;
int main() {
int a, b, c, d;
string ans = "";
cin >> a >> ... | #include <algorithm>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
//#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a), i##formax = (b); i < i##formax; i++)
typedef long long ll;
int main() {
int a, b, c, d;
string ans = "";
cin >> a >> ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 118 |
a,b,c,d = map(int, input().split())
print(["No","Yes"][a//d + (a%d > 0) >= b//c + (b%c > 0)]) | a,b,c,d = map(int, input().split())
print(["No","Yes"][a//d + (a%d > 0) >= c//b + (c%b > 0)]) | [["-", 0, 206, 206, 666, 0, 657, 31, 657, 31, 22], ["-", 0, 206, 206, 666, 0, 657, 31, 657, 17, 676], ["+", 0, 206, 206, 666, 0, 657, 31, 657, 17, 676], ["+", 0, 206, 206, 666, 0, 657, 31, 657, 12, 22], ["-", 0, 657, 12, 23, 0, 666, 0, 657, 31, 22], ["-", 0, 657, 12, 23, 0, 666, 0, 657, 17, 109], ["+", 0, 657, 12, 23, ... | 5 | 57 |
#include <algorithm> // count_ifに必要
#include <array> // sizeはコンパイル時定数で固定
#include <iomanip> // cout << setprecision(15) << x で小数の出力精度を指定
#include <iostream>
#include <map>
#include <numeric> // accumulate, gcd
#include <queue> // priority_queue も入ってる
#include <set> // 要素数は size() で取得
#include <stack>
#include... | #include <algorithm> // count_ifに必要
#include <array> // sizeはコンパイル時定数で固定
#include <iomanip> // cout << setprecision(15) << x で小数の出力精度を指定
#include <iostream>
#include <map>
#include <numeric> // accumulate, gcd
#include <queue> // priority_queue も入ってる
#include <set> // 要素数は size() で取得
#include <stack>
#include... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 212 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define MOD (long long)(1e9 + 7)
#define REP(i, n) for (ll i = 0; i < n; i++)
#define REP1(i, n) for (ll i = 1; i <= n; i++)
ll gcd(ll a, ll b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
int main(void) {
ll a, b, c, d;
cin >> a >> ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define MOD (long long)(1e9 + 7)
#define REP(i, n) for (ll i = 0; i < n; i++)
#define REP1(i, n) for (ll i = 1; i <= n; i++)
ll gcd(ll a, ll b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
int main(void) {
ll a, b, c, d;
cin >> a >> ... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 12, 23, 0, 41, 15, 23, 0, 16, 17, 18], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 17, 19]] | 1 | 135 |
a, b, c, d = map(int, input().split())
done = "no"
while True:
c -= b
if c <= 0:
done = "yes"
break
a -= d
if a <= 0:
break
print(done)
| a, b, c, d = map(int, input().split())
done = "No"
while True:
c -= b
if c <= 0:
done = "Yes"
break
a -= d
if a <= 0:
break
print(done)
| [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 55 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int first = c / b, second = a / d;
if (c % b != 0) {
first += 1;
}
if (a % d != 0) {
second += 1;
}
if (first >= second) {
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 first = c / b, second = a / d;
if (c % b != 0) {
first += 1;
}
if (a % d != 0) {
second += 1;
}
if (first <= second) {
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 | 99 |
a,b,c,d=map(int,input().split())
acount=0
ccount=0
while 0<=a:
acount+=1
a-=d
while 0<=c:
ccount+=1
c-=b
#print(acount,ccount)
if acount>=ccount:
print("No")
else:
print("Yes") | a,b,c,d=map(int,input().split())
acount=0
ccount=0
while 0<a:
acount+=1
a-=d
while 0<c:
ccount+=1
c-=b
#print(acount,ccount)
if acount<ccount:
print("No")
else:
print("Yes") | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18]] | 5 | 68 |
A, B, C, D = map(int, input().split(' '))
i = 1
while (A > 0 and C >0):
if i% 2 ==1:
C = C - B
else:
A = A- D
i += 1
if C == 0:
print('Yes')
else:
print('No')
| A, B, C, D = map(int, input().split(' '))
i = 1
while (A > 0 and C >0):
if i% 2 ==1:
C = C - B
else:
A = A- D
i += 1
if C <= 0:
print('Yes')
else:
print('No')
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 78 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
c -= b;
if (c <= 0) {
cout << "yes" << endl;
break;
}
a -= d;
if (a <= 0) {
cout << "no" << endl;
break;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
while (true) {
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
break;
}
a -= d;
if (a <= 0) {
cout << "No" << endl;
break;
}
}
return 0;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 84 |
a, b, c, d = gets.chomp.split(" ").map(&:to_i)
i = 0
while a > 0 && b > 0
if i % 2 == 0
c -= b
else
a -= d
end
i += 1
end
puts a > c ? "Yes" : "No" | a, b, c, d = gets.chomp.split(" ").map(&:to_i)
i = 0
while a > 0 && c> 0
if i % 2 == 0
c -= b
else
a -= d
end
i += 1
end
puts a > c ? "Yes" : "No" | [["-", 0, 493, 0, 89, 15, 738, 12, 738, 31, 22], ["+", 0, 493, 0, 89, 15, 738, 12, 738, 31, 22]] | 4 | 65 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
int cnt = 0;
while (a > 0 && c > 0) {
if (cnt % 2 == 0) {
c -= b;
} else {
a -= d;
}
cnt++;
}
if (cnt % 2 == 1) {
cout << "No" << endl;
} else {
co... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
int cnt = 0;
while (a > 0 && c > 0) {
if (cnt % 2 == 0) {
c -= b;
} else {
a -= d;
}
cnt++;
}
if (a <= 0) {
cout << "No" << endl;
} else {
cout <<... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19... | 1 | 106 |
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#incl... | #include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#incl... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 165 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vl vector<ll>
#define fo(i, a, b) for (ll i = a; i < b; i++)
int main() {
int tMP, tUT, aMP, aUT;
cin >> tMP >> tUT >> aMP >> aUT;
while (1) {
aMP -= tUT;
if (aMP <= 0) {
cout << "Yes" << endl;
break;
}
tMP -... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vl vector<ll>
#define fo(i, a, b) for (ll i = a; i < b; i++)
int main() {
int tMP, tUT, aMP, aUT;
cin >> tMP >> tUT >> aMP >> aUT;
while (1) {
aMP -= tUT;
if (aMP <= 0) {
cout << "Yes" << endl;
break;
}
tMP -... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 98 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
if ((C + B - 1) / B >= (A + D - 1) / D)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
if ((C + B - 1) / B <= (A + D - 1) / D)
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 | 70 |
a,b,c,d = map(int,input().split())
while True:
a -=c
c -=b
if c <= 0:
print('No')
break
elif a <= 0:
print('Yes')
break | a,b,c,d = map(int,input().split())
while True:
a -=d
c -=b
if c <= 0:
print('Yes')
break
elif a <= 0:
print('No')
break | [["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 53 |
#include <bits/stdc++.h>
using namespace std;
int a, b, c, d;
int main() {
scanf("%d%d%d%d", &a, &b, &c, &d);
if ((d + b - 1) / b <= (a + c - 1) / c)
printf("Yes");
else
printf("No");
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int a, b, c, d;
int main() {
scanf("%d%d%d%d", &a, &b, &c, &d);
if ((c + b - 1) / b <= (a + d - 1) / d)
printf("Yes");
else
printf("No");
return 0;
} | [["-", 31, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 80 |
a,b,c,d=map(int,input().split())
while a<=0 or c<=0:
c-=b
if c<=0:
print('Yes')
exit()
a-=d
if a<=0:
print('No')
exit() | a,b,c,d=map(int,input().split())
while a>0 or c>0:
c-=b
if c<=0:
print('Yes')
exit()
a-=d
if a<=0:
print('No')
exit() | [["-", 0, 656, 0, 52, 15, 679, 31, 666, 667, 19], ["+", 0, 656, 0, 52, 15, 679, 31, 666, 667, 47], ["-", 0, 656, 0, 52, 15, 679, 12, 666, 667, 19], ["+", 0, 656, 0, 52, 15, 679, 12, 666, 667, 47]] | 5 | 63 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (A > 0 && B > 0) {
if (C - B <= 0) {
cout << "Yes" << endl;
break;
}
C = C - B;
if (A - D <= 0) {
cout << "No" << endl;
break;
}
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
while (A > 0 && B > 0) {
if (C - B <= 0) {
cout << "Yes" << endl;
break;
}
C = C - B;
if (A - D <= 0) {
cout << "No" << endl;
break;
}
A = A - D;
}
}
| [["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 89 |
/*
ID: wangjun30
LANG: C++11
TASK:
*/
#include <algorithm>
#include <array>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include ... | /*
ID: wangjun30
LANG: C++11
TASK:
*/
#include <algorithm>
#include <array>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include ... | [["-", 12, 16, 31, 23, 0, 16, 31, 16, 31, 22], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 17, 72], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 129 |
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int compare_int(const void *a, const void *b) { return *(int *)a - *(int *)b; }
int main() {
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
for (int i = 0; i < 10000; i++) {
C = C - B;
if (C <= 0) {
... | #include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int compare_int(const void *a, const void *b) { return *(int *)a - *(int *)b; }
int main() {
int A, B, C, D;
scanf("%d %d %d %d", &A, &B, &C, &D);
for (int i = 0; i < 10000; i++) {
C = C - B;
if (C <= 0) {
... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22]] | 0 | 138 |
n = input().split(" ")
a = int(n[0])
b = int(n[1])
c = int(n[2])
d = int(n[3])
for i in range(100):
c += -b
if c <= 0:
print("Yes")
break
a += -d
if d <= 0:
print("No")
break | n = input().split(" ")
a = int(n[0])
b = int(n[1])
c = int(n[2])
d = int(n[3])
for i in range(100):
c += -b
if c <= 0:
print("Yes")
break
a += -d
if a <= 0:
print("No")
break
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 88 |
#include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define pii pair<ll, ll>
#define vec vector<ll>
#define rep(i, a, b) for (ll i = a; i <= b; i++)
#define repd(i, a, b) for (ll i = a; i >= b; i--)
#define pb push_back
#define mp make_pair
#define M 1000000007
using namespace std;
int main() {
... | #include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define pii pair<ll, ll>
#define vec vector<ll>
#define rep(i, a, b) for (ll i = a; i <= b; i++)
#define repd(i, a, b) for (ll i = a; i >= b; i--)
#define pb push_back
#define mp make_pair
#define M 1000000007
using namespace std;
int main() {
... | [["-", 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, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 163 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
a -= d;
c -= b;
}
if (a < 0 && c < 0) {
cout << "No";
} else if (c > 0) {
cout << "No";
} else {
cout << "Yes";
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll a, b, c, d;
cin >> a >> b >> c >> d;
while (a > 0 && c > 0) {
a -= d;
c -= b;
}
if (a < 0 && c < 0) {
cout << "Yes";
} else if (c > 0) {
cout << "No";
} else {
cout << "Yes";
}
return 0;
} | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 102 |
import math
input_str = input()
a, b, c, d = map(int, input_str.split())
print("yes" if math.ceil(c/b) <= math.ceil(a/d) else "no")
| import math
input_str = input()
a, b, c, d = map(int, input_str.split())
print("Yes" if math.ceil(c/b) <= math.ceil(a/d) else "No")
| [["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]] | 5 | 53 |
#include <bits/stdc++.h>
#define int long long
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
signed main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int a, b, c, d;
cin >> a >> b >> c >> d;
int winner;
rep(i, 10... | #include <bits/stdc++.h>
#define int long long
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
signed main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int a, b, c, d;
cin >> a >> b >> c >> d;
int winner = 100;
rep... | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 156 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0;; i++) {
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
return 0;
}
a -= d;
if (d <= 0) {
cout << "No" << endl;
return 0;
}
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d; // A:TH B:TS C:AH D:AS
for (int i = 0;; i++) {
c -= b;
if (c <= 0) {
cout << "Yes" << endl;
return 0;
}
a -= d;
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 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
if ((B + C - 1) / C <= (A + D - 1) / D) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
if ((B + C - 1) / B <= (A + D - 1) / D) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 74 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef tuple<ll, ll, ll> mytuple;
const ll INF = 1e9;
const ll MOD = 1000000007;
const double pi = 3.141592653589793238;
// a と b の最大公約数を返す関数
long long GCD(long long a, long long b) {
if (b == 0) {
return a;
} else {
... | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef tuple<ll, ll, ll> mytuple;
const ll INF = 1e9;
const ll MOD = 1000000007;
const double pi = 3.141592653589793238;
// a と b の最大公約数を返す関数
long long GCD(long long a, long long b) {
if (b == 0) {
return a;
} else {
... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 271 |
A, B, C, D = map(int, input().split())
counter = 1
while A > 0 and C > 0:
if counter % 2 == 1:
'''T 攻击'''
C -= B
elif counter % 2 == 0:
A -= D
if A <= 0:
print('No')
else:
print('Yes') | A, B, C, D = map(int, input().split())
counter = 1
while A > 0 and C > 0:
if counter % 2 == 1:
'''T 攻击'''
C -= B
elif counter % 2 == 0:
A -= D
counter += 1
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, 17, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 74 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = a + (d - 1) / d;
int y = c + (b - 1) / b;
if (x <= y)
cout << "No";
else
cout << "Yes";
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
int x = (a + (d - 1)) / d;
int y = (c + (b - 1)) / b;
if (x < y)
cout << "No";
else
cout << "Yes";
}
| [["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 24], ["+", 0, 43, 49, 50, 51, 16, 31, 23, 0, 25], ["+", 51, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 76 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.