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 |
|---|---|---|---|---|
def main():
a, b, c = map(int, input().split())
k = int(input())
while b <= a:
b *= 2
k -= 1
if k < 0:
print('No')
exit()
else:
while c <= b:
c *= 2
k -= 1
if k < 0:
print(... | def main():
a, b, c = map(int, input().split())
k = int(input())
while b <= a:
b *= 2
k -= 1
if k < 0:
print('No')
exit()
while c <= b:
c *= 2
k -= 1
if k < 0:
print('No')
exit()
if a < b < c:
pri... | [["-", 0, 52, 8, 196, 0, 57, 75, 76, 0, 95], ["-", 0, 52, 8, 196, 0, 57, 75, 76, 0, 102]] | 5 | 114 |
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf') ;mod = 10**9+7
mans = inf ;ans = 0 ;count = 0 ;pro = 1
a, b, c = map(int, input().split())
k = int(input())
for i in range(k):
if a > b:
b *= 2
elif b > c:
... | import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf') ;mod = 10**9+7
mans = inf ;ans = 0 ;count = 0 ;pro = 1
a, b, c = map(int, input().split())
k = int(input())
for i in range(k):
if a >= b:
b *= 2
elif b >= c:
... | [["-", 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 | 138 |
A,B,C = map(int,input().split())
K = int(input())
i = 0
while True:
if B > A:
break
else:
B = B * 2
i += 1
q = 0
while True:
if C >= B:
break
else:
C = C * 2
q += 1
if (i + q) > K:
print("No")
else:
print("Yes") | A,B,C = map(int,input().split())
K = int(input())
i = 0
while True:
if B > A:
break
else:
B = B * 2
i += 1
q = 0
while True:
if C > B:
break
else:
C = C * 2
q += 1
if (i + q) > K:
print("No")
else:
print("Yes") | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47]] | 5 | 93 |
/* ~ Programmer >> Tushar Mahajan */
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define ll long long int
#define ld long double
#define MOD 1000000007
#define ios \
ios_base::sync_with_stdio(false); ... | /* ~ Programmer >> Tushar Mahajan */
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define ll long long int
#define ld long double
#define MOD 1000000007
#define ios \
ios_base::sync_with_stdio(false); ... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 113 |
#include "bits/stdc++.h"
using namespace std;
#define dbg(var) cout << #var << "=" << var << " "
#define nl cout << "\n"
#define fr(i, n) for (int i = 0; i < n; i++)
#define rep(i, a, n) for (int i = a; i <= n; i++)
#define fast \
ios::sync_with_stdio(... | #include "bits/stdc++.h"
using namespace std;
#define dbg(var) cout << #var << "=" << var << " "
#define nl cout << "\n"
#define fr(i, n) for (int i = 0; i < n; i++)
#define rep(i, a, n) for (int i = a; i <= n; i++)
#define fast \
ios::sync_with_stdio(... | [["-", 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 | 200 |
#include <iostream>
#include <string>
using namespace std;
int main() {
// 青>緑>赤
string s("No");
int r, g, b;
int k;
cin >> r >> g >> b;
cin >> k;
do {
for (; r > g; k--) {
g = g * 2;
}
for (; g > b; k--) {
b = b * 2;
}
} while (0);
if (k >= 0)
s = "Yes";
cout << ... | #include <iostream>
#include <string>
using namespace std;
int main() {
// 青>緑>赤
string s("No");
int r, g, b;
int k;
cin >> r >> g >> b;
cin >> k;
do {
for (; r >= g; --k) {
g = g * 2;
}
for (; g >= b; --k) {
b = b * 2;
}
} while (0);
if (k >= 0)
s = "Yes";
cout <... | [["-", 0, 82, 8, 9, 0, 7, 15, 16, 17, 47], ["+", 0, 82, 8, 9, 0, 7, 15, 16, 17, 20], ["-", 0, 82, 8, 9, 0, 7, 26, 27, 28, 22], ["+", 0, 82, 8, 9, 0, 7, 26, 27, 28, 22]] | 1 | 110 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int a, b, c, k;
cin >> a >> b >> c >> k;
int cnt = 0;
while (a >= b) {
b *= 2;
cnt++;
}
while (b >= c) {
b *= 2;
cnt++;
}
cout << ((cnt <= k) ? "Yes" : "No") << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
int a, b, c, k;
cin >> a >> b >> c >> k;
int cnt = 0;
while (a >= b) {
b *= 2;
cnt++;
}
while (b >= c) {
c *= 2;
cnt++;
}
cout << ((cnt <= k) ? "Yes" : "No") << endl;
return 0;
}
| [["-", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22]] | 1 | 90 |
rgb = list(map(int, input().split(' ')))
r = rgb[0]
g = rgb[1]
b = rgb[2]
k = int(input())
for i in range(k):
if(r >= g):
g = g * g
elif(g >= b):
b = b * b
if (r < g < b):
print('Yes')
else:
print('No')
| rgb = list(map(int, input().split(' ')))
r = rgb[0]
g = rgb[1]
b = rgb[2]
k = int(input())
for i in range(k):
if(r >= g):
g = g * 2
elif(g >= b):
b = b * 2
if (r < g < b):
print('Yes')
else:
print('No')
| [["-", 64, 196, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 101 |
a = list(map(int, input().split()))
num = int(input())
k = 0
for i in range(num): #num回2倍を繰り返す。でなければNoをprint
if a[0] == max(a) or a[1] == max(a): #リストaの中のmaxよりも青が小さいならば青を二倍する
a[2] = a[2] * 2
k += 1
if a[1] == min(a) and k < num:
a[1] = a[1] * 2
k += 1
print(a)
if a[0] < a[1] and a[1] < a[2]:
... | a = list(map(int, input().split()))
num = int(input())
k = 0
for i in range(num): #num回2倍を繰り返す。でなければNoをprint
if a[0] == max(a) or a[1] == max(a): #リストaの中のmaxよりも青が小さいならば青を二倍する
a[2] = a[2] * 2
k += 1
elif a[1] == min(a) and k < num:
a[1] = a[1] * 2
k += 1
else:
pass
if a[0] < a[1] and a[1... | [["-", 0, 656, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 75, 665, 0, 683], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 7, 8, 1... | 5 | 141 |
#include <stdio.h>
int main(void) {
int a, b, c, k;
scanf("%d%d%d%d", &a, &b, &c, &k);
for (int i = 0; i < k; i++) {
if (a > b) {
b *= 2;
} else if (b > c)
c *= 2;
if (c > b && b > a) {
printf("Yes");
return 0;
}
}
printf("No");
return 0;
}
| #include <stdio.h>
int main(void) {
int a, b, c, k;
scanf("%d%d%d%d", &a, &b, &c, &k);
for (int i = 0; i < k; i++) {
if (a >= b) {
b *= 2;
} else if (b >= c)
c *= 2;
if (c > b && b > a) {
printf("Yes");
return 0;
}
}
printf("No");
return 0;
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 20]] | 0 | 108 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k, i;
cin >> a >> b >> c >> k;
for (i = 0; i < k; i++) {
if (a > b) {
b *= 2;
} else {
break;
}
}
for (; i < k; i++) {
if (b > c) {
c *= 2;
} else {
break;
}
}
if (a < b && b < c) {... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k, i;
cin >> a >> b >> c >> k;
for (i = 0; i < k; i++) {
if (a >= b) {
b *= 2;
} else {
break;
}
}
for (; i < k; i++) {
if (b >= c) {
c *= 2;
} else {
break;
}
}
if (a < b && b < c)... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 125 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b, c, k;
cin >> a >> b >> c >> k;
int cnt = 0;
while (a >= b) {
cnt++;
b *= 2;
}
while (b >= c) {
cnt++;
c *= 2;
}
if (cnt <= k)
cout << "YES" << endl;
else
... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a, b, c, k;
cin >> a >> b >> c >> k;
int cnt = 0;
while (a >= b) {
cnt++;
b *= 2;
}
while (b >= c) {
cnt++;
c *= 2;
}
if (cnt <= k)
cout << "Yes" << endl;
else
... | [["-", 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 | 113 |
#include <bits/stdc++.h>
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
... | #include <bits/stdc++.h>
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
... | [["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]] | 1 | 338 |
#include <ctype.h>
#include <stdio.h>
#include <string.h>
int main() {
int a, b, c, num, eq = 0;
scanf("%d %d %d", &a, &b, &c);
scanf("%d", &num);
for (int i = 0; i < num; ++i) {
if (a >= b && c >= a)
b = b * 2;
else
c = c * 2;
}
if (b > a && c > b)
printf("YES");
else
printf(... | #include <ctype.h>
#include <stdio.h>
#include <string.h>
int main() {
int a, b, c, num, eq = 0;
scanf("%d %d %d", &a, &b, &c);
scanf("%d", &num);
for (int i = 0; i < num; ++i) {
if (a >= b && c >= a)
b = b * 2;
else
c = c * 2;
}
if (b > a && c > b)
printf("Yes");
else
printf(... | [["-", 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]] | 0 | 126 |
a,b,c = map(int,input().split())
k = int(input())
count = 0
while a >= b:
count += 1
b *= 2
while b >= c:
count += 1
c *= 2
return(['No','Yes'][count<=k]) | a,b,c = map(int,input().split())
k = int(input())
count = 0
while a >= b:
count += 1
b *= 2
while b >= c:
count += 1
c *= 2
print(['No','Yes'][count<=k]) | [["-", 36, 36, 36, 36, 0, 656, 0, 37, 0, 38], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22]] | 5 | 68 |
<?php
fscanf(STDIN, "%d %d %d", $a, $b,$c);
fscanf(STDIN, "%d", $k);
for($i=0;$i<$k;++$i){
if($a>=$b){
$b=$b*2;
}elseif($b>=$c){
$c=$c*2;
}
}
//echo $a." ".$b." ".$c."\n";
if($a<=$b&&$b<=$c){
echo "Yes";
}else{
echo "No";
}
?> | <?php
fscanf(STDIN, "%d %d %d", $a, $b,$c);
fscanf(STDIN, "%d", $k);
for($i=0;$i<$k;++$i){
if($a>=$b){
$b=$b*2;
}elseif($b>=$c){
$c=$c*2;
}
}
//echo $a." ".$b." ".$c."\n";
if($a<$b&&$b<$c){
echo "Yes";
}else{
echo "No";
}
?> | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 19], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 18], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18]] | 6 | 117 |
a, b, c= map(input().split())
num= int(input())
cot=0
for x in range(num):
if a >= b and c >= a:
b=b*2
else:
c=c*2
if b > a and c > b:
print("Yes")
else:
print("No") | a, b, c= map(int, input().split())
num= int(input())
for x in range(num):
if a >= b and c >= a:
b=b*2
else:
c=c*2
if b > a and c > b:
print("Yes")
else:
print("No") | [["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 79 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int k = sc.nextInt();
sc.close();
for (int x = 0; x < k; x++) {
for (int y ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int k = sc.nextInt();
sc.close();
for (int x = 0; x <= k; x++) {
for (int y... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 208 |
#include <iostream>
using namespace std;
int main() {
int r, g, b, k;
cin >> r >> g >> b >> k;
int check = 0;
while (g < r) {
check++;
g *= 2;
}
while (b < g) {
check++;
b *= 2;
}
if (check > k)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int r, g, b, k;
cin >> r >> g >> b >> k;
int check = 0;
while (g <= r) {
check++;
g *= 2;
}
while (b <= g) {
check++;
b *= 2;
}
if (check > k)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]] | 1 | 92 |
#include <iostream>
using namespace std;
int main() {
int A, B, C, K;
bool flag = false;
std::cin >> A >> B >> C >> K;
for (int i = 0; i <= K; ++i) {
for (int j = 0; j <= K; ++j) {
for (int k = 0; k <= K; ++k) {
int x = A * (1 << i), y = B * (1 << j), z = K * (1 << k);
if (i + j + k <... | #include <iostream>
using namespace std;
int main() {
int A, B, C, K;
bool flag = false;
std::cin >> A >> B >> C >> K;
for (int i = 0; i <= K; ++i) {
for (int j = 0; j <= K; ++j) {
for (int k = 0; k <= K; ++k) {
int x = A * (1 << i), y = B * (1 << j), z = C * (1 << k);
if (i + j + k <... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 174 |
A, B, C = map(int, input().split())
K = int(input())
# C > B > A
for i in range(K):
if C >= B and B >= A:
# C > B > A
C = C * 2
elif C >= A and A >= B:
# C > A > B
B = B * 2
elif (
(A >= B and B >= C)
or (B >= A and A >= C)
or (A >= C and C >= B)
... | A, B, C = map(int, input().split())
K = int(input())
# C > B > A
for i in range(K):
if C >= B and B > A:
# C > B > A
C = C * 2
elif C >= A and A >= B:
# C > A >= B
B = B * 2
elif (
(A >= B and B >= C)
or (B >= A and A >= C)
or (A >= C and C >= B)
... | [["-", 8, 196, 0, 57, 15, 679, 12, 666, 667, 20], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 47]] | 5 | 137 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
bool can = false;
rep(i, k) {
if (a >= b)
b *= 2;
else if (b >= c) {
c *= 2;
if (b < c)
can = true;
}
}... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
bool can = false;
rep(i, k) {
if (a >= b)
b *= 2;
else if (b >= c)
c *= 2;
if (a < b && b < c)
can = true;
}
... | [["-", 0, 57, 75, 76, 0, 57, 64, 9, 0, 45], ["+", 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, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 0, 57, 75, 76, 0, 57, 64, 9, 0, 46]] | 1 | 115 |
A, B, C = map(int, input().split())
K = int(input())
for i in range(K):
for j in range(K):
for k in range(K):
if i+j+k != K:
continue
a = A*pow(2,i)
b = B*pow(2,j)
c = C*pow(2,k)
if a < b and b < c:
print("Yes")
... | A, B, C = map(int, input().split())
K = int(input())
for i in range(K+1):
for j in range(K+1):
for k in range(K+1):
if i+j+k != K:
continue
a = A*pow(2,i)
b = B*pow(2,j)
c = C*pow(2,k)
if a < b and b < c:
print("Yes... | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 114 |
a, b, c = map(int, input().split())
k = int(input())
for _ in range(k):
if a > b:
b *= 2
elif b > c:
c *= 2
# print(a, b, c)
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 *= 2
elif b >= c:
c *= 2
# print(a, b, c)
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 | 78 |
#!/usr/bin/env python3
def main():
R, G, B = map(int, input().split())
K = int(input())
for i in range(K):
if R > G:
G = G * 2
else:
if G > B:
B = B * 2
if B > G > R:
print("Yes")
exit()
print("No")
if __name__ == ... | #!/usr/bin/env python3
def main():
R, G, B = map(int, input().split())
K = int(input())
for i in range(K):
if R >= G:
G = G * 2
else:
if G >= B:
B = B * 2
if B > G > R:
print("Yes")
exit()
print("No")
if __name__ =... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 94 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define flash \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.t... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define flash \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.t... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 147 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
using ll = long long;
int main() {
// 7 4 2
// 3
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
string ans = "No";
int cnt = 0;
rep(i, k) {
if (a >= b) {
b *= 2;
cnt++;
}
}
rep(i, k)... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
using ll = long long;
int main() {
// 7 4 2
// 3
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
string ans = "No";
int cnt = 0;
rep(i, k + 1) {
if (a >= b) {
b *= 2;
cnt++;
}
}
rep(i... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35]] | 1 | 139 |
a,b,c=map(int, input().split())
k=int(input())
ans="no"
for i in range(k+1):
if a<b<c:
ans="yes"
else:
if a>=b:
b*=2
elif b>=c:
c*=2
print(ans) | a,b,c=map(int, input().split())
k=int(input())
ans="No"
for i in range(k+1):
if a<b<c:
ans="Yes"
else:
if a>=b:
b*=2
elif b>=c:
c*=2
print(ans) | [["-", 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 | 75 |
/*
*/
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, a, n) for (int i = (a); i < (n); i++)
#define repe(i, a) for (auto &i : a)
void in() {}
template <typename Head, typename... Tail>
void in(Head &&head, Tail &&...tail) {
cin >> head;
in(forward<Tai... | /*
*/
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, a, n) for (int i = (a); i < (n); i++)
#define repe(i, a) for (auto &i : a)
void in() {}
template <typename Head, typename... Tail>
void in(Head &&head, Tail &&...tail) {
cin >> head;
in(forward<Tai... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 31, 22]] | 1 | 183 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
int x = 0, y = 0, z = 0;
while (a > c) {
c *= 2;
z++;
}
while (a > b) {
b *= 2;
y++;
}
while (b > c) {
c *= 2;
z++;
}
if (x + y + z <= k) {
cout << "Yes" << endl;
} else {
... | #include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
int x = 0, y = 0, z = 0;
while (a >= c) {
c *= 2;
z++;
}
while (a >= b) {
b *= 2;
y++;
}
while (b >= c) {
c *= 2;
z++;
}
if (x + y + z <= k) {
cout << "Yes" << endl;
} else {
... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 120 |
a, b, c = map(int, input().split())
k = int(input())
ans = "No"
for i in range(k):
if a>b:
b = 2*b
elif b>c:
c = 2*c
else:
ans="Yes"
break
if a<b and b<c:
ans = "Yes"
print(ans) | a, b, c = map(int, input().split())
k = int(input())
ans = "No"
for i in range(k):
if a>=b:
b = 2*b
elif b>=c:
c = 2*c
else:
ans="Yes"
break
if a<b and 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 | 85 |
cards = list(map(int,input().split()))
K = int(input())
for i in range(K):
if cards[1]<=cards[0]:
cards[1]*=2
elif cards[2]<=cards[1]:
cards[2]*=2
else:
break
print(cards)
if cards[0]<cards[1]<cards[2]:
print('Yes')
else:
print('No') | cards = list(map(int,input().split()))
K = int(input())
for i in range(K):
if cards[1]<=cards[0]:
cards[1]*=2
elif cards[2]<=cards[1]:
cards[2]*=2
else:
break
if cards[0]<cards[1]<cards[2]:
print('Yes')
else:
print('No') | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 104 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 1; i <= (n); i++)
typedef long long ll;
#define ALL(obj) (obj).begin(), (obj).end()
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
int cnt = 0;
while (a >= b) {
cnt++;
b *= 2;
}
while (b >= c) {
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 1; i <= (n); i++)
typedef long long ll;
#define ALL(obj) (obj).begin(), (obj).end()
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
int cnt = 0;
while (a >= b) {
cnt++;
b *= 2;
}
while (b >= c) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 115 |
#!/usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import sys, itertools, math
sys.setrecursionlimit(10**5)
input = sys.stdin.readline
sqrt = math.sqrt
def LI(): return list(map(int, input().split()))
def LF(): return list(ma... | #!/usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import sys, itertools, math
sys.setrecursionlimit(10**5)
input = sys.stdin.readline
sqrt = math.sqrt
def LI(): return list(map(int, input().split()))
def LF(): return list(ma... | [["-", 0, 14, 8, 196, 0, 52, 15, 666, 667, 47], ["+", 0, 14, 8, 196, 0, 52, 15, 666, 667, 20]] | 5 | 465 |
#pragma region template
#ifdef ONLINE_JUDGE
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC diagnostic ignored "-Wunused-result"
#endif
#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
#define all(a) (a).begin(), (a).end()
#define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; i++)
#define ... | #pragma region template
#ifdef ONLINE_JUDGE
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC diagnostic ignored "-Wunused-result"
#endif
#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
#define all(a) (a).begin(), (a).end()
#define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; i++)
#define ... | [["-", 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 | 3,685 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int red, green, blue, k;
cin >> red >> green >> blue >> k;
int count1 = 0;
while (red >= green) {
green *= 2;
count1++;
}
while (green >= blue) {
blue *= 2;
count1++;
}
if (k <= count1) {
cout << "... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int red, green, blue, k;
cin >> red >> green >> blue >> k;
int count1 = 0;
while (red >= green) {
green *= 2;
count1++;
}
while (green >= blue) {
blue *= 2;
count1++;
}
if (k >= count1) {
cout << "... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 97 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> a(3);
cin >> a[0] >> a[1] >> a[2];
int k;
cin >> k;
while (a[0] > a[1]) {
a[1] *= 2;
k--;
}
while (a[1] > a[2]) {
a[2] *= 2;
k--;
}
if (k < 0)
cout << "No" << endl;
else
cout << "Yes" << endl;... | #include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> a(3);
cin >> a[0] >> a[1] >> a[2];
int k;
cin >> k;
while (a[0] >= a[1]) {
a[1] *= 2;
k--;
}
while (a[1] >= a[2]) {
a[2] *= 2;
k--;
}
if (k < 0)
cout << "No" << endl;
else
cout << "Yes" << end... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 118 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k, ans = 0;
cin >> a >> b >> c >> k;
while (a >= b) {
ans++;
b *= 2;
}
while (c >= b) {
ans++;
c *= 2;
}
if (ans > k)
cout << "No";
else
cout << "Yes";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k, ans = 0;
cin >> a >> b >> c >> k;
while (a >= b) {
ans++;
b *= 2;
}
while (b >= c) {
ans++;
c *= 2;
}
if (ans > k)
cout << "No";
else
cout << "Yes";
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22]] | 1 | 84 |
/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, PHP,
Ruby, C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS Code,
Compile, Run and Debug online from anywhere in world.
**********... | /******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, PHP,
Ruby, C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS Code,
Compile, Run and Debug online from anywhere in world.
**********... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 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, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17,... | 1 | 123 |
#include <bits/stdc++.h>
#define pvar(x) clog << "[" << #x << ":" << x << "]\n"
using namespace std;
using ll = long long int;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// b>g>r
int r, g, b, k;
cin >> r >> g >> b >> k;
if (b > g && g > r) {
cout << "Yes";
return 0;
}
while (g... | #include <bits/stdc++.h>
#define pvar(x) clog << "[" << #x << ":" << x << "]\n"
using namespace std;
using ll = long long int;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// b>g>r
int r, g, b, k;
cin >> r >> g >> b >> k;
if (b > g && g > r) {
cout << "Yes";
return 0;
}
while (g... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19]] | 1 | 143 |
import sys
r,g,b = map(int,input().split())
k = int(input())
#青>緑>赤
count = 0
if g*(2**k)>r:
while g<r and k>=count:
g*=2
count += 1
else:
print("No")
sys.exit(0)
if b*(2**(k-count))>g:
print("Yes")
else:
print("No") | import sys
r,g,b = map(int,input().split())
k = int(input())
#青>緑>赤
count = 0
if g*(2**k)>r:
while g<=r:
g*=2
count += 1
else:
print("No")
sys.exit(0)
if b*(2**(k-count))>g:
print("Yes")
else:
print("No") | [["-", 64, 196, 0, 52, 15, 679, 31, 666, 667, 18], ["+", 0, 57, 64, 196, 0, 52, 15, 666, 667, 19], ["-", 0, 57, 64, 196, 0, 52, 15, 679, 17, 355], ["-", 64, 196, 0, 52, 15, 679, 12, 666, 0, 22], ["-", 64, 196, 0, 52, 15, 679, 12, 666, 667, 20]] | 5 | 101 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int r, g, b, k;
cin >> r >> g >> b >> k;
while (r >= g && k > 0) {
g *= g;
k--;
}
while (g >= b && k > 0) {
b *= b;
k--;
}
cout << ((r < g && g < b) ? "Yes" : "No") << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int r, g, b, k;
cin >> r >> g >> b >> k;
while (r >= g && k > 0) {
g *= 2;
k--;
}
while (g >= b && k > 0) {
b *= 2;
k--;
}
cout << ((r < g && g < b) ? "Yes" : "No") << endl;
return 0;
} | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 96 |
a,b,c=map(int,input().slit())
k=int(input())
if a<b:
if b<c:
print('Yes')
else:
count=0
while b>=c:
b*=2
count+=1
if count<=k:
print('Yes')
else:
print('No')
else:
count=0
while a>=b:
b*=2
count+=1
... | a,b,c=map(int,input().split())
k=int(input())
if a<b:
if b<c:
print('Yes')
else:
count=0
while b>=c:
c*=2
count+=1
if count<=k:
print('Yes')
else:
print('No')
else:
count=0
while a>=b:
b*=2
count+=1
... | [["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22]] | 5 | 123 |
#include <stdio.h>
int main() {
int A, B, C;
int K;
scanf("%d %d %d", &A, &B, &C);
scanf("%d", &K);
for (int i = 0; i < K; i++) {
if (C > B && B > A) {
continue;
} else if (C < B && B > A) {
C *= 2;
} else if (C < B && B < A) {
C *= 2;
} else if (C > B && B < A) {
B *... | #include <stdio.h>
int main() {
int A, B, C;
int K;
scanf("%d %d %d", &A, &B, &C);
scanf("%d", &K);
for (int i = 0; i < K; i++) {
if (C > B && B > A) {
continue;
} else if (C <= B && B >= A) {
C *= 2;
} else if (C <= B && B <= A) {
C *= 2;
} else if (C >= B && B <= A) {
... | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 47], ["+"... | 0 | 159 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int R, G, B, K;
int count = 0;
cin >> R >> G >> B >> K;
for (int i = 0; i < K; i++) {
if (G < R)
G *= 2;
else if (B < G)
B *= 2;
if (B > G && G > R)
break;
}
if (B > G && G > R)
cout << "Yes" << endl;
else
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int R, G, B, K;
int count = 0;
cin >> R >> G >> B >> K;
for (int i = 0; i < K; i++) {
if (G <= R)
G *= 2;
else if (B <= G)
B *= 2;
if (B > G && G > R)
break;
}
if (B > G && G > R)
cout << "Yes" << endl;
else
... | [["-", 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 | 112 |
#include <stdio.h>
int main() {
int A, B, C, K, i;
scanf("%d", &A);
scanf("%d", &B);
scanf("%d", &C);
scanf("%d", &K);
for (i = 1; i <= K; i++) {
if (C < B && C < A) {
C = C * 2;
} else if (B < A) {
B = B * 2;
}
}
if (A < B && B < C) {
printf("Yes");
} else {
printf("No... | #include <stdio.h>
int main() {
int A, B, C, K, i;
scanf("%d", &A);
scanf("%d", &B);
scanf("%d", &C);
scanf("%d", &K);
for (i = 1; i <= K; i++) {
if (C <= B || C <= A) {
C = C * 2;
} else if (B <= A) {
B = B * 2;
}
}
if (A < B && B < C) {
printf("Yes");
} else {
printf(... | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 7... | 0 | 139 |
#include <bits/stdc++.h>
#define ll long long
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
using namespace std;
int main() {
fast;
ll red, gr, bl, cgr, cbl, cnt, m = 0, i;
cin >> ... | #include <bits/stdc++.h>
#define ll long long
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
using namespace std;
int main() {
fast;
int red, gr, bl, cgr, cbl, cnt, m = 0, i;
cin >>... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 151 |
#include <cstdio>
#include <iostream>
using namespace std;
#define int long long
int a, b, c, k;
#undef int
int main() {
#define int long long
cin >> a >> b >> c >> k;
while (b <= a && k > 0)
b *= 2, --k;
while (c <= b && k > 0)
c *= 2, --k;
if (k >= 0)
puts("Yes");
else
puts("No");
return 0... | #include <cstdio>
#include <iostream>
using namespace std;
#define int long long
int a, b, c, k;
#undef int
int main() {
#define int long long
cin >> a >> b >> c >> k;
while (b <= a && k >= 0)
b *= 2, --k;
while (c <= b && k >= 0)
c *= 2, --k;
if (k >= 0)
puts("Yes");
else
puts("No");
return... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 99 |
a,b,c=map(int,input().split())
k=int(input())
i=0
while a>=b:
b*=2
i+=1
while b>=c:
c*=2
i+=1
if a<b and b<c and i<=k:
print("Yse")
else:
print("No")
| a,b,c=map(int,input().split())
k=int(input())
i=0
while a>=b:
b*=2
i+=1
while b>=c:
c*=2
i+=1
if a<b and b<c and i<=k:
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 | 78 |
A, B, C = [int(n) for n in input().split()]
K = int(input())
ans = 'No'
for i in range(1, K+1):
for j in range(1, K+1):
if A < B<<i < C<<j and i+j<=K:
ans = 'Yes'
break
print(ans)
| A, B, C = [int(n) for n in input().split()]
K = int(input())
ans = 'No'
for i in range(K+1):
for j in range(K+1):
if A < B<<i < C<<j and i+j<=K:
ans = 'Yes'
break
print(ans)
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 86 |
#include "stdio.h"
int main(void) {
int A, B, C, K, i;
scanf("%d %d %d", &A, &B, &C);
scanf("%d", &K);
for (i = 1; i <= K; i++) {
if (A > B) {
B = B * 2;
} else if (B > C) {
C = C * 2;
}
}
if (A < B && B < C) {
printf("Yes");
} else {
printf("No");
}
return 0;
} | #include "stdio.h"
int main(void) {
int A, B, C, K, i;
scanf("%d %d %d", &A, &B, &C);
scanf("%d", &K);
for (i = 1; i <= K; i++) {
if (A >= B) {
B = B * 2;
} else if (B >= C) {
C = C * 2;
}
}
if (A < B && B < C) {
printf("Yes");
} else {
printf("No");
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 20]] | 0 | 124 |
#include <stdio.h>
int main() {
int a, b, c, k;
scanf("%d %d %d", &a, &b, &c);
scanf("%d", &k);
for (int i = 0; i < k; i++) {
if (c < a)
c *= 2;
else if (b < a)
b *= 2;
else if (c < b)
c *= 2;
else
continue;
}
if (a < b && b < c)
printf("Yes");
else
printf("... | #include <stdio.h>
int main() {
int a, b, c, k;
scanf("%d %d %d", &a, &b, &c);
scanf("%d", &k);
for (int i = 0; i < k; i++) {
if (c <= a)
c *= 2;
else if (b <= a)
b *= 2;
else if (c <= b)
c *= 2;
else
continue;
}
if (a < b && b < c)
printf("Yes");
else
print... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 122 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
int tmp = k;
if (b < a) {
while (b <= a && tmp > 0) {
b = b * 2;
tmp--;
}
}
if ... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
int tmp = k;
if (b <= a) {
while (b <= a && tmp > 0) {
b = b * 2;
tmp--;
}
}
if... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 141 |
inp = require('fs').readFileSync('/dev/stdin', 'utf8').trim().split('\n')
l = inp.shift().split(' ')
a = l.shift() * 1
b = l.shift() * 1
c = l.shift() * 1
k = inp.shift() * 1
cnt = 0;
while (cnt < k && a > b) {
b = b + b
cnt++
}
while (cnt < k && b > c) {
c = c + c
cnt++
}
console.log(a < b && b < c ? "Yes" : "... | inp = require('fs').readFileSync('/dev/stdin', 'utf8').trim().split('\n')
l = inp.shift().split(' ')
a = l.shift() * 1
b = l.shift() * 1
c = l.shift() * 1
k = inp.shift() * 1
cnt = 0;
while (cnt < k && a >= b) {
b = b + b
cnt++
}
while (cnt < k && b >= c) {
c = c + c
cnt++
}
console.log(a < b && b < c ? "Yes" :... | [["-", 0, 52, 15, 23, 0, 16, 12, 16, 17, 47], ["+", 0, 52, 15, 23, 0, 16, 12, 16, 17, 20]] | 2 | 142 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#define ll long long int
using namespace std;
int main() {
int n, X, Y, Z, num = 0;
cin >> X >> Y >> Z >> n;
for (int i = 0; i < n; i++) {
if (X >= Y) {
Y = 2 * Y;
num++;
}
}
for (int i = 0; i < ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#define ll long long int
using namespace std;
int main() {
int n, X, Y, Z, num = 0;
cin >> X >> Y >> Z >> n;
for (int i = 0; i < 7; i++) {
if (X >= Y) {
Y = 2 * Y;
num++;
}
}
for (int i = 0; i < ... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 142 |
X = list(map(int,input().split()))
A = X[0]
B = X[1]
C = X[2]
K = int(input())
cnt = 0
if A > B:
for i in range(K):
B = B*2
cnt = cnt + 1
if A < B:
break
if B > C:
for j in range(K):
C = C*2
cnt = cnt + 1
if B < C:
break
if cnt <= K:
print('Yes')
else:
print('No')
| X = list(map(int,input().split()))
A = X[0]
B = X[1]
C = X[2]
K = int(input())
cnt = 0
if A >= B:
for i in range(7):
B = B*2
cnt = cnt + 1
if A < B:
break
if B >= C:
for j in range(7):
C = C*2
cnt = cnt + 1
if B < C:
break
if cnt <= K:
print('Yes')
else:
print('No')
| [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["-", 64, 196, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 64, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 123 |
def main():
a, b, c = map(int, input().split())
k = int(input())
for i in range(1, k+2):
if a < b and b < c:
print("Yes")
return 0
elif i == k+1:
print("No")
return 0
elif c < a or c < b:
c = c * 2
elif b ... | def main():
a, b, c = map(int, input().split())
k = int(input())
for i in range(1, k+2):
if a < b and b < c:
print("Yes")
return 0
elif i == k+1:
print("No")
return 0
elif c <= a or c <= b:
c = c * 2
elif ... | [["-", 0, 57, 75, 665, 15, 679, 31, 666, 667, 18], ["+", 0, 57, 75, 665, 15, 679, 31, 666, 667, 19], ["-", 0, 57, 75, 665, 15, 679, 12, 666, 667, 18], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]] | 5 | 102 |
a,b,c=(int(x) for x in input().split())
k=int(input())
n=0
while k<n and b<=a:
b=b*2
n=n+1
else:
while k>n and c<=b:
c=c*2
n=n+1
if c<b<a:
print('Yes')
else:
print('No')
| a,b,c=(int(x) for x in input().split())
k=int(input())
n=0
while k>n and b<=a:
b=b*2
n=n+1
while k>n and c<=b:
c=c*2
n=n+1
if c>b>a:
print('Yes')
else:
print('No')
| [["-", 0, 656, 0, 52, 15, 679, 31, 666, 667, 18], ["+", 0, 656, 0, 52, 15, 679, 31, 666, 667, 47], ["-", 36, 36, 0, 656, 0, 52, 75, 76, 0, 95], ["-", 36, 36, 0, 656, 0, 52, 75, 76, 0, 102], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]] | 5 | 94 |
A,B,C = map(int, input().split())
K = int(input())
count = 0
a = 0
while K >= 0:
if (A < B * 2 ** K) and (B * 2 ** K < C * 2 ** a):
count +=1
K -=1
a +=1
if count == 1:
print("Yes")
else: print("No") | A,B,C = map(int, input().split())
K = int(input())
count = 0
a = 0
while K >= 0:
if (A < B * 2 ** K) and (B * 2 ** K < C * 2 ** a):
count +=1
K -=1
a +=1
if count >= 1:
print("Yes")
else: print("No") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]] | 5 | 90 |
#include <bits/stdc++.h>
using namespace std;
long long int A, B, C, K;
int main() {
cin >> A >> B >> C >> K;
while (K--) {
if (A > B)
B *= 2;
else if (B > C)
C *= 2;
}
if (C > B && B > A)
cout << "Yes\n";
else
cout << "No\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
long long int A, B, C, K;
int main() {
cin >> A >> B >> C >> K;
while (K--) {
if (A >= B)
B *= 2;
else if (B >= C)
C *= 2;
}
if (C > B && B > A)
cout << "Yes\n";
else
cout << "No\n";
return 0;
}
| [["-", 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 | 89 |
A,B,C=map(int,input().split())
K=int(input())
list=[A,B,C]
for i in range(K):
if list[0]<list[1]<list[2]:
break
if list[1]>list[2]:
list[2]=2*list[2]
continue
elif list[0]>list[1]:
list[1]=2*list[1]
if list[0]<list[1]<list[2]:
print("Yes")
else:
print("No")
| A,B,C=map(int,input().split())
K=int(input())
list=[A,B,C]
for i in range(K):
if list[0]<list[1]<list[2]:
break
if list[1]>=list[2]:
list[2]=2*list[2]
continue
elif list[0]>=list[1]:
list[1]=2*list[1]
if list[0]<list[1]<list[2]:
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 | 135 |
a,b,c=map(int,input().split())
k=int(input())
for i in range(k+1):
if a>b:
b=b*2
else:
if 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
else:
if b>=c:
c=c*2
else:
break
if a<b<c:
print('Yes')
else:
print('No') | [["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 82 |
A, B, C = input().split()
A = int(A)
B = int(B)
C = int(C)
K = input()
K = int(K)
z = 0
while B <= A:
B = B * 2
z = z + 1
while C <= B:
C = C * 2
z = z + 1
if K < z:
print('NO')
else:
print('YES')
| A, B, C = input().split()
A = int(A)
B = int(B)
C = int(C)
K = input()
K = int(K)
z = 0
while B <= A:
B = B * 2
z = z + 1
while C <= B:
C = C * 2
z = z + 1
if K < z:
print('No')
else:
print('Yes') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 94 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (k > 0 && b <= a) {
b *= 2;
k--;
}
// cout << k << endl;
while (k > 0 && c <= b) {
c *= 2;
k--;
}
// cout << a << " " << b << " " << c <<" " << k;
if (a < b && b < c)
cout <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (k > 0 && b <= a) {
b *= 2;
k--;
}
while (k > 0 && c <= b) {
c *= 2;
k--;
}
if (a < b && b < c)
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], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 98 |
#include <bits/stdc++.h>
#define io \
freopen("input.txt", "r", stdin); \
freopen("output.txt", "w", stdout);
#define lli long long
#define fast ... | #include <bits/stdc++.h>
#define io \
freopen("input.txt", "r", stdin); \
freopen("output.txt", "w", stdout);
#define lli long long
#define fast ... | [["-", 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 | 152 |
A, B, C = (int(x) for x in input().split())
K = int(input())
for i in range(K):
if A > B:
B *= 2
elif B > C:
C *= 2
if A < B and B < C:
print('Yes')
else:
print('No') | A, B, C = (int(x) for x in input().split())
K = int(input())
for i in range(K):
if A >= B:
B *= 2
elif B >= 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 |
card = list(map(int, input().split()))
k = int(input())
for i in range(k):
if card[0] >= card[1]:
card[1] *= 2
elif card[1] >= card[2]:
card[2] *= 2
else:
card[2] *= 2
print(card)
print("Yes") if card[0] < card[1] < card[2] else print("No")
| card = list(map(int, input().split()))
k = int(input())
for i in range(k):
if card[0] >= card[1]:
card[1] *= 2
elif card[1] >= card[2]:
card[2] *= 2
else:
card[2] *= 2
print("Yes") if card[0] < card[1] < card[2] else print("No")
| [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 0, 656, 0, 1, 0, 41, 0, 652, 63, 22], ["-", 0, 1, 0, 41, 0, 652, 3, 4, 0, 24]] | 5 | 107 |
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
while (k--) {
if (b < a) {
b *= 2;
} else {
c *= 2;
}
}
if (a < b && b < c)
printf("Yes");
else
printf("No");
}
| #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
while (k--) {
if (b <= a) {
b *= 2;
} else {
c *= 2;
}
}
if (a < b && b < c)
printf("Yes");
else
printf("No");
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 90 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k, i, j;
cin >> a >> b >> c >> k;
if (c > b && b > a)
cout << "Yes";
else {
for (i = 0; i < k; ++i) {
if (b < a)
b = 2 * b;
else
break;
}
for (j = i; j < k; ++j) {
if (c < b)
c = 2 ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k, i, j;
cin >> a >> b >> c >> k;
if (c > b && b > a)
cout << "Yes";
else {
for (i = 0; i < k; ++i) {
if (b <= a)
b = 2 * b;
else
break;
}
for (j = i; j < k; ++j) {
if (c <= b)
c = ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 141 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rng(a) a.begin(), a.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (k > 0) {
if (a < b && b < c) {
cout << "Yes" << endl;
return... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rng(a) a.begin(), a.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (k >= 0) {
if (a < b && b < c) {
cout << "Yes" << endl;
retur... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 127 |
#include <iostream>
#include <vector>
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 (C < B)
C *= 2;
else if (B < A)
B *= 2;
else
C *= 2;
}
if (B > A && C > B) {
cout <<... | #include <iostream>
#include <vector>
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 (C <= B)
C *= 2;
else if (B <= A)
B *= 2;
else
C *= 2;
}
if (B > A && C > B) {
cout ... | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 119 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
bool tmp = false, cnt = false;
if (b > a)
tmp = true;
if (!tmp) {
while (k > 0 && b <= a) {
b = b * 2;
k--;
}
if (b > a) {
tmp = true;
}
}
if (c > b)
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
bool tmp = false, cnt = false;
if (b > a)
tmp = true;
if (!tmp) {
while (k > 0 && b <= a) {
b = b * 2;
k--;
}
if (b > a) {
tmp = true;
}
}
if (c > b)
... | [["-", 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 | 171 |
#include <iostream>
using namespace std;
int main() {
int A, B, C;
int K;
cin >> A >> B >> C;
cin >> K;
for (int i = 0; i < K; i++) {
if (A > B) {
B = B * 2;
} else {
C = C * 2;
}
}
if (A < B && B < C) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int A, B, C;
int K;
cin >> A >> B >> C;
cin >> K;
for (int i = 0; i < K; i++) {
if (A >= B) {
B = B * 2;
} else {
C = C * 2;
}
}
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]] | 1 | 104 |
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
int a, b, c, n;
cin >> a >> b >> c;
cin >> n;
while (n--) {
if (b < a) {
b = b * 2;
} else {
c = c * 2;
}
}
if (a < b && b < c)
printf("Yes");
else
printf("No");
... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main() {
int a, b, c, n;
cin >> a >> b >> c;
cin >> n;
while (n--) {
if (b <= a) {
b = b * 2;
} else {
c = c * 2;
}
}
if (a < b && b < c)
printf("Yes");
else
printf("No");... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 94 |
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();
if (c > b && b > a) {
System.out.println("Yes");
return;
}
for (i... | 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();
if (c > b && b > a) {
System.out.println("Yes");
return;
}
for (i... | [["-", 0, 7, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 51, 16, 12, 74, 51, 492, 3, 4, 0, 22], ["+", 51, 16, 12, 74, 51, 492, 3, 4, 0, 22]] | 3 | 200 |
#include <bits/stdc++.h>
using namespace std;
long long a, b, c, k;
int main() {
cin >> a >> b >> c >> k;
while (k--) {
if (b < a)
b *= 2;
else if (c < b)
c *= 2;
}
if (b <= a || c <= b)
cout << "No";
else
cout << "Yes";
}
| #include <bits/stdc++.h>
using namespace std;
long long a, b, c, k;
int main() {
cin >> a >> b >> c >> k;
while (k--) {
if (b <= a)
b *= 2;
else if (c <= b)
c *= 2;
}
if (b <= a || c <= b)
cout << "No";
else
cout << "Yes";
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 83 |
num = input("").split(" ")
num = [int(i) for i in num]
K = int(input(""))
for i in range(0, K):
if num[1] > num[2]:
num[2] = num[2] * 2
elif num[0] > num[1]:
num[1] = num[1] * 2
elif num[0] > num[2]:
num[2] = num[2] * 2
else:
num[2] = num[2] * 2
if num[2] > num[1] >... | num = input("").split(" ")
num = [int(i) for i in num]
K = int(input(""))
for i in range(0, K):
if num[1] >= num[2]:
num[2] = num[2] * 2
elif num[0] >= num[1]:
num[1] = num[1] * 2
elif num[0] >= num[2]:
num[2] = num[2] * 2
else:
num[2] = num[2] * 2
if num[2] > num[1... | [["-", 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 | 155 |
a, b, c = map(int,input().split())
k = int(input())
count = -1
if a > b:
for i in range(k):
b = 2*b
if a < b:
count = i
break
if b > c:
for j in range(count+1, k):
c = 2*c
if b < c:
break
if a < b and b < c:
print("Yes")
else:
prin... | a, b, c = map(int,input().split())
k = int(input())
count = -1
if a >= b:
for i in range(k):
b = 2*b
if a < b:
count = i
break
if b >= c:
for j in range(count+1, k):
c = 2*c
if b < c:
break
if a < b and b < c:
print("Yes")
else:
pr... | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]] | 5 | 108 |
#include <bits/stdc++.h>
using namespace std;
#define IO \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
typedef long lo... | #include <bits/stdc++.h>
using namespace std;
#define IO \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
typedef long lo... | [["-", 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 | 159 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, K, X;
cin >> A >> B >> C >> K;
X = 0;
for (int i = 0; i < K; i++) {
if (B < A) {
B = B * 2;
X++;
} else {
break;
}
}
for (int i = 0; i < K - X; i++) {
C = C * 2;
}
if (A < B, B < C) {
cout << "... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, K, X;
cin >> A >> B >> C >> K;
X = 0;
for (int i = 0; i < K; i++) {
if (B <= A) {
B = B * 2;
X++;
} else {
break;
}
}
for (int i = 0; i < K - X; i++) {
C = C * 2;
}
if (A < B && B < C) {
cout <... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 339, 51, 34, 0, 21], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 126 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REPR(i, n) for (int i = (n); i >= 0; i--)
#define FOR(i, m, n) for (int i = (m); i < (n); i++)
#define INF 1e9
#define ALL(v) (v).begin(), (v).end()
#define debug(x) cerr << #x << ": " << x << endl;
using namespace std;
typedef long long ... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REPR(i, n) for (int i = (n); i >= 0; i--)
#define FOR(i, m, n) for (int i = (m); i < (n); i++)
#define INF 1e9
#define ALL(v) (v).begin(), (v).end()
#define debug(x) cerr << #x << ": " << x << endl;
using namespace std;
typedef long long ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 138 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long int;
void inv(vector<int> &v) {
int length = v.size();
for (int i = 0; i < length; i++) {
cin >> v[i];
}
}
void inv(vector<int> &v, int length) {
for (int i = 0; i < length; i++) {
ci... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long int;
void inv(vector<int> &v) {
int length = v.size();
for (int i = 0; i < length; i++) {
cin >> v[i];
}
}
void inv(vector<int> &v, int length) {
for (int i = 0; i < length; i++) {
ci... | [["-", 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 | 203 |
#include <bits/stdc++.h>
#define int long long
using namespace std;
int32_t main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (b <= a) {
b *= 2;
k--;
}
while (c <= b) {
c *= 2;
k--;
}
if (k < 0) {
cout << "no";
} else {
cout << "yes";
}
} | #include <bits/stdc++.h>
#define int long long
using namespace std;
int32_t main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (b <= a) {
b *= 2;
k--;
}
while (c <= b) {
c *= 2;
k--;
}
if (k < 0) {
cout << "No";
} else {
cout << "Yes";
}
} | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 87 |
import sys
import numpy as np
A,B,C = list(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')
| import sys
import numpy as np
A,B,C = list(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')
| [["-", 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 <iostream>
using namespace std;
int main() {
int x;
cin >> x;
if (x <= 599) {
cout << "8" << endl;
}
if (x >= 599 && x <= 799) {
cout << "7" << endl;
}
if (x >= 800 && x <= 999) {
cout << "6" << endl;
}
if (x >= 1000 && x <= 1199) {
cout << "5" << endl;
}
if (x >= 1200 && ... | #include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
if (x <= 599) {
cout << "8" << endl;
}
if (x >= 600 && x <= 799) {
cout << "7" << endl;
}
if (x >= 800 && x <= 999) {
cout << "6" << endl;
}
if (x >= 1000 && x <= 1199) {
cout << "5" << endl;
}
if (x >= 1200 && ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 178 |
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
)
const (
initialBufSize = 100000
maxBufSize = 1000000
)
var sc *bufio.Scanner
func initScanner(r io.Reader) *bufio.Scanner {
buf := make([]byte, initialBufSize)
sc := bufio.NewScanner(r)
sc.Buffer(buf, maxBufSize)
sc.Split(bufio.ScanWords) // ... | package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
)
const (
initialBufSize = 100000
maxBufSize = 1000000
)
var sc *bufio.Scanner
func initScanner(r io.Reader) *bufio.Scanner {
buf := make([]byte, initialBufSize)
sc := bufio.NewScanner(r)
sc.Buffer(buf, maxBufSize)
sc.Split(bufio.ScanWords) // ... | [["-", 0, 435, 8, 196, 0, 57, 15, 16, 12, 433], ["+", 0, 435, 8, 196, 0, 57, 15, 16, 12, 433]] | 7 | 308 |
#include <bits/stdc++.h>
typedef long long int ll;
using namespace std;
int main() {
ll test, i, j, xy, count, flag = 0, n, o1 = 0, o2 = 0, x, y, m, l, z, max1,
x1, y1, x2, y2, z1, k, sum, f, r, ans1, min1;
cin >> n;
if (n >= 400 && n <= 599) {
cout << "8";
} else {
if (n >... | #include <bits/stdc++.h>
typedef long long int ll;
using namespace std;
int main() {
ll test, i, j, xy, count, flag = 0, n, o1 = 0, o2 = 0, x, y, m, l, z, max1,
x1, y1, x2, y2, z1, k, sum, f, r, ans1, min1;
cin >> n;
if (n >= 400 && n <= 599) {
cout << "8";
} else {
if (n >... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 237 |
#include <bits/stdc++.h>
using namespace std;
typedef long long lld;
int main() {
std::ios::sync_with_stdio(false);
lld tc = 1;
// cin >> tc;
while (tc--) {
lld x;
cin >> x;
if (x >= 1800 && x <= 1999) {
cout << 1;
} else if (x >= 1600 && x <= 1799) {
cout << 2;
} else if (x >=... | #include <bits/stdc++.h>
using namespace std;
typedef long long lld;
int main() {
std::ios::sync_with_stdio(false);
lld tc = 1;
// cin >> tc;
while (tc--) {
lld x;
cin >> x;
if (x >= 1800 && x <= 1999) {
cout << 1;
} else if (x >= 1600 && x <= 1799) {
cout << 2;
} else if (x >=... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 13]] | 1 | 187 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
x -= 400;
int ans = (x + 1) / 200;
cout << 8 - ans << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
x -= 400;
int ans = (x) / 200;
cout << 8 - ans << endl;
return 0;
}
| [["-", 49, 50, 51, 16, 31, 23, 0, 16, 17, 72], ["-", 49, 50, 51, 16, 31, 23, 0, 16, 12, 13]] | 1 | 45 |
// A - Kyu in AtCoder
// Hiia
#include <stdio.h>
#include <stdlib.h> //rannsuu, zettaichi(absolute)
#include <time.h>
// srand((unsigned int) time(0));
#include <math.h> //koudona keisann
#include <string.h> //hairetsu
#define max(p, q) ((p) > (q) ? (p) : (q))
#define min(p, q) ((p) < (q) ? (p) : (q))
typedef long lo... | // A - Kyu in AtCoder
// Hiia
#include <stdio.h>
#include <stdlib.h> //rannsuu, zettaichi(absolute)
#include <time.h>
// srand((unsigned int) time(0));
#include <math.h> //koudona keisann
#include <string.h> //hairetsu
#define max(p, q) ((p) > (q) ? (p) : (q))
#define min(p, q) ((p) < (q) ? (p) : (q))
typedef long lo... | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 31, 13], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 31, 13]] | 0 | 593 |
import sys
from string import ascii_letters as ascii
def Ss():
return sys.stdin.readline().rstrip()
def Is():
return map(int, Ss())
def get_kyu(score):
if score >= 400 and score <= 599:
return 8
if score >= 600 and score <= 799:
return 7
if score >= 800 and score <= 999:
return 6
if score >= ... | import sys
from string import ascii_letters as ascii
def Ss():
return sys.stdin.readline().rstrip()
def Is():
return map(int, Ss())
def get_kyu(score):
if score >= 400 and score <= 599:
return 8
if score >= 600 and score <= 799:
return 7
if score >= 800 and score <= 999:
return 6
if score >= ... | [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 154 |
"""
AtCoder :: M-Solutions Programming Contest 2020 :: Kyu in AtCoder
https://atcoder.jp/contests/m-solutions2020/tasks/m_solutions2020_a
"""
import sys
def solve(rating):
"""Solve puzzle."""
if 400 <= rating and rating <= 599:
return 8
elif 600 <= rating and rating <= 799:
return 7
... | """
AtCoder :: M-Solutions Programming Contest 2020 :: Kyu in AtCoder
https://atcoder.jp/contests/m-solutions2020/tasks/m_solutions2020_a
"""
import sys
def solve(rating):
"""Solve puzzle."""
if 400 <= rating and rating <= 599:
return 8
elif 600 <= rating and rating <= 799:
return 7
... | [["+", 0, 57, 75, 665, 64, 196, 0, 37, 0, 38]] | 5 | 138 |
// TO KAISE HAI AAP LOG!! //
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define bs binary_search
#define F first
#define S second
#define all(v) v.begin(), v.end()
ll mod = 1e9 + 7;
/*/----------------------------- Code begin... |
// TO KAISE HAI AAP LOG!! //
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define bs binary_search
#define F first
#define S second
#define all(v) v.begin(), v.end()
ll mod = 1e9 + 7;
/*/----------------------------- Code begin... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 227 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
if (599 >= n) {
cout << "8";
}
if (799 >= n && n >= 600) {
cout << "7";
}
if (999 >= n && n >= 800) {
cout << "6";
}
if (1199 >= n && n >= 1000) {
cout << "5";
}
if (1399 >= n && n >= 1200) {
cout << ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
if (599 >= n) {
cout << "8";
}
if (799 >= n && n >= 600) {
cout << "7";
}
if (999 >= n && n >= 800) {
cout << "6";
}
if (1199 >= n && n >= 1000) {
cout << "5";
}
if (1399 >= n && n >= 1200) {
cout << ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20]] | 1 | 159 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
if (x >= 400 && x <= 599)
cout << 8 << endl;
if (x >= 600 && x <= 799)
cout << 7 << endl;
if (x >= 800 && x <= 999)
cout << 6 << endl;
if (x >= 1000 && x <= 1199)
cout << 5 << endl;
if (x >= 1200 && x <= 1399)
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
if (x >= 400 && x <= 599)
cout << 8 << endl;
if (x >= 600 && x <= 799)
cout << 7 << endl;
if (x >= 800 && x <= 999)
cout << 6 << endl;
if (x >= 1000 && x <= 1199)
cout << 5 << endl;
if (x >= 1200 && x <= 1399)
... | [["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13]] | 1 | 147 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
if (n >= 400 && n <= 699) {
cout << 8 << "\n";
} else if (n <= 799) {
cout << 7 << "\n";
} else if (n <= 999) {
cout << 6 << "\n";
} else if (n <= 1199) {
cout << 5 << "\n";
} else if (n <= 1399) {
cout << 4 <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
if (n >= 400 && n <= 599) {
cout << 8 << "\n";
} else if (n <= 799) {
cout << 7 << "\n";
} else if (n <= 999) {
cout << 6 << "\n";
} else if (n <= 1199) {
cout << 5 << "\n";
} else if (n <= 1399) {
cout << 4 <<... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 152 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll n;
cin >> n;
if (n >= 400 && n <= 599)
cout << 8 << "\n";
else if (n >= 600 && n <= 799)
cout << 9 << "\n";
else if (n >= 800 && n <= 999)
cout << 6 << "\n";
else if (n >= 1000 && n <= 1199)
cout << 5 << ... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ll n;
cin >> n;
if (n >= 400 && n <= 599)
cout << 8 << "\n";
else if (n >= 600 && n <= 799)
cout << 7 << "\n";
else if (n >= 800 && n <= 999)
cout << 6 << "\n";
else if (n >= 1000 && n <= 1199)
cout << 5 << ... | [["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13]] | 1 | 179 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int ans = 0;
if (400 <= X && X < 600) {
ans = 8;
} else if (600 <= X && X < 800) {
ans = 7;
} else if (800 <= X && X < 1000) {
ans = ... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int ans = 0;
if (400 <= X && X < 600) {
ans = 8;
} else if (600 <= X && X < 800) {
ans = 7;
} else if (800 <= X && X < 1000) {
ans = ... | [["-", 75, 57, 64, 196, 0, 1, 0, 11, 12, 499], ["+", 75, 57, 64, 196, 0, 1, 0, 11, 12, 499]] | 3 | 193 |
x=int(input())
if x<600:
print(8)
elif x<800:
print(7)
elif x<1000:
print(6)
elif x<1200:
print(5)
elif x<1400:
print(4)
elif x<1600:
print(3)
elif x<1800:
print(2)
elif x<2000:
print(6) | x=int(input())
if x<600:
print(8)
elif x<800:
print(7)
elif x<1000:
print(6)
elif x<1200:
print(5)
elif x<1400:
print(4)
elif x<1600:
print(3)
elif x<1800:
print(2)
elif x<2000:
print(1)
| [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612]] | 5 | 80 |
# coding: utf-8
x = int(input())
if x >= 400 and x <= 599:
ans = 8
elif x >= 600 and x <= 799:
ans = 7
elif x >= 800 and x <= 999:
ans = 6
elif x >= 1000 and x <= 1999:
ans = 5
elif x >= 1200 and x <= 1399:
ans = 4
elif x >= 1400 and x <= 1599:
ans = 3
elif x >= 1600 and x <= 1799:
ans = 2
... | # coding: utf-8
x = int(input())
if x >= 400 and x <= 599:
ans = 8
elif x >= 600 and x <= 799:
ans = 7
elif x >= 800 and x <= 999:
ans = 6
elif x >= 1000 and x <= 1199:
ans = 5
elif x >= 1200 and x <= 1399:
ans = 4
elif x >= 1400 and x <= 1599:
ans = 3
elif x >= 1600 and x <= 1799:
ans = 2
... | [["-", 0, 57, 75, 665, 15, 679, 12, 666, 0, 612], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 0, 612]] | 5 | 109 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.