buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] s = br.readLine().split(" ");
int a = Integer.parseInt(s[0].trim());
int b... |
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] s = br.readLine().split(" ");
int a = Integer.parseInt(s[0].trim());
int ... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 272 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
const char *SEP = " ";
char input_str[512];
char *num_str;
int r, g, b, k, i;
fgets(input_str, sizeof(input_str), stdin);
num_str = strtok(input_str, SEP);
r = atoi(num_str);
num_str = strtok(NULL, SEP);
g = atoi(num_str);
... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
const char *SEP = " ";
char input_str[512];
char *num_str;
int r, g, b, k, i;
fgets(input_str, sizeof(input_str), stdin);
num_str = strtok(input_str, SEP);
r = atoi(num_str);
num_str = strtok(NULL, SEP);
g = atoi(num_str);
... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 22]] | 0 | 194 |
A, B, C = map(int, input().split())
K = int(input())
for i in range(K):
if A > C:
C = C * 2
K -= 1
if K > 0:
for i in range(K):
if A > B:
B = B * 2
K -= 1
if B >= C:
if K > 0:
C = C * 2
exit
if A < B and C > B:
... | A, B, C = map(int, input().split())
K = int(input())
for i in range(K):
if A >= C:
C = C * 2
K -= 1
if K > 0:
for i in range(K):
if A >= B:
B = B * 2
K -= 1
if B >= C:
if K > 0:
C = C * 2
exit
if A < B and C > B:
... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 112 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define MP make_pair
#define ull unsigned long long int
#define F first
#define S second
#define put insert
#define pb push_back
#define rsort(arr) sort(arr.begin(), arr.end(), greater<int>())
#define srt(arr) sort(arr.begin(), arr.end())
ll MOD = 1... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define MP make_pair
#define ull unsigned long long int
#define F first
#define S second
#define put insert
#define pb push_back
#define rsort(arr) sort(arr.begin(), arr.end(), greater<int>())
#define srt(arr) sort(arr.begin(), arr.end())
ll MOD = 1... | [["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 212 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, k, key = 0;
int bb, cc;
cin >> a >> b >> c >> k;
bb = b;
cc = c;
for (int i = 0; i <= k; i++) {
b = bb; //初始化
c = cc;
b = b * (1 << i);
c = c * (1 << (k - i));
if (a < b && b < c)
key = 1;
}
if (key)
cout <<... | #include <iostream>
using namespace std;
int main() {
int a, b, c, k, key = 0;
int bb, cc;
cin >> a >> b >> c >> k;
bb = b;
cc = c;
for (int i = 0; i <= k; i++) {
b = bb; //初始化
c = cc;
b = b * (1 << i);
c = c * (1 << (k - i));
if (a < b && b < c)
key = 1;
}
if (key)
cout <<... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 135 |
A, B, C = list(map(int, input().split()))
K = int(input())
ans = 'No'
for i in range(K):
if A < B < C:
break
if A > B:
B = 2 * B
elif B > C:
C = 2 * C
if A < B < C:
ans = 'Yes'
print(ans) |
A, B, C = list(map(int, input().split()))
K = int(input())
ans = 'No'
for i in range(K):
if A < B < C:
break
if A >= B:
B = 2 * B
elif B >= C:
C = 2 * C
if A < B < C:
ans = 'Yes'
print(ans) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]] | 5 | 86 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int r, g, b, k, x, y, temp;
cin >> r >> g >> b;
cin >> k;
temp = 0;
if (g <= r) {
g = 2 * g;
temp++;
}
if (g <= b) {
b = 2 * b;
temp++;
}
if (temp <= k) {
cout << "Yes";
} else {
cout << "No";
}
return 0... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int r, g, b, k, x, y, temp;
cin >> r >> g >> b;
cin >> k;
temp = 0;
while (g <= r) {
g = 2 * g;
temp++;
}
while (b <= g) {
b = 2 * b;
temp++;
}
if (temp <= k) {
cout << "Yes";
} else {
cout << "No";
}
re... | [["-", 0, 30, 0, 14, 8, 9, 0, 57, 0, 121], ["+", 0, 30, 0, 14, 8, 9, 0, 52, 0, 89], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22]] | 1 | 105 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
bool j = true;
for (int i = 0; i < k; i++) {
if (a > b) {
b = 2 * b;
} else if (b > c) {
c = 2 * c;
}
}
if (a < b &... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
bool j = true;
for (int i = 0; i < k; i++) {
if (a >= b) {
b = 2 * b;
continue;
} else if (b >= c) {
c = 2 * c;
}
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 148 |
a,b,c = map(int,input().split())
k = int(input())
is_Ok = False
for i in range(k) :
# print(k,a,b,c)
if (a > b) :
b *= 2
continue
if (b > c) :
c *= 2
continue
if (a<b and b<c) :
is_Ok = True
break
if (a<b and b<c) :
is_Ok = True
if (is_Ok) :
p... | a,b,c = map(int,input().split())
k = int(input())
is_Ok = False
for i in range(k) :
# print(k,a,b,c)
if (a >= b) :
b *= 2
continue
if (b >= c) :
c *= 2
continue
if (a<b and b<c) :
is_Ok = True
break
if (a<b and b<c) :
is_Ok = True
if (is_Ok) :
... | [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20]] | 5 | 108 |
#include <bits/stdc++.h>
using namespace std;
#define pp pair<int, int>
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep2(i, m, n) for (int(i) = (m); (i) < (n); (i)++)
#define ll long long
#define ld long double
#define all(a) (a).begin(), (a).end()
#define mk make_pair
ll mod = 998244353;
int inf = 100... | #include <bits/stdc++.h>
using namespace std;
#define pp pair<int, int>
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep2(i, m, n) for (int(i) = (m); (i) < (n); (i)++)
#define ll long long
#define ld long double
#define all(a) (a).begin(), (a).end()
#define mk make_pair
ll mod = 998244353;
int inf = 100... | [["-", 51, 16, 12, 16, 12, 2, 3, 4, 0, 22], ["+", 51, 16, 12, 16, 12, 2, 3, 4, 0, 22]] | 1 | 167 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a[3];
cin >> a[0] >> a[1] >> a[2];
int k;
cin >> k;
while (k--) {
if (a[2] < a[1])
a[2] *= 2;
else if (a[1] < a[0])
a[1] *= 2;
}
if (a[1] > a[0] && a[2] > a[1]) {
cout << "Yes\n";
} else {
cout << "No\n";
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a[3];
cin >> a[0] >> a[1] >> a[2];
int k;
cin >> k;
while (k--) {
if (a[2] <= a[1])
a[2] *= 2;
else if (a[1] <= a[0])
a[1] *= 2;
}
if (a[1] > a[0] && a[2] > a[1]) {
cout << "Yes\n";
} else {
cout << "No\n";
}
}... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 129 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
for (int i = 0; i < K; i++) {
if (C > B && B > A)
break;
else if (B > C)
C *= 2;
else if (A > B)
B *= 2;
else if (A > C)
C *= 2;
}
if (C > B && B > A)
cout << "Yes... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
for (int i = 0; i < K; i++) {
if (C > B && B > A)
break;
else if (B >= C)
C *= 2;
else if (A >= B)
B *= 2;
else if (A >= C)
C *= 2;
}
if (C > B && B > A)
cout << "... | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 115 |
a, b, c = map(int, input().split())
k = int(input())
for i in range(k):
if b < a:
b = b * 2
elif c < b:
c = c * 2
else:
pass
if (a < b) & (b < c):
print('Yes')
else:
print('No') | a, b, c = map(int, input().split())
k = int(input())
for i in range(k):
if b <= a:
b = b * 2
elif c <= b:
c = c * 2
else:
pass
if (a < b) & (b < c):
print('Yes')
else:
print('No') | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]] | 5 | 84 |
R,G,B = map(int,input().split())
K = int(input())
ans = 'No'
while (K > 0):
if R >= G:
G *= 2
K -= 1
elif G >= B:
B *= 2
K -= 1
else:
k -= 1
if R < G < B:
ans = 'Yes'
print(ans) | R,G,B = map(int,input().split())
K = int(input())
ans = 'No'
while (K > 0):
if R >= G:
G *= 2
K -= 1
elif G >= B:
B *= 2
K -= 1
else:
K -= 1
if R < G < B:
ans = 'Yes'
print(ans) | [["-", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22]] | 5 | 81 |
a,b,c = map(int,input().split())
k = int(input())
while((not b>=a) and k):
b*=2
k-=1
while((not c>=b) and k):
c*=2
k-=1
if(a<b and b<c):
print('Yes')
else:
print('No')
| a,b,c = map(int,input().split())
k = int(input())
while((not b>a) and k):
b*=2
k-=1
while((not c>b) and k):
c*=2
k-=1
if(a<b and b<c):
print('Yes')
else:
print('No')
| [["-", 0, 679, 31, 23, 0, 681, 28, 666, 667, 20], ["+", 0, 679, 31, 23, 0, 681, 28, 666, 667, 47]] | 5 | 87 |
#include <iostream>
using namespace std;
string solve(int a, int b, int c, int k) {
if (c > b and b > a)
return "Yes";
// while(k > 0){
while (b < a and k > 0) {
b *= 2;
k--;
}
while (c < b and k > 0) {
c *= 2;
k--;
}
if (a < b and b < c)
return "Yes";
// k--;
// }
// if(a ... | #include <iostream>
using namespace std;
string solve(int a, int b, int c, int k) {
if (c > b and b > a)
return "Yes";
while (b <= a and k > 0) {
b *= 2;
k--;
}
while (c <= b and k > 0) {
c *= 2;
k--;
}
if (c > b and b > a)
return "Yes";
return "No";
}
int main() {
int a, b, c,... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["-", 0, 57, 15, 339, 51, 16, 12, 16,... | 1 | 146 |
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 k = sc.nextInt();
for (int i = 0; i < k; ++i) {
if (a > b) {
b = b * 2;
} else {
... | 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 k = sc.nextInt();
for (int i = 0; i < k; ++i) {
if (a >= b) {
b = b * 2;
} else {
... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20]] | 3 | 147 |
// Code by Mukul Totla
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n, i;
ll a, b, c, k;
cin >> a >> b >> c;
cin >> k;
while (b < a && k > 0) {
b = b * 2;
k--;
}
while (c < b && k > 0) {
c *= 2;
k... | // Code by Mukul Totla
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n, i;
ll a, b, c, k;
cin >> a >> b >> c;
cin >> k;
while (b <= a && k > 0) {
b *= 2;
k--;
}
while (c <= b && k > 0) {
c *= 2;
... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 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, 17, 48], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 108]] | 1 | 129 |
def resolve():
a, b, c = map(int, input().split())
k = int(input())
for _ in range(k):
if b < a:
b *= 2
if b > a and c < b:
c *= 2
if a < b < c:
print("Yes")
else:
print("No")
resolve() | def resolve():
a, b, c = map(int, input().split())
k = int(input())
for _ in range(k):
if b <= a:
b *= 2
elif b > a and c <= b:
c *= 2
if a < b < c:
print("Yes")
else:
print("No")
resolve() | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 75, 665, 0, 683], ["-", 8, 196, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 667, 19]] | 5 | 83 |
import sys
input = sys.stdin.readline
a, b, c = map(int, input().split())
k = int(input())
def two(num):
for i in range(1,8):
if (2**(i-1)<=num) & (num<2**(i)):
return i
ab = two(a/b)
b_ = b*2**ab
b_c = two(b_/c)
if k>=(ab+b_c):
print("Yes")
else:
print("No")
| import sys
input = sys.stdin.readline
a, b, c = map(int, input().split())
k = int(input())
def two(num):
for i in range(1,8):
if (2**(i-1)<=num) & (num<2**(i)):
return i
return 0
ab = two(a/b)
b_ = b*2**ab
b_c = two(b_/c)
if k>=(ab+b_c):
print("Yes")
else:
print("No")
| [["+", 0, 656, 0, 14, 8, 196, 0, 37, 0, 38], ["+", 0, 656, 0, 14, 8, 196, 0, 37, 0, 612]] | 5 | 122 |
#include <bits/stdc++.h>
#define dbug printf("I am here\n");
#define Fast \
ios_base::sync_with_stdio(false); \
cin.tie(0);
#define vs v.size()
#define ss s.size()
#define sot(v) sort(v.begin(), v.end())
#de... | #include <bits/stdc++.h>
#define dbug printf("I am here\n");
#define Fast \
ios_base::sync_with_stdio(false); \
cin.tie(0);
#define vs v.size()
#define ss s.size()
#define sot(v) sort(v.begin(), v.end())
#de... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22]] | 1 | 182 |
#include <iostream>
using namespace std;
int main(void) {
int A, B, C, K;
cin >> A >> B >> C;
cin >> K;
for (int i = 0; i < K; i++) {
if (A > B)
B *= 2;
else if (B > C)
C *= 2;
else
break;
}
if (A < B && B < C)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <iostream>
using namespace std;
int main(void) {
int A, B, C, K;
cin >> A >> B >> C;
cin >> K;
for (int i = 0; i < K; i++) {
if (A >= B)
B *= 2;
else if (B >= C)
C *= 2;
else
break;
}
if (A < B && B < C)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 101 |
A,B,C=(input().split())
K = int(input())
A = int(A)
B = int(B)
C = int(C)
for i in range(K):
print(i)
if B > C or C == B:
C = C*2
elif A > B or B == A:
B = B*2
if A < B and B < C:
print("Yes")
else:
print("No") | A,B,C=(input().split())
K = int(input())
A = int(A)
B = int(B)
C = int(C)
for i in range(K):
if B > C or C == B:
C = C*2
elif A > B or B == A:
B = B*2
if A < B and B < C:
print("Yes")
else:
print("No") | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 104 |
a, b, c = list(map(int, input().split()))
k = int(input())
while k != 0:
if b < a:
b *= 2
elif c < b:
c *= 2
else:
break
k -= 1
if (b > a) and (c > b):
print('Yes')
else:
print('No') | a, b, c = list(map(int, input().split()))
k = int(input())
while k != 0:
if b <= a:
b *= 2
elif c <= b:
c *= 2
else:
break
k -= 1
if (b > a) and (c > b):
print('Yes')
else:
print('No') | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]] | 5 | 83 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
while (A > B) {
K--;
B = B * 2;
}
while (B > C) {
K--;
C = C * 2;
}
if (K >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
while (A >= B) {
K--;
B = B * 2;
}
while (B >= C) {
K--;
C = C * 2;
}
if (K >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 92 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1e18;
const ll mod = 1e9 + 7;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int A, B, C, k;
cin >> A >> B >> C >> k;
bool flag = false;
vector<int> a_bi(k + 1);
vector<int> b_bi(k + 1);
vector<int> c_bi(k + 1);... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1e18;
const ll mod = 1e9 + 7;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int A, B, C, k;
cin >> A >> B >> C >> k;
bool flag = false;
vector<int> a_bi(k + 1);
vector<int> b_bi(k + 1);
vector<int> c_bi(k + 1);... | [["-", 0, 14, 8, 9, 0, 7, 26, 27, 28, 22], ["+", 0, 14, 8, 9, 0, 7, 26, 27, 28, 22]] | 1 | 284 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (i = 0; i < n; i++)
// 2D::rep(i,j)rep(j,j)cin>>bin[i][j];
// vector<int> a(n)
#define Graph vector<vector<int>>
#define A1 cout << "No" << endl
#define A2 cout << "Yes" << endl
#define A3 cout << ans <<
#define AA(i) cout << i <<... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (i = 0; i < n; i++)
// 2D::rep(i,j)rep(j,j)cin>>bin[i][j];
// vector<int> a(n)
#define Graph vector<vector<int>>
#define A1 cout << "No" << endl
#define A2 cout << "Yes" << endl
#define A3 cout << ans <<
#define AA(i) cout << i <<... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 159 |
A,B,C = map(int,input().split())
K = int(input())
cnt = 0
for _ in range(K):
if A>B:
B *= 2
cnt += 1
else:
break
for _ in range(K-cnt):
if B>C:
C *= 2
else:
break
if (A<B) and (B<C):
print('Yes')
else:
print('No') | A,B,C = map(int,input().split())
K = int(input())
cnt = 0
for _ in range(K):
if A>=B:
B *= 2
cnt += 1
else:
break
for _ in range(K-cnt):
if B>=C:
C *= 2
else:
break
#print(cnt)
if (A<B) and (B<C):
print('Yes')
else:
print('No') | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 99 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef unsigned int u32;
typedef int i32;
typedef unsigned long long int u64;
typedef long long int i64; // 9e18
typedef uint16_t u16;
type... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef unsigned int u32;
typedef int i32;
typedef unsigned long long int u64;
typedef long long int i64; // 9e18
typedef uint16_t u16;
type... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 201 |
#include <bits/stdc++.h>
using namespace std;
// syntax sugar: `for (int i = 0; i < N; ++i)`
#define rep(i, N) for (int i = 0; i < (int)(N); ++i)
// syntax sugar: `for (int i = 0; i < N; ++i)`
#define REP(type, name, beginValue, endCondValue) \
for (type name = beginValue; name < endCon... |
#include <bits/stdc++.h>
using namespace std;
// syntax sugar: `for (int i = 0; i < N; ++i)`
#define rep(i, N) for (int i = 0; i < (int)(N); ++i)
// syntax sugar: `for (int i = 0; i < N; ++i)`
#define REP(type, name, beginValue, endCondValue) \
for (type name = beginValue; name < endCon... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 230 |
#include <iostream>
using namespace std;
int main() {
int A, B, C, no_of_operations;
cin >> A >> B >> C >> no_of_operations;
while (A > B && no_of_operations > 0) {
B *= 2;
no_of_operations--;
}
while (B > C && no_of_operations > 0) {
C *= 2;
no_of_operations--;
}
cout << (A < B && B ... | #include <iostream>
using namespace std;
int main() {
int A, B, C, no_of_operations;
cin >> A >> B >> C >> no_of_operations;
while (A >= B && no_of_operations > 0) {
B *= 2;
no_of_operations--;
}
while (B >= C && no_of_operations > 0) {
C *= 2;
no_of_operations--;
}
cout << (A < B && ... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 20]] | 1 | 94 |
import java.util.Scanner;
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 k = sc.nextInt();
boolean result = false;
int operationNum = 0;
while (a < b && b < c == ... | import java.util.Scanner;
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 k = sc.nextInt();
boolean result = false;
int operationNum = 0;
while (!(a < b && b < c) ... | [["+", 0, 52, 15, 15, 0, 16, 31, 91, 17, 111], ["+", 15, 15, 0, 16, 31, 91, 439, 23, 0, 24], ["-", 15, 15, 0, 16, 31, 16, 12, 16, 17, 60], ["-", 15, 15, 0, 16, 31, 16, 12, 16, 12, 147], ["+", 15, 15, 0, 16, 31, 91, 439, 23, 0, 25]] | 3 | 182 |
import sys
A , B , C = map(int,input().split())
K = int(input())
for i in range(K):
if B >= A :
B *= 2
else:
C *= 2
if B > A :
if C > B:
print("Yes")
sys.exit()
print("No") | import sys
A , B , C = map(int,input().split())
K = int(input())
for i in range(K):
if B <= A :
B *= 2
else:
C *= 2
if B > A :
if C > B:
print("Yes")
sys.exit()
print("No") | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 76 |
a,b,c = map(int,input().split())
k = int(input())
for i in range(k):
if a > b:
b = 2 * b
continue
if b > c:
c = 2 * c
continue
if a < b and b < c:
print('Yes')
else:
print('No') | import sys
a,b,c = map(int,input().split())
k = int(input())
for i in range(k):
if a >= b:
b = 2 * b
continue
if b >= c:
c = 2 * c
continue
if a < b and b < c:
print('Yes')
else:
print('No') | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 79 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, K;
int i = 0;
cin >> A >> B >> C >> K;
if (A < B && B < C)
cout << "Yes" << endl;
else {
for (; i < K; i++) {
if (A < B) {
break;
}
if (A > B) {
B *= 2;
}
}
for (int j = 0; j < K -... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, K;
int i = 0;
cin >> A >> B >> C >> K;
if (A < B && B < C)
cout << "Yes" << endl;
else {
for (; i < K; i++) {
if (A < B) {
break;
}
if (A >= B) {
B *= 2;
}
}
for (int j = 0; j < K ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 158 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
int i;
for (i = 0; i < k; i++) {
if (a < b && b < c) {
cout << "Yes";
break;
} else {
if (a > b) {
b = b * 2;
} else if (b > c) {
c = c * 2;
}
}
}
... | #include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
int i;
for (i = 0; i < k; i++) {
if (a < b && b < c) {
cout << "Yes";
break;
} else {
if (a >= b) {
b = b * 2;
} else if (b >= c) {
c = c * 2;
}
}
}
... | [["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 152 |
A,B,C = map(int,input().split())
K = int(input())
for i in range(K):
if B < A:
B *= 2
continue
if C < B:
C *= 2
continue
if A < B < C:
print("Yes")
else:
print("No") | A,B,C = map(int,input().split())
K = int(input())
for i in range(K):
if B <= A:
B *= 2
continue
if C <= B:
C *= 2
continue
if A < B < C:
print("Yes")
else:
print("No") | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 73 |
#include "bits/stdc++.h"
#include "ext/pb_ds/assoc_container.hpp"
#include "ext/pb_ds/tree_policy.hpp"
#include "ext/rope"
using namespace std;
using namespace __gnu_pbds;
using namespace __gnu_cxx;
/*
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("avx,avx2,fma")
*/
void trace(in... | #include "bits/stdc++.h"
#include "ext/pb_ds/assoc_container.hpp"
#include "ext/pb_ds/tree_policy.hpp"
#include "ext/rope"
using namespace std;
using namespace __gnu_pbds;
using namespace __gnu_cxx;
/*
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("avx,avx2,fma")
*/
void trace(in... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 1,595 |
#include <bits/stdc++.h>
#include <string>
#include <vector>
using namespace std;
#define l long long
#define pb push_back
#define mem(a, n) memset(a, n, sizeof(a))
#define find(v, n) find(v.begin(), v.end(), n)
#define sort1(v) sort(v.begin(), v.end())
#define lb(v, n) lower_bound(v.begin(), v.end(), n) - v.begin()
#d... | #include <bits/stdc++.h>
#include <string>
#include <vector>
using namespace std;
#define l long long
#define pb push_back
#define mem(a, n) memset(a, n, sizeof(a))
#define find(v, n) find(v.begin(), v.end(), n)
#define sort1(v) sort(v.begin(), v.end())
#define lb(v, n) lower_bound(v.begin(), v.end(), n) - v.begin()
#d... | [["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 35]] | 1 | 323 |
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
//#include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
#define urept(soeji, start, n) for (int soeji = start; soeji < n; soeji++)
#defi... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
//#include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
#define urept(soeji, start, n) for (int soeji = start; soeji < n; soeji++)
#defi... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 151 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
using vec_int = vector<int>;
using P = pair<int, int>;
using T = tuple<int, int, int>;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int charToInt(char c) {
char zero_num = '0';
return (int)c - (int)zero_num;
}
signed... | #include <bits/stdc++.h>
using namespace std;
#define int long long
using vec_int = vector<int>;
using P = pair<int, int>;
using T = tuple<int, int, int>;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int charToInt(char c) {
char zero_num = '0';
return (int)c - (int)zero_num;
}
signed... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 201 |
/*
_/\_
*/
#include "bits/stdc++.h"
using namespace std;
#define pb push_back
#define F first
#define S second
//#define biGinf 9e+18
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define inpv(v) \
for (auto &x : v) ... | /*
_/\_
*/
#include "bits/stdc++.h"
using namespace std;
#define pb push_back
#define F first
#define S second
//#define biGinf 9e+18
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define inpv(v) \
for (auto &x : v) ... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 377 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep1(i, n) for (int i = 1; i < (n); i++)
template <class T> istream &operator>>(istream &s, vector<T> &v) {
for (T &x : v) {
s >> x;
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep1(i, n) for (int i = 1; i < (n); i++)
template <class T> istream &operator>>(istream &s, vector<T> &v) {
for (T &x : v) {
s >> x;
... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 219 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < (ll)n; i++)
#define REPR(i, n) for (ll i = (ll)n - 1; i >= 0; i--)
#define FOR(i, m, n) for (ll i = (ll)m; i < (ll)n; i++)
#define FORR(i, m, n) for (ll i = (ll)m - 1; i >= (ll)n; i--)
#define ALL(x) (x).begin(), (x... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < (ll)n; i++)
#define REPR(i, n) for (ll i = (ll)n - 1; i >= 0; i--)
#define FOR(i, m, n) for (ll i = (ll)m; i < (ll)n; i++)
#define FORR(i, m, n) for (ll i = (ll)m - 1; i >= (ll)n; i--)
#define ALL(x) (x).begin(), (x... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 455 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
while (k) {
if (a > b) {
b *= 2;
} else if (b > c) {
c *= 2;
}
k--;
}
if (a < b && b < c) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;... | #include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
while (k) {
if (a >= b) {
b *= 2;
} else if (b >= c) {
c *= 2;
}
k--;
}
if (a < b && b < c) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 101 |
a,b,c=map(int,input().split())
k=int(input())
res="No"
for i in range(k):
if a>b:
b*=2
else:c*=2
if a<b<c:res="Yes"
print(res) | a,b,c=map(int,input().split())
k=int(input())
res="No"
for i in range(k):
if a>=b:
b*=2
else:c*=2
if a<b<c:res="Yes"
print(res)
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 68 |
A, B, C = map(int, input().split())
K = int(input())
for i in range(K):
if A > B:
B *= 2
elif B > C:
C *= 2
print('Yes' if A<B<C else 'No') | A, B, C = map(int, input().split())
K = int(input())
for i in range(K):
if A >= B:
B *= 2
elif B >= C:
C *= 2
print('Yes' if A<B<C else 'No') | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]] | 5 | 66 |
#include <bits/stdc++.h>
using namespace std;
signed main() {
ios_base::sync_with_stdio(0);
int a, b, c, k;
cin >> a >> b >> c >> k;
int cnt = 0;
while (b <= a) {
b <<= 1;
cnt++;
}
while (c <= b) {
c <<= 2;
cnt++;
}
if (cnt <= k) {
cout << "Yes\n";
} else {
cout << "No\n";... | #include <bits/stdc++.h>
using namespace std;
signed main() {
ios_base::sync_with_stdio(0);
int a, b, c, k;
cin >> a >> b >> c >> k;
int cnt = 0;
while (b <= a) {
b <<= 1;
cnt++;
}
while (c <= b) {
c <<= 1;
cnt++;
}
if (cnt <= k) {
cout << "Yes\n";
} else {
cout << "No\n";... | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 101 |
A, B, C = map(int, input().split())
K = int(input())
for i in range(K):
if A >= B:
B = B*2
elif B >= C:
C = C*2
else:
break
if A<B<C:
print(Yes)
else:
print(No) | A, B, C = map(int, input().split())
K = int(input())
for i in range(K):
if A >= B:
B = B*2
elif B >= C:
C = C*2
else:
break
if A<B<C:
print('Yes')
else:
print('No') | [["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 74 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define for1(i, n) for (int i = 1; i <= n; i++)
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define FORD(i, a, b) for (int i = (a); i >= (b); i--)
const int INF = 1 << 29;
const int MOD = 1073741824;
#define pp pair<... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define for1(i, n) for (int i = 1; i <= n; i++)
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define FORD(i, a, b) for (int i = (a); i >= (b); i--)
const int INF = 1 << 29;
const int MOD = 1073741824;
#define pp pair<... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19]] | 1 | 316 |
#include <bits/stdc++.h>
using namespace std;
#define X first
#define Y second
#define mp make_pair
#define pb push_back
#define rep(i, a, n) for (int i = (a); i <= (n); ++i)
#define dep(i, a, n) for (int i = (a); i >= (n); --i)
#define eps 1e-8
#define pi 3.1415926535897
#define sqr(x) ((x) * (x))
#define MAX(a, b) a ... | #include <bits/stdc++.h>
using namespace std;
#define X first
#define Y second
#define mp make_pair
#define pb push_back
#define rep(i, a, n) for (int i = (a); i <= (n); ++i)
#define dep(i, a, n) for (int i = (a); i >= (n); --i)
#define eps 1e-8
#define pi 3.1415926535897
#define sqr(x) ((x) * (x))
#define MAX(a, b) a ... | [["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 935 |
a,b,c = map(int,input().split())
k = int(input())
for i in range(k):
if b < a:
b*=2
else:
c*=2
if c>b>a:
print('Yes')
else:
print('No') | a,b,c = map(int,input().split())
k = int(input())
for i in range(k):
if b <= a:
b*=2
else:
c*=2
if c>b>a:
print('Yes')
else:
print('No') | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 68 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
rep(i, K) {
if (A > B) {
B *= 2;
} else {
C *= 2;
}
}
if (A < B && B < C)
std::cout << "Yes" << '\n';
else
std::cout << "No" << '... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
rep(i, K) {
if (A >= B) {
B *= 2;
} else {
C *= 2;
}
}
if (A < B && B < C)
std::cout << "Yes" << '\n';
else
std::cout << "No" << ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 101 |
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define allp(x) (x)->begin(), (x)->end()
#define pb push_back
using namespace std;
void dout() { cerr << endl; }
typedef long long ll;
template <typename Head, typename... Tail> void dout(Head H, Tail... T) {
cerr << H << ' ';
dout(T...);
}
#define... |
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define allp(x) (x)->begin(), (x)->end()
#define pb push_back
using namespace std;
void dout() { cerr << endl; }
typedef long long ll;
template <typename Head, typename... Tail> void dout(Head H, Tail... T) {
cerr << H << ' ';
dout(T...);
}
#define... | [["-", 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 | 535 |
#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define REP1(i, n) for (int i = 1, i##_len = (n); i < i##_len; ++i)
#define ll long long
static const int MAX = 10000;
static const ll INFTY = 1e12;
template <class T> inline bool chmax(T &a, T b) {
if (... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define REP1(i, n) for (int i = 1, i##_len = (n); i < i##_len; ++i)
#define ll long long
static const int MAX = 10000;
static const ll INFTY = 1e12;
template <class T> inline bool chmax(T &a, T b) {
if (... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]] | 1 | 213 |
A, B, C = map(int, input().split())
K = int(input())
ans = "No"
for a in range(K):
for b in range(K):
for c in range(K):
if a+b+c<=K and (A<<a)<(B<<b)<(C<<c):
ans = "Yes"
print(ans)
| A, B, C = map(int, input().split())
K = int(input())
ans = "No"
for a in range(K+1):
for b in range(K+1):
for c in range(K+1):
if a+b+c<=K and (A<<a)<(B<<b)<(C<<c):
ans = "Yes"
print(ans)
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 91 |
#include <bits/stdc++.h>
using namespace std;
#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++)
int main(void) {
int a, b, c, k;
int magic = 0;
cin >> a >> b >> c >> k;
// a<b<cになればYes
while (b <= a) {
b *= 2;
magic++;
}
while (c <=... | #include <bits/stdc++.h>
using namespace std;
#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++)
int main(void) {
int a, b, c, k;
int magic = 0;
cin >> a >> b >> c >> k;
// a<b<cになればYes
while (b <= a) {
b *= 2;
magic++;
}
while (c <=... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 116 |
#include <bits/stdc++.h>
using namespace std;
#define REP(i, s) for (int i = 0; i < s; ++i)
#define ALL(v) (v).begin(), (v).end()
#define COUT(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << endl
#define EACH(i, s) \
for (__typeof__((s).begin()... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, s) for (int i = 0; i < s; ++i)
#define ALL(v) (v).begin(), (v).end()
#define COUT(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << endl
#define EACH(i, s) \
for (__typeof__((s).begin()... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 578 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <string>
#include <vector>
#define SPBR(w, n) std::cout << (w + 1 == n ... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <string>
#include <vector>
#define SPBR(w, n) std::cout << (w + 1 == n ... | [["-", 0, 14, 8, 9, 0, 57, 64, 1, 0, 22], ["+", 0, 14, 8, 9, 0, 57, 64, 1, 0, 22], ["-", 8, 9, 0, 57, 75, 76, 0, 1, 0, 22], ["+", 8, 9, 0, 57, 75, 76, 0, 1, 0, 22]] | 1 | 340 |
A, B, C=map(int, input().split())
K=int(input())
i=0
while i<K:
if B<A:
B*=2
elif C<B:
C*=2
i+=1
if A<B<C:
print('Yes')
else:
print('No') | A, B, C=map(int, input().split())
K=int(input())
i=0
while i<K:
if B<=A:
B*=2
elif C<=B:
C*=2
i+=1
if A<B<C:
print('Yes')
else:
print('No') | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]] | 5 | 74 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#define ll long long
#define fi first
#define se second
#define pb push_back
#define me memse... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#define ll long long
#define fi first
#define se second
#define pb push_back
#define me memse... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 188 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
for (int i = 0; i < k; i++) {
if (a > b)
b *= 2;
else
c *= 2;
}
cout << ((a < b && b < c) ? "Yes" : "No");
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
for (int i = 0; i < k; i++) {
if (a >= b)
b *= 2;
else
c *= 2;
}
cout << ((a < b && b < c) ? "Yes" : "No");
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 84 |
#include <bits/stdc++.h>
using namespace std;
#define REP(i, a, b) for (int i = (a); i <= (b); i++)
#define PER(i, a, b) for (int i = (a); i >= (b); i--)
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define all(S) (S).begin(), (S).end()
#define pf push_front
#define pb push_back
#define mk make_pair
#define S ... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, a, b) for (int i = (a); i <= (b); i++)
#define PER(i, a, b) for (int i = (a); i >= (b); i--)
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define all(S) (S).begin(), (S).end()
#define pf push_front
#define pb push_back
#define mk make_pair
#define S ... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 183 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll r, g, b;
cin >> r >> g >> b;
ll k;
cin >> k;
while (k > 0 && r > g) {
k--;
g = g * 2;
}
while (k > 0 && g > b) {
b = b * 2;
k--;
}
if (b > g && g > r)
cout << "Yes\n";
else
cout << "No\n"... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll r, g, b;
cin >> r >> g >> b;
ll k;
cin >> k;
while (k > 0 && r >= g) {
k--;
g = g * 2;
}
while (k > 0 && g >= b) {
b = b * 2;
k--;
}
// cout<<r<<" "<<g<<" "<<b<<"\n";
if (b > g && g > r)
cou... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 110 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
while (k > 0) {
if (b < a) {
b *= 2;
} else {
c *= 2;
}
k--;
}
if (b > a && c > b) {
... | #include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
while (k > 0) {
if (b <= a) {
b *= 2;
} else {
c *= 2;
}
k--;
}
if (b > a && c > b) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 118 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pii pair<int, int>
#define pb push_back
#define INF INT_MAX
#define mod 1000000007ll
#define fi first
#define se second
#define f(i, p, q) for (int i = p; i < q; i++)
#define si(a) scanf("%d", &a)
#define sii(a, b) scanf("%d %d", &a, &b)
#de... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pii pair<int, int>
#define pb push_back
#define INF INT_MAX
#define mod 1000000007ll
#define fi first
#define se second
#define f(i, p, q) for (int i = p; i < q; i++)
#define si(a) scanf("%d", &a)
#define sii(a, b) scanf("%d %d", &a, &b)
#de... | [["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 18], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 25], ["+", 0, 57, 15, 339, 51, 16, 12, 23, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 12, 23, 0, 25]] | 1 | 434 |
A,B,C = map(int, input().split())
K=int(input())
for i in range(K):
if A > C:
C *= 2
elif A > B:
B *= 2
elif B > C:
C *= 2
if A < B and B < C:
print("Yes")
break
else:
print("No")
| A,B,C = map(int, input().split())
K=int(input())
for i in range(K):
if A >= C:
C *= 2
elif A >= B:
B *= 2
elif B >= C:
C *= 2
if A < B and B < C:
print("Yes")
break
else:
print("No")
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]] | 5 | 82 |
// Problem : B - Magic 2
// Contest : AtCoder - M-SOLUTIONS Programming Contest 2020
// URL : https://atcoder.jp/contests/m-solutions2020/tasks/m_solutions2020_b
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#include <bits/stdc++.h>
#define ll long lo... |
// Problem : B - Magic 2
// Contest : AtCoder - M-SOLUTIONS Programming Contest 2020
// URL : https://atcoder.jp/contests/m-solutions2020/tasks/m_solutions2020_b
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#include <bits/stdc++.h>
#define ll long lo... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 166 |
package main
import "fmt"
func main() {
a := 0
b := 0
c := 0
k := 0
fmt.Scanf("%d %d %d", &a, &b, &c)
fmt.Scanf("%d", &k)
for i := 0; i < k; i++ {
if c < b {
c *= 2
} else if b < a {
b *= 2
} else {
c *= 2
}
}
if a < b && b < c {
fmt.Println("Yes")
} else {
fmt.Println("No")
}
}
| package main
import "fmt"
func main() {
a := 0
b := 0
c := 0
k := 0
fmt.Scanf("%d %d %d", &a, &b, &c)
fmt.Scanf("%d", &k)
for i := 0; i < k; i++ {
if c <= b {
c *= 2
} else if b <= a {
b *= 2
} else {
c *= 2
}
}
if a < b && b < c {
fmt.Println("Yes")
} else {
fmt.Println("No")
}
}... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19], ["-", 0, 435, 8, 196, 0, 7, 8, 196, 0, 165], ["+", 0, 435, 8, 196, 0, 7, 8, 196, 0, 165]] | 7 | 136 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
bool exist = false;
for (int i = 0; i < k; i++) {
if (a >= b) {
b *= 2;
} else if (b >= c) {
c *= 2;
} else
exist = true;
}
if (exist) {
cout << "Yes" << endl;
} else
cou... | #include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
bool exist = false;
for (int i = 0; i <= k; i++) {
if (a >= b) {
b *= 2;
} else if (b >= c) {
c *= 2;
} else
exist = true;
}
if (exist) {
cout << "Yes" << endl;
} else
co... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 105 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
int count = 0;
while (b > a) {
b *= 2;
count++;
}
while (c > b) {
c *= 2;
count++;
}
if (k >= count) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
int count = 0;
while (b <= a) {
b *= 2;
count++;
}
while (c <= b) {
c *= 2;
count++;
}
if (k >= count) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]] | 1 | 93 |
A,B,C=map(int,input().split())
K=int(input())
flag=True
for i in range(K):
if A>B:
B*=2
continue
if B>C:
C*=2
continue
if C>B and B>A:
flag=False
break
if C>B and B>A:
flag=False
print('Yes' if flag==False else "No") | A,B,C=map(int,input().split())
K=int(input())
flag=True
for i in range(K):
if A>=B:
B*=2
continue
if B>=C:
C*=2
continue
if C>B and B>A:
flag=False
break
if C>B and B>A:
flag=False
print('Yes' if flag==False else "No") | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 94 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
for (int i = 0; i < k; i++) {
if (b < a) {
b *= 2;
} else if (c < b) {
c *= 2;
}
}
if ((b > a) && (c > b)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
for (int i = 0; i < k; i++) {
if (b <= a) {
b *= 2;
} else if (c <= b) {
c *= 2;
}
}
if ((b > a) && (c > b)) {
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], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 107 |
a,b,c=map(int,input().split())
k=int(input())
while k>0:
k-=1
if a>b:
b*=2
elif b>c:
c*=2
else:
pass
if b>a and c>b:
print("Yes")
else:
print('No') | a,b,c=map(int,input().split())
k=int(input())
while k>0:
k-=1
if a>=b:
b*=2
elif b>=c:
c*=2
else:
pass
if b>a and c>b:
print("Yes")
else:
print('No') | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]] | 5 | 76 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define speed \
ios_base::sync_with_stdio(0); \
cin.tie(0);
#define FL(i, a, n) for (ll i = a; i < n; i++)
#define e... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define speed \
ios_base::sync_with_stdio(0); \
cin.tie(0);
#define FL(i, a, n) for (ll i = a; i < n; i++)
#define e... | [["-", 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;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
if (a < b && b < c) {
cout << "Yes";
return 0;
}
while (a > b) {
b = b * 2;
k--;
}
while (b > c) {
c *= 2;
k--;
}
if (k < 0)
co... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
if (a < b && b < c) {
cout << "Yes";
return 0;
}
while (a >= b) {
b = b * 2;
k--;
}
while (b >= c) {
c *= 2;
k--;
}
if (k < 0)
... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 131 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
for (int i = 0; i < k; i++) {
if (b < a)
b *= 2;
else if (c < b)
c *= 2;
else
c *= 2;
}
if (a < b && b < c)
cout << "Yes" << endl;
else
cout << "N... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
for (int i = 0; i < k; i++) {
if (b <= a)
b *= 2;
else if (c <= b)
c *= 2;
else
c *= 2;
}
if (a < b && b < c)
cout << "Yes" << endl;
else
cout << ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 109 |
#include <bits/stdc++.h>
using namespace std;
signed main() {
int a, b, c, k, cnt;
cin >> a >> b >> c >> k;
cnt = 0;
while (a > b) {
b *= 2;
cnt++;
}
while (b > c) {
c *= 2;
cnt++;
}
if (cnt > k) {
cout << "No\n";
} else {
cout << "Yes\n";
}
return (0);
} | #include <bits/stdc++.h>
using namespace std;
signed main() {
int a, b, c, k, cnt;
cin >> a >> b >> c >> k;
cnt = 0;
while (a >= b) {
b *= 2;
cnt++;
}
while (b >= c) {
c *= 2;
cnt++;
}
if (cnt > k) {
cout << "No\n";
} else {
cout << "Yes\n";
}
return (0);
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 97 |
A, B, C = map(int, input().split())
K = int(input())
flag = False
for i in range(K):
if A>B:
B = B*2
continue
if B>C:
C = C*2
continue
if A<B<C:
flag = True
print("Yes") if flag else print("No") | A, B, C = map(int, input().split())
K = int(input())
flag = False
for i in range(K):
if A>=B:
B = B*2
continue
if B>=C:
C = C*2
continue
if A<B<C:
flag = True
print("Yes") if flag else print("No") | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 84 |
#include <cstdio>
int main() {
int a, b, c, k;
scanf("%d%d%d%d", &a, &b, &c, &k);
int cnt = 0;
while (b <= a) {
b *= 2;
cnt++;
}
while (c <= b) {
c *= 2;
cnt++;
}
if (cnt <= k)
puts("YES");
else
puts("NO");
return 0;
}
| #include <cstdio>
int main() {
int a, b, c, k;
scanf("%d%d%d%d", &a, &b, &c, &k);
int cnt = 0;
while (b <= a) {
b *= 2;
cnt++;
}
while (c <= b) {
c *= 2;
cnt++;
}
if (cnt <= k)
puts("Yes");
else
puts("No");
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 | 95 |
import sys
import numpy as np
import math # gcdもあるよ
from collections import deque
from collections import defaultdict
from copy import deepcopy
from itertools import accumulate #リストを与えると累積和を返す
def input(): return sys.stdin.readline().rstrip()
from functools import lru_cache #メモ化
def main():
a, b, c = list(map(int... | import sys
import numpy as np
import math # gcdもあるよ
from collections import deque
from collections import defaultdict
from copy import deepcopy
from itertools import accumulate #リストを与えると累積和を返す
def input(): return sys.stdin.readline().rstrip()
from functools import lru_cache #メモ化
def main():
a, b, c = list(map(int... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 147 |
word = input()
nums = word.split()
numin = [0,0,0]
seiko = 0
for j in range(3):
numin[j] = int(nums[j])
k = int(input())
for i in range(k+1):
if numin[0] >= numin[1]:
numin[1] *= 2
elif numin[1] >= numin[2]:
numin[2] *= 2
else:
seiko = 1
print('Yes')
if seiko == 0:
... | word = input()
nums = word.split()
numin = [0,0,0]
seiko = 0
for j in range(3):
numin[j] = int(nums[j])
k = int(input())
for i in range(k+1):
if numin[0] >= numin[1]:
numin[1] *= 2
elif numin[1] >= numin[2]:
numin[2] *= 2
else:
seiko = 1
print('Yes')
break
if se... | [["+", 0, 57, 75, 76, 8, 196, 0, 93, 0, 94]] | 5 | 118 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define clr(arr) memset(arr, 0, sizeof(arr))
#define nn '\n'
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t = 1;
// cin>>t;
while (t--) {
int r, g, b;
cin >> r >> g >> b;
int k;
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define clr(arr) memset(arr, 0, sizeof(arr))
#define nn '\n'
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t = 1;
// cin>>t;
while (t--) {
int r, g, b;
cin >> r >> g >> b;
int k;
... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 144 |
import math
ao, mi, aka = map(int, input().split(" "))
k = int(input())
for i in range(k):
if mi <= aka:
mi *= 2
continue
if ao <= mi:
ao *= 2
continue
ao *= 2
if ao > mi > aka:
print("Yes")
else:
print("No") | import math
aka, mi, ao = map(int, input().split(" "))
k = int(input())
for i in range(k):
if mi <= aka:
mi *= 2
continue
if ao <= mi:
ao *= 2
continue
ao *= 2
if ao > mi > aka:
print("Yes")
else:
print("No") | [["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22]] | 5 | 81 |
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define M_PI 3.14159265358979323846
const int M = 1e9 + 7;
long long mod(long long x) { return ((x % M + M) % M); }
long long add(long long a, long long b) { return mod(mod(a) + mod(b)); }
void solve(... | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define M_PI 3.14159265358979323846
const int M = 1e9 + 7;
long long mod(long long x) { return ((x % M + M) % M); }
long long add(long long a, long long b) { return mod(mod(a) + mod(b)); }
void solve(... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]] | 1 | 241 |
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
A := scanInt()
B := scanInt()
C := scanInt()
K := scanInt()
for i := 0; i < K; i++ {
if C < B {
C = C * 2
} else if B < A {
B = B * 2
}
}
if A < B && B < C {
fmt.Println("Yes")
} else {
fmt.Println("No")
}
}
// --------... | package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
A := scanInt()
B := scanInt()
C := scanInt()
K := scanInt()
for i := 0; i < K; i++ {
if C <= B {
C = C * 2
} else if B <= A {
B = B * 2
}
}
if A < B && B < C {
fmt.Println("Yes")
} else {
fmt.Println("No")
}
}
// ------... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 18], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 19]] | 7 | 207 |
import sys
def hantei(A, B, C, K):
i = 0
while A >= B:
if i >= K:
return False
sys.exit()
B *= 2
i += 1
while B >= C:
if i >= K:
return False
sys.exit()
C *= 2
i += 1
return True
A, B, C = map(int, input().split())
K = int(input())
if(hantei(A, B, C, K)):
pr... | import sys
def hantei(A, B, C, K):
i = 0
while A >= B:
if i >= K:
return False
sys.exit()
B *= 2
i += 1
while B >= C:
if i >= K:
return False
sys.exit()
C *= 2
i += 1
return True
A, B, C = map(int, input().split())
K = int(input())
if(hantei(A, B, C, K)):
pr... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 119 |
n = gets.strip.split.map(&:to_i)
k = gets.to_i
k.times do |i|
if n[0] > n[1]
x = n[1]
x = x*2
n[1] = x
elsif n[1] > n[2]
x = n[2]
x = x*2
n[2] = x
end
if n[0] < n[1] && n[1] < n[2]
puts "Yes"
exit
end
end
puts "No"
| n = gets.strip.split.map(&:to_i)
k = gets.to_i
k.times do |i|
if n[0] >= n[1]
x = n[1]
x = x*2
n[1] = x
elsif n[1] >= n[2]
x = n[2]
x = x*2
n[2] = x
end
if n[0] < n[1] && n[1] < n[2]
puts "Yes"
exit
end
end
puts "No"
| [["-", 196, 737, 8, 736, 0, 121, 15, 738, 17, 47], ["+", 196, 737, 8, 736, 0, 121, 15, 738, 17, 20], ["-", 8, 736, 0, 121, 75, 759, 15, 738, 17, 47], ["+", 8, 736, 0, 121, 75, 759, 15, 738, 17, 20]] | 4 | 111 |
A, B, C = map(int, input().split())
K = int(input())
for _ in range(K):
if A > B:
B = B * 2
elif B > C:
C = C * 2
if A < B and B < C:
print('Yes')
else:
print('No') | A, B, C = map(int, input().split())
K = int(input())
for _ in range(K):
if A >= B:
B = B * 2
elif B >= C:
C = C * 2
if A < B and B < C:
print('Yes')
else:
print('No') | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]] | 5 | 77 |
package main
import "fmt"
func main() {
var r, g, b, k int
fmt.Scanf("%d %d %d", &r, &g, &b)
fmt.Scanf("%d", &k)
for i := 1; i <= k; i++ {
if r > g {
g = 2 * g
continue
}
if g > b {
b = 2 * b
continue
}
}
if r < g && g < b {
fmt.Println("Yes")
} else {
fmt.Println("No")
}
}
| package main
import "fmt"
func main() {
var r, g, b, k int
fmt.Scanf("%d %d %d", &r, &g, &b)
fmt.Scanf("%d", &k)
for i := 1; i <= k; i++ {
if r >= g {
g = 2 * g
continue
}
if g >= b {
b = 2 * b
continue
}
}
if r < g && g < b {
fmt.Println("Yes")
} else {
fmt.Println("No")
}
}
| [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]] | 7 | 131 |
#include <bits/stdc++.h>
using namespace std;
#define fastIO \
ios_base::sync_with_stdio(0); \
cin.tie(0);
#define int long long int
#define endl '\n'
void solveTestCase() {
int a, b, c;
cin >> a >>... | #include <bits/stdc++.h>
using namespace std;
#define fastIO \
ios_base::sync_with_stdio(0); \
cin.tie(0);
#define int long long int
#define endl '\n'
void solveTestCase() {
int a, b, c;
cin >> a >>... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 148 |
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int a, b, c, k;
cin >> a >> b >> c >> k;
while (a > b && k > 0) {
b *= 2;
k--;
}
while (b > c && k > 0) {
c *= 2;
k--;
}
if (a < b && ... | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int a, b, c, k;
cin >> a >> b >> c >> k;
while (a >= b && k > 0) {
b *= 2;
k--;
}
while (b >= c && k > 0) {
c *= 2;
k--;
}
if (a < b &... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 20]] | 1 | 119 |
li = list(map(int,input().split()))
lis = []
k = int(input())
for i in range(1,len(li)):
while li[i] < li[i-1] and k:
li[i] = li[i]*2
k-=1
for i in range(1,len(li)):
if li[i] <= li[i-1]:
print('No')
break
else:
print('Yes') | li = list(map(int,input().split()))
k = int(input())
for i in range(1,len(li)):
while li[i] <= li[i-1] and k:
li[i] = li[i]*2
k-=1
for i in range(1,len(li)):
if li[i] <= li[i-1]:
print('No')
break
else:
print('Yes') | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 70], ["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 73], ["-", 8, 196, 0, 52, 15, 679, 31, 666, 667, 18], ["+", 8, 196, 0, 52, 15, 679, 31, 666, 667, 19]] | 5 | 112 |
a = list(map(int,input().split()))
b = int(input())
while(a[0] > a[1]):
a[1] *= 2
b -= 1
if b <= 0:
break
while(a[1] > a[2]):
a[2] *= 2
b -= 1
if b <= 0:
break
if a[0] < a[1] and a[1] < a[2] and b >= 0:
print("Yes")
else:
print("No") | a = list(map(int,input().split()))
b = int(input())
while(a[0] >= a[1]):
a[1] *= 2
b -= 1
if b <= 0:
break
while(a[1] >= a[2]):
a[2] *= 2
b -= 1
if b <= 0:
break
if a[0] < a[1] and a[1] < a[2] and b >= 0:
print("Yes")
else:
print("No") | [["-", 0, 656, 0, 52, 15, 23, 0, 666, 667, 47], ["+", 0, 656, 0, 52, 15, 23, 0, 666, 667, 20]] | 5 | 120 |
def main():
a, b, c = map(int, input().split())
k = int(input())
cnt = 0
while(1):
# print(a)
# print(b)
# print(c)
# print('------------------')
if cnt-1 == k:
print('No')
return
cnt += 1
if a < b and b < c:
pri... | def main():
a, b, c = map(int, input().split())
k = int(input())
cnt = 0
while(1):
# print(a)
# print(b)
# print(c)
# print('------------------')
if cnt-1 == k:
print('No')
return
cnt += 1
if a < b and b < c:
pri... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 108 |
import java.util.Scanner;
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 k = sc.nextInt();
boolean res = false;
res = magic(a, b, c, k);
if (res) {
Syste... | import java.util.Scanner;
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 k = sc.nextInt();
boolean res = false;
res = magic(a, b, c, k);
if (res) {
System... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 213 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define MOD 1000000007;
using namespace std;
using ll = long long;
int main() {
// a<b<c
int a, b, c, k, count = 0;
cin >> a >> b >> c >> k;
while (a >= b || b >= c) {
if (a >= b) {
b *= 2;
count++;
}
if (b >= c) {... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define MOD 1000000007;
using namespace std;
using ll = long long;
int main() {
// a<b<c
int a, b, c, k, count = 0;
cin >> a >> b >> c >> k;
while (a >= b || b >= c) {
if (a >= b) {
b *= 2;
count++;
}
if (b >= c) {... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 121 |
#include <bits/stdc++.h>
#define M 1000000007
#define endl "\n"
#define ll long long
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll a{0};
ll b{0};
ll c{0};
ll k{0};
cin >> a >> b >> c >> k;
ll count{0};
while (b <= a) {
count++;
b = b... | #include <bits/stdc++.h>
#define M 1000000007
#define endl "\n"
#define ll long long
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll a{0};
ll b{0};
ll c{0};
ll k{0};
cin >> a >> b >> c >> k;
ll count{0};
while (b <= a) {
count++;
b = b... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 142 |
from sys import exit
import math
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))
a,b,c = mi()
k=ii()
for i in range(k):
if b < a:
b*=2
elif c < b:
c *= 2
if(a < b and b < c):
print("Yes")
exit()
print("No") | from sys import exit
import math
ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))
a,b,c = mi()
k=ii()
for i in range(k):
if b <= a:
b*=2
elif c <= b:
c *= 2
if(a < b and b < c):
print("Yes")
exit()
print("No") | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]] | 5 | 115 |
a,b,c=map(int,input().split())
k=int(input())
for i in range(k):
if(a>b):
b=b*2
elif(b>c):
c=c*2
if(a<b and b<c):
print("Yes")
else:
print("No")
| a,b,c=map(int,input().split())
k=int(input())
for i in range(k):
if(a>=b):
b=b*2
elif(b>=c):
c=c*2
if(a<b and b<c):
print("Yes")
else:
print("No")
| [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20], ["-", 0, 57, 75, 665, 15, 23, 0, 666, 667, 47], ["+", 0, 57, 75, 665, 15, 23, 0, 666, 667, 20]] | 5 | 83 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.