buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
#define IOS \
ios_base::sync_with_stdio(0); \
cin.tie(NULL); \
cout.tie(NULL);
#define pb ... | #include <bits/stdc++.h>
using namespace std;
#define IOS \
ios_base::sync_with_stdio(0); \
cin.tie(NULL); \
cout.tie(NULL);
#define pb ... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 229 |
a = list(map(int, input().split()))
k = int(input())
count = 0
while a[1] <= a[0]:
a[1] = a[1]*2
count += 1
while a[2] <= a[1]:
a[2] = a[2]*2
count += 1
if count > k:
print('no')
else:
print('yes')
| a = list(map(int, input().split()))
k = int(input())
count = 0
while a[1] <= a[0]:
a[1] = a[1]*2
count += 1
while a[2] <= a[1]:
a[2] = a[2]*2
count += 1
if count > k:
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 | 97 |
<?php
$x = trim(fgets(STDIN));
$k = trim(fgets(STDIN));
[$r, $g, $b] = explode(' ', $x);
$count = function($a, $b) {
if ($a < $b) return 0;
return floor($a / $b / 2) + 1;
};
$c1 = $count($r, $g);
$g *= pow(2, $c1);
$c2 = $count($g, $b);
echo $c1 + $c2 <= $k ? 'Yes' : 'No'; | <?php
$x = trim(fgets(STDIN));
$k = trim(fgets(STDIN));
[$r, $g, $b] = explode(' ', $x);
$count = function($a, $b) {
if ($a < $b) return 0;
return floor(log($a / $b, 2)) + 1;
};
$c1 = $count($r, $g);
$g *= pow(2, $c1);
$c2 = $count($g, $b);
echo $c1 + $c2 <= $k ? 'Yes' : 'No'; | [["+", 31, 613, 3, 3, 0, 28, 0, 613, 63, 141], ["+", 3, 3, 0, 28, 0, 613, 3, 3, 0, 24], ["-", 31, 613, 3, 3, 0, 28, 0, 16, 17, 85], ["+", 3, 3, 0, 28, 0, 613, 3, 3, 0, 21], ["+", 3, 3, 0, 28, 0, 613, 3, 3, 0, 25]] | 6 | 138 |
a,b,c=map(int,input())
k=int(input())
for i in range(1,k+1):
if a>=b>=c or a>=c>=b:
c=c*2
elif b>=a>=c or b>=c>=a:
c=c*2
elif c>=b>a:
c=c*2
elif c>b==a:
b=b*2
elif c>a>=b:
b=b*2
if c>b>a:
print('Yes')
else:
print('No') | a,b,c=map(int,input().split())
k=int(input())
for i in range(1,k+1):
if a>=b>=c or a>=c>=b:
c=c*2
elif b>=a>=c or b>=c>=a:
c=c*2
elif c>=b>a:
c=c*2
elif c>b==a:
b=b*2
elif c>a>=b:
b=b*2
if c>b>a:
print('Yes')
else:
print('No')
| [["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 127 |
def main():
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
return (A < B) and (B < C)
if main():
print('Yes')
else:
print('No')
| def main():
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
return (A < B) and (B < C)
if main():
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 <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k, co = 0;
cin >> a >> b >> c;
cin >> k;
while (a >= b) {
co += 1;
b += 2;
}
while (b >= c) {
co += 1;
c += 2;
}
if (co <= k) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k, co = 0;
cin >> a >> b >> c;
cin >> k;
while (a >= b) {
co += 1;
b *= 2;
}
while (b >= c) {
co += 1;
c *= 2;
}
if (co <= k) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 108]] | 1 | 96 |
#include <iostream>
using namespace std;
int main() {
int red, green, blue, operation, count;
count = 0;
cin >> red >> green >> blue;
cin >> operation;
if (red > green) {
while (red > green) {
green = green * 2;
count++;
}
}
if (green > blue) {
// cout << count << endl;
wh... | #include <iostream>
using namespace std;
int main() {
int red, green, blue, operation, count;
count = 0;
cin >> red >> green >> blue;
cin >> operation;
if (red >= green) {
while (red >= green) {
green = green * 2;
count++;
}
}
if (green >= blue) {
// cout << count << end;
w... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 64, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 64, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 124 |
A=list(map(int,input().split()))
K=int(input())
a=A[0]
b=A[1]
c=A[2]
count=0
while count<=K:
if a>=b:
b=b*2
count=count+1
else:
break
if count==K:
pass
else:
c=c*(K-count)*2
if a<b<c:
print("Yes")
else:
print("No") | A=list(map(int,input().split()))
K=int(input())
a=A[0]
b=A[1]
c=A[2]
count=0
while count<=K:
if a>=b:
b=b*2
count=count+1
else:
break
if count==K:
pass
else:
c=c*(2**(K-count))
if a<b<c:
print("Yes")
else:
print("No") | [["+", 0, 662, 12, 657, 12, 23, 0, 657, 31, 612], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 17, 578], ["+", 12, 657, 12, 23, 0, 657, 12, 23, 0, 24], ["+", 12, 657, 12, 23, 0, 657, 12, 23, 0, 25], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 48], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 109 |
#include <stdio.h>
int main() {
int A, B, C, K;
int diff, i;
scanf("%d %d %d\n", &A, &B, &C);
scanf("%d\n", &K);
while ((K >= 0) && (A >= B)) {
B *= 2;
K--;
}
while ((K >= 0) && (B >= C)) {
C *= 2;
K--;
}
printf("%c\n", (K >= 0) ? "Yes" : "No");
return 0;
}
| #include <stdio.h>
int main() {
int A, B, C, K;
int diff, i;
scanf("%d %d %d\n", &A, &B, &C);
scanf("%d\n", &K);
while ((K >= 0) && (A >= B)) {
B *= 2;
K--;
}
while ((K >= 0) && (B >= C)) {
C *= 2;
K--;
}
printf("%s\n", (K >= 0) ? "Yes" : "No");
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 121 |
#include <bits/stdc++.h>
using namespace std;
// long long
using ll = long long;
// pair<int, int>
using PII = pair<int, int>;
//最大値、mod
const int MOD = 1000000007;
const int mod = 1000000007;
const int INF = 1000000000;
const long long LINF = 1e18;
const int MAX = 510000;
//出力系
#define print(x) cout << x << endl
#... | #include <bits/stdc++.h>
using namespace std;
// long long
using ll = long long;
// pair<int, int>
using PII = pair<int, int>;
//最大値、mod
const int MOD = 1000000007;
const int mod = 1000000007;
const int INF = 1000000000;
const long long LINF = 1e18;
const int MAX = 510000;
//出力系
#define print(x) cout << x << 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 | 1,935 |
#include <bits/stdc++.h>
typedef long long int ll;
using namespace std;
int main() {
ll a, b, c, k;
cin >> a >> b >> c >> k;
for (int i = 0; i < k; i++) {
if (a >= b) {
b *= 2;
} else if (b >= c) {
c *= 2;
} else
continue;
}
if (a < b && b < c)
cout << "YES\n";
else
cou... | #include <bits/stdc++.h>
typedef long long int ll;
using namespace std;
int main() {
ll a, b, c, k;
cin >> a >> b >> c >> k;
for (int i = 0; i < k; i++) {
if (a >= b) {
b *= 2;
} else if (b >= c) {
c *= 2;
}
}
if (a < b && b < c)
cout << "Yes\n";
else
cout << "No\n";
retur... | [["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95], ["-", 75, 76, 0, 57, 75, 76, 0, 116, 0, 117], ["-", 75, 76, 0, 57, 75, 76, 0, 116, 0, 35], ["-", 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 | 109 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
#define sz(a) int((a).size())
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define all(c) (c).begin(), (c).end(... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
#define sz(a) int((a).size())
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define all(c) (c).begin(), (c).end(... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 825 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/detail/standard_policies.hpp>
using namespace std;
using namespace __gnu_pbds;
template <typename T>
using indexed_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define all(v) ((v).begin()), ((... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/detail/standard_policies.hpp>
using namespace std;
using namespace __gnu_pbds;
template <typename T>
using indexed_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define all(v) ((v).begin()), ((... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 214 |
import sys
a_b_c = list(map(int, input().split()))
r = a_b_c[0]
g = a_b_c[1]
b = a_b_c[2]
k = int(input())
while (g <= r and k >= 0):
g *= 2
k -= 1
while (b <= g and k >= 0):
b *= 2
k -= 1
if (k < 0):
print("No")
else:
print("YES") | import sys
a_b_c = list(map(int, input().split()))
r = a_b_c[0]
g = a_b_c[1]
b = a_b_c[2]
k = int(input())
while (g <= r and k >= 0):
g *= 2
k -= 1
while (b <= g and k >= 0):
b *= 2
k -= 1
if (k < 0):
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 | 100 |
A,B,C = map(int,input().split())
K = int(input())
for i in range(K):
if A > B:
B = B*2
else:
C = C*2
print("Yes" if A < B and B < C else "No") | A,B,C = map(int,input().split())
K = int(input())
for i in range(K):
if A >= B:
B = B*2
else:
C = C*2
print("Yes" if A < B and B < C else "No") | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 69 |
#include <bits/stdc++.h>
#include <string.h>
#define ll long long
#define pf printf
#define sf scanf
#define ff first
#define ss second
#define clr clear()
#define sz size()
#define pb push_back
#define mk make_pair
#define pi acos(-1)
#define inf 20000000000000000
#define mod 1000000007
#define ull unsigned long long ... | #include <bits/stdc++.h>
#include <string.h>
#define ll long long
#define pf printf
#define sf scanf
#define ff first
#define ss second
#define clr clear()
#define sz size()
#define pb push_back
#define mk make_pair
#define pi acos(-1)
#define inf 20000000000000000
#define mod 1000000007
#define ull unsigned long long ... | [["-", 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 | 445 |
#define ll long long
#define dn double
#define mp make_pair
#define pb push_back
#define se second
#define fi first
#define mod 1000000007
#define sob(v) v.begin(), v.end()
#define sobr(v) v.rbegin(), v.rend()
#define fr(i, a, b) for (int i = a; i <= b; ++i)
#define frr(i, a, b) for (int i = a; i >= b; --i)
#define pi ... | #define ll long long
#define dn double
#define mp make_pair
#define pb push_back
#define se second
#define fi first
#define mod 1000000007
#define sob(v) v.begin(), v.end()
#define sobr(v) v.rbegin(), v.rend()
#define fr(i, a, b) for (int i = a; i <= b; ++i)
#define frr(i, a, b) for (int i = a; i >= b; --i)
#define pi ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 279 |
a,b,c=map(int,input().split())
k=int(input())
num=0
while a>b:
b*=2
num+=1
if b>a:
break
while b>c:
c*=2
num+=1
if c>b:
break
if num<=k:
print("Yes")
else:
print("No")
| a,b,c=map(int,input().split())
k=int(input())
num=0
while a>=b:
b*=2
num+=1
if b>a:
break
while b>=c:
c*=2
num+=1
if c>b:
break
if num<=k:
print("Yes")
else:
print("No")
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20]] | 5 | 82 |
a=list(map,input().split())
k=int(input())
while a[0]>=a[1]:
k-=1
a[1]*=2
while a[1]>=a[2]:
k-=1
a[2]*=2
if k>=0:
print("Yes")
else:
print("No")
| a=list(map(int,input().split()))
k=int(input())
while a[0]>=a[1]:
k-=1
a[1]*=2
while a[1]>=a[2]:
k-=1
a[2]*=2
if k>=0:
print("Yes")
else:
print("No")
| [["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 81 |
#include <bits/stdc++.h>
#include <iostream>
#include <string>
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 (a < b || c <= b)
c *= 2;
if (a < b && b < c) {
cout << "YES" << endl;
return 0;... | #include <bits/stdc++.h>
#include <iostream>
#include <string>
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 (a < b || c <= b)
c *= 2;
if (a < b && b < c) {
cout << "Yes" << endl;
return 0;... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 107 |
def l_in(type_): return list(map(type_, input().split()))
def i_in(): return int(input())
def m_in(type_): return map(type_, input().split())
def r_in(n, type_): return [type_(input()) for _ in range(n)]
ans = False
a, b, c = m_in(int)
k = i_in()
for _ in range(k):
if c < b or c < a: c *= 2
elif b < a: b *= 2
... | def l_in(type_): return list(map(type_, input().split()))
def i_in(): return int(input())
def m_in(type_): return map(type_, input().split())
def r_in(n, type_): return [type_(input()) for _ in range(n)]
ans = False
a, b, c = m_in(int)
k = i_in()
for _ in range(k):
if c <= b or c <= a: c *= 2
elif b <= a: b *= ... | [["-", 8, 196, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 8, 196, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 8, 196, 0, 57, 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 | 146 |
#include <bits/stdc++.h>
using namespace std;
void print() { cout << endl; }
template <class Head, class... Tail> void print(Head &&head, Tail &&...tail) {
cout << head;
if (sizeof...(tail) != 0)
cout << " ";
print(forward<Tail>(tail)...);
}
template <class T> void print(vector<T> &vec) {
for (auto &a : vec... | #include <bits/stdc++.h>
using namespace std;
void print() { cout << endl; }
template <class Head, class... Tail> void print(Head &&head, Tail &&...tail) {
cout << head;
if (sizeof...(tail) != 0)
cout << " ";
print(forward<Tail>(tail)...);
}
template <class T> void print(vector<T> &vec) {
for (auto &a : vec... | [["+", 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 | 324 |
a,b,c=(int(x) for x in input().split())
k=int(input())
count=0
while a>b:
b=b*2
count+=1
while b>c:
c=c*2
count+=1
if count <=k:
print('Yes')
else:
print('No')
| a,b,c=(int(x) for x in input().split())
k=int(input())
count=0
while a>=b:
b=b*2
count+=1
while b>=c:
c=c*2
count+=1
if count <=k:
print('Yes')
else:
print('No')
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20]] | 5 | 78 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
int ans = 0;
while (b <= a) {
b *= 2;
ans++;
}
while (b >= c) {
c *= 2;
ans++;
}
cout << ans;
if (ans <= k)
cout << "Yes\n";
else
cout << "No\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
int ans = 0;
while (b <= a) {
b *= 2;
ans++;
}
while (b >= c) {
c *= 2;
ans++;
}
if (ans <= k)
cout << "Yes\n";
else
cout << "No\n";
return 0;
}
| [["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 96 |
#include <bits/stdc++.h>
using namespace std;
#define long long int
signed main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (k--) {
if (b < a)
b *= 2;
else if (c < b) {
c *= 2;
}
}
if (b > a && c > b)
cout << "Yes";
else
cout << "No";
}
| #include <bits/stdc++.h>
using namespace std;
#define long long int
signed main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (k--) {
if (b <= a)
b *= 2;
else if (c <= b)
c *= 2;
}
if (b > a && c > b)
cout << "Yes";
else
cout << "No";
}
| [["-", 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], ["-", 0, 57, 75, 76, 0, 57, 64, 9, 0, 45], ["-", 0, 57, 75, 76, 0, 57, 64, 9, 0, 46]] | 1 | 87 |
#include <algorithm>
#include <assert.h>
#include <bit>
#include <bitset>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
typedef long double ld;
type... | #include <algorithm>
#include <assert.h>
#include <bit>
#include <bitset>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
typedef long double ld;
type... | [["-", 0, 7, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 650 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int c = scan.nextInt();
int k = scan.nextInt();
for (int i = 0; i < k; i++) {
if (a > b) {
b = b * 2;
}... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
int c = scan.nextInt();
int k = scan.nextInt();
for (int i = 0; i < k; i++) {
if (a >= b) {
b = b * 2;
... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20], ["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 47], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 20], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98], ["... | 3 | 153 |
a,b,c=map(int,input().split())
k=int(input())
ans=["Yes","no"]
while b<=a:
b*=2
k-=1
while c<=b:
c*=2
k-=1
print(ans[0] if k>=0 else ans[1])
| a,b,c=map(int,input().split())
k=int(input())
ans=["Yes","No"]
while b<=a:
b*=2
k-=1
while c<=b:
c*=2
k-=1
print(ans[0] if k>=0 else ans[1]) | [["-", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6], ["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 6]] | 5 | 75 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rrep(i, n) for (int i = (int)(n)-1; i >= 0; --i)
#define For(i, a, b) for (auto i = (a); i <= (b); ++i)
#define rFor(i, a, b) for (auto i = (b); i >= (a); --i)
#define call(var) cerr << #var << "=" << var << "\n";... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rrep(i, n) for (int i = (int)(n)-1; i >= 0; --i)
#define For(i, a, b) for (auto i = (a); i <= (b); ++i)
#define rFor(i, a, b) for (auto i = (b); i >= (a); --i)
#define call(var) cerr << #var << "=" << var << "\n";... | [["-", 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 | 551 |
a,b,c=map(int,input('').split())
k=int(input())
for i in range(k):
if a<b and b<c:
print("Yes")
exit()
if b<a:
b*=2
continue
if c<b:
c*=2
continue
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 and b<c:
print("Yes")
exit()
if b<=a:
b*=2
continue
if c<=b:
c*=2
continue
if a<b and 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 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B >> C;
int K;
cin >> K;
for (int i = 0; i < K; i++) {
if (A > B) {
B = B * 2;
} else if (B > C) {
C = C * 2;
}
}
if (C > B && B > A) {
cout << "Yes" << endl;
} else {
cout << "No" << end... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B >> C;
int K;
cin >> K;
for (int i = 0; i < K; i++) {
if (A >= B) {
B = B * 2;
} else if (B >= C) {
C = C * 2;
}
}
if (C > B && B > A) {
cout << "Yes" << endl;
} else {
cout << "No" << e... | [["-", 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 | 110 |
(b1,g1,r1)=input().split()
(b,g,r)=(int(b1),int(g1),int(r1))
k=int(input())
flg=0
for i in range(k):
if not g > r :
g *= 2
elif not b > g:
b *= 2
if ( b > g > r):
print ("Yes")
else:
print ("No")
| (r1,g1,b1)=input().split()
(r,g,b)=(int(r1),int(g1),int(b1))
k=int(input())
flg=0
for i in range(k):
if not g > r :
g *= 2
elif not b > g:
b *= 2
if ( b > g > r):
print ("Yes")
else:
print ("No")
| [["-", 0, 656, 0, 1, 0, 662, 31, 289, 0, 22], ["+", 0, 656, 0, 1, 0, 662, 31, 289, 0, 22], ["-", 0, 662, 12, 660, 0, 652, 3, 4, 0, 22], ["+", 0, 662, 12, 660, 0, 652, 3, 4, 0, 22]] | 5 | 99 |
a,b,c = gets.split.map(&:to_i)
k = gets.to_i
k.times do
if a>b
b*=2
else
c*=2
end
end
puts a<b && b<c ? "Yes" : "No" | a,b,c = gets.split.map(&:to_i)
k = gets.to_i
k.times do
if a>=b
b*=2
else
c*=2
end
end
puts a<b && b<c ? "Yes" : "No" | [["-", 196, 737, 8, 736, 0, 121, 15, 738, 17, 47], ["+", 196, 737, 8, 736, 0, 121, 15, 738, 17, 20]] | 4 | 53 |
a,b,c=map(int,input().split())
k=int(input())
while a>b:
k-=1
b*=2
if k>=0:
print('Yes' if c*(2**k)>b else 'No')
else:
print('No') | a,b,c=map(int,input().split())
k=int(input())
while a>=b:
k-=1
b*=2
if k>=0:
print('Yes' if c*(2**k)>b else 'No')
else:
print('No') | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20]] | 5 | 70 |
#include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
for (int i = 1; i <= k; i++) {
if (b < a) {
b = b * 2;
} else if (c < b) {
c = c * 2;
}
if (a < b && b < c) {
cou... | #include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
for (int i = 1; i <= k; i++) {
if (b <= a) {
b = b * 2;
} else if (c <= b) {
c = c * 2;
}
if (a < b && b < c) {
c... | [["-", 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 | 119 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) begin(v), end(v)
using ll = long long;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
rep(i, k) {
if (b < a)
b *= 2;
else if (c < b)
c *= 2;
}
if (a < b && b < c)
cout <... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) begin(v), end(v)
using ll = long long;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
rep(i, k) {
if (b <= a)
b *= 2;
else if (c <= b)
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], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 107 |
#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i, s, e) for (int i = s; i < e; i++)
#define endl '\n'
int main() {
int R, G, B, K;
cin >> R >> G >> B >> K;
int q = K, r = K;
for (int i = 0; i <= K; i++) {
if (R < G * (1 << i)) {
q = i;
break;
}
}
for ... | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i, s, e) for (int i = s; i < e; i++)
#define endl '\n'
int main() {
int R, G, B, K;
cin >> R >> G >> B >> K;
int q = 100, r = 100;
for (int i = 0; i <= K; i++) {
if (R < G * (1 << i)) {
q = i;
break;
}
}
... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 159 |
#include <stdio.h>
int main(void) {
int a, b, c, k, cnt = 0;
scanf("%d %d %d %d", &a, &b, &c, &k);
while (b <= c) {
cnt++;
b <<= 1;
}
while (b <= a) {
cnt++;
a <<= 1;
}
if (cnt <= k)
printf("Yes");
else
printf("No");
return 0;
}
| #include <stdio.h>
int main(void) {
int a, b, c, k, cnt = 0;
scanf("%d %d %d %d", &a, &b, &c, &k);
while (b <= a) {
cnt++;
b <<= 1;
}
while (c <= b) {
cnt++;
c <<= 1;
}
if (cnt <= k)
printf("Yes");
else
printf("No");
return 0;
}
| [["-", 8, 9, 0, 52, 15, 23, 0, 16, 12, 22], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 12, 22], ["-", 8, 9, 0, 52, 15, 23, 0, 16, 31, 22], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 31, 22], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22]] | 0 | 95 |
a, b, c = gets.chomp.split.map(&:to_i)
k = gets.chomp.to_i
# c > b > a
(k+1).times do
if c > b && b > a
puts "Yes"
exit
end
if a > b
b *= 2
elsif b > c
c *= 2
end
end
puts "No" | a, b, c = gets.chomp.split.map(&:to_i)
k = gets.chomp.to_i
# c > b > a
(k+1).times do
if c > b && b > a
puts "Yes"
exit
end
if a >= b
b *= 2
elsif b >= c
c *= 2
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 | 67 |
#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define all(v) (v).begin(), (v).end()
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using vi = vector<int>;
const ll LINF = 1LL << 60;
const int INF = 1 << 29;
const int MOD = 2019;
int a, b, c;
int K;
bool rec(int n) {
if (n == 0) {
i... | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define all(v) (v).begin(), (v).end()
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using vi = vector<int>;
const ll LINF = 1LL << 60;
const int INF = 1 << 29;
const int MOD = 2019;
int a, b, c;
int K;
bool rec(int n) {
if (n == 0) {
i... | [["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 206 |
#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(v) v.begin(), v.end()
#define PI 3.141592653589793238462643383279
#define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0]))
typedef long long int ll;
typedef unsigned long long... | #include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(v) v.begin(), v.end()
#define PI 3.141592653589793238462643383279
#define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0]))
typedef long long int ll;
typedef unsigned long long... | [["-", 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 | 299 |
#include <stdio.h>
int main(void) {
int a, b, c; // A, B, Cの初期値
int k; // 操作可能な回数
scanf("%d%d%d", &a, &b, &c);
scanf("%d", &k);
for (int i = 0; i < k; i++) {
if (a < b && b < c) {
continue;
}
// aを2倍することはありえない;問題は「bとcのどちらを2倍するか?」に尽きる
else if (c <= a) {
c *= 2;
... | #include <stdio.h>
int main(void) {
int a, b, c; // A, B, Cの初期値
int k; // 操作可能な回数
scanf("%d%d%d", &a, &b, &c);
scanf("%d", &k);
for (int i = 0; i < k; i++) {
if (a < b && b < c) {
continue;
}
// aを2倍することはありえない;問題は「bとcのどちらを2倍するか?」に尽きる
else if (c <= b) {
c *= 2;
... | [["-", 75, 76, 0, 57, 15, 23, 0, 16, 12, 22], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 12, 22], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 22]] | 0 | 139 |
a, b, c = map(int, input().split(" "))
k = int(input())
f = False
for conb in list(itertools.combinations_with_replacement([0, 1, 2], k)):
a_i = conb.count(0)
b_i = conb.count(1)
c_i = conb.count(2)
if (a * (2 ** a_i) < b * (2 **b_i)) and (b * (2 ** b_i) < c * (2 ** c_i)):
f = True
if f:
... | import itertools
a, b, c = map(int, input().split(" "))
k = int(input())
f = False
for conb in list(itertools.combinations_with_replacement([0, 1, 2], k)):
a_i = conb.count(0)
b_i = conb.count(1)
c_i = conb.count(2)
if (a * (2 ** a_i) < b * (2 **b_i)) and (b * (2 ** b_i) < c * (2 ** c_i)):
... | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 134 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int K = sc.nextInt();
for (; A > B && K > 0; K--) {
B += B;
}
for (; B > C && K > 0; K--) {
C ... | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int K = sc.nextInt();
for (; A >= B && K > 0; K--) {
B += B;
}
for (; B >= C && K > 0; K--) {
... | [["-", 8, 196, 0, 7, 15, 16, 31, 16, 17, 47], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 20]] | 3 | 149 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ALL(x) (x).begin(), (x).end()
#define MAX(x) *max_element(ALL(x))
#define MIN(x) *min_element(ALL(x))
typedef pair<int, int> PI;
typedef pair<int, pair<int, int>> PII;
static const int INF = 1010000000000000017LL;
static const double eps = 1... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ALL(x) (x).begin(), (x).end()
#define MAX(x) *max_element(ALL(x))
#define MIN(x) *min_element(ALL(x))
typedef pair<int, int> PI;
typedef pair<int, pair<int, int>> PII;
static const int INF = 1010000000000000017LL;
static const double eps = 1... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]] | 1 | 335 |
/*
h s, d't skp th si tll i's sved
* ABC141 E
* ABC145 D
*/
#include <bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
string ans = "Yes";
while (b < a) {
b *= 2;
k--;
}
if (k < 0) {
ans = "No";
... | /*
h s, d't skp th si tll i's sved
* ABC141 E
* ABC145 D
*/
#include <bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
string ans = "Yes";
while (b <= a) {
b *= 2;
k--;
}
if (k < 0) {
ans = "No";
... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["-", 0, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 0, 9, 0, 52, 15, 339, 51, 16, 17, 19]] | 1 | 115 |
a, b, c = map(int,input().split())
k = int(input())
for i in range(k):
if 2 * b <= a:
b*=2
elif 2 * b <= c:
c*=2
else:
break
if a >= b or b >= c:
print('No')
else:
print('Yes')
| a, b, c = map(int,input().split())
k = int(input())
for i in range(k):
if b <= a:
b *=2
elif c <= b:
c*=2
else:
break
if a >= b or b >= c:
print('No')
else:
print('Yes')
| [["-", 8, 196, 0, 57, 15, 666, 0, 657, 31, 612], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 48], ["-", 0, 57, 75, 665, 15, 666, 0, 657, 31, 612], ["-", 0, 57, 75, 665, 15, 666, 0, 657, 17, 48], ["-", 0, 57, 75, 665, 15, 666, 0, 657, 12, 22], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19], ["+", 8, 196, 0, 57, 75, 665, ... | 5 | 80 |
a,b,c = map(int,input().split())
k = int(input())
for i in range(k):
if a > b:
b *= 2
else:
c *= 2
print("Yes" if a < b and b < c else "No") | a,b,c = map(int,input().split())
k = int(input())
for i in range(k):
if a >= b:
b *= 2
else:
c *= 2
print("Yes" if a < b and b < c else "No")
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 65 |
a, b, c = map(int, input().split())
k = int(input())
i = 0
while not a < b:
b *= 2
i += 1
while not b < c:
c *= 2
i += 1
if k <= i:
print('Yes')
else:
print('No') | a, b, c = map(int, input().split())
k = int(input())
i = 0
while not a < b:
b *= 2
i += 1
while not b < c:
c *= 2
i += 1
if i <= k:
print('Yes')
else:
print('No') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]] | 5 | 72 |
package main
import (
"bufio"
"container/heap"
"fmt"
"os"
"sort"
"strconv"
)
const (
initialBufSize = 1e4
maxBufSize = 1e6 + 7
)
var buf []byte = make([]byte, maxBufSize)
var sc = bufio.NewScanner(os.Stdin)
func init() {
sc.Split(bufio.ScanWords)
sc.Buffer(buf, maxBufSize)
}
func main() {
A, B, C, K... | package main
import (
"bufio"
"container/heap"
"fmt"
"os"
"sort"
"strconv"
)
const (
initialBufSize = 1e4
maxBufSize = 1e6 + 7
)
var buf []byte = make([]byte, maxBufSize)
var sc = bufio.NewScanner(os.Stdin)
func init() {
sc.Split(bufio.ScanWords)
sc.Buffer(buf, maxBufSize)
}
func main() {
A, B, C, K... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 20]] | 7 | 1,424 |
abc=list(map(int,input().split()))
a,b,c=abc[0],abc[1],abc[2]
k=int(input())
for i in range(k):
if a < b < c:
print("Yes")
break
elif b <= a < c:
b *= 2
else:
c *= 2
else:
print("No") | abc=list(map(int,input().split()))
a,b,c=abc[0],abc[1],abc[2]
k=int(input())
for i in range(k+1):
if a < b < c:
print("Yes")
break
elif b <= a < c:
b *= 2
else:
c *= 2
else:
print("No") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 90 |
A, B, C = map(int, input().split())
K = int(input())
i_ans = 0
j_ans = 0
for i in range(1,8):
B_after = B * (2 ** i)
if B_after > A:
i_ans = i
break
B_after = B * (2 ** i_ans)
for j in range(1,8):
C_after = C * (2 ** j)
if C_after > B_after:
j_ans = j
break
if i_ans + j_a... | A, B, C = map(int, input().split())
K = int(input())
i_ans = 0
j_ans = 0
for i in range(0,8):
B_after = B * (2 ** i)
if B_after > A:
i_ans = i
break
B_after = B * (2 ** i_ans)
for j in range(0,8):
C_after = C * (2 ** j)
if C_after > B_after:
j_ans = j
break
if i_ans + j_a... | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 118 |
#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define ll long long
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for (ll i = 0; i < n; i++)
const ll INF = 1LL << 60;
int main() {
int A, B, C;
cin >> A >> B >> C;
int K;
cin >> K;
rep(i, K) {
if (A > B)
B ... | #include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define ll long long
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for (ll i = 0; i < n; i++)
const ll INF = 1LL << 60;
int main() {
int A, B, C;
cin >> A >> B >> C;
int K;
cin >> K;
rep(i, K) {
if (A >= B)
B... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 120 |
#include <bits/stdc++.h>
#define lli long long int
#define pb(a) push_back(a)
#define forr(a, n) for (lli i = a; i < n; i++)
#define forrr(j, a, n) for (lli j = a; j < n; j++)
#define all(x) x.begin(), x.end()
#define pi2 1.57079632679489661923
using namespace std;
void print(lli a[], lli n) {
forr(0, n) { cout << a... | #include <bits/stdc++.h>
#define lli long long int
#define pb(a) push_back(a)
#define forr(a, n) for (lli i = a; i < n; i++)
#define forrr(j, a, n) for (lli j = a; j < n; j++)
#define all(x) x.begin(), x.end()
#define pi2 1.57079632679489661923
using namespace std;
void print(lli a[], lli n) {
forr(0, n) { cout << a... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19]] | 1 | 504 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mx 1000000
int main() {
ios_base::sync_with_stdio(0);
cin.tie(NULL);
ll a, b, c = 0, k;
cin >> a >> b >> c >> k;
while (k--) {
if (b < a)
b *= 2;
else
c *= 2;
}
if (b > a and c > b)
cou... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mx 1000000
int main() {
ios_base::sync_with_stdio(0);
cin.tie(NULL);
ll a, b, c = 0, k;
cin >> a >> b >> c >> k;
while (k--) {
if (b <= a)
b *= 2;
else
c *= 2;
}
if (b > a and c > b)
co... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 108 |
package main
import "fmt"
var a, b, c, k int
func main () {
ans := "No"
fmt.Scan(&a, &b, &c, &k)
for i:=0; i<k; i++{
if a>b {
b *= 2
}else if b>c{
c *= 2
}
if a<b && b<c {
ans = "Yes"
break
}
}
fmt.Println(ans)
} | package main
import "fmt"
var a, b, c, k int
func main () {
ans := "No"
fmt.Scan(&a, &b, &c, &k)
for i:=0; i<k; i++{
if a>=b {
b *= 2
}else if b>=c{
c *= 2
}
if a<b && b<c {
ans = "Yes"
break
}
}
fmt.Println(ans)
} | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["+", 8, 196, 0, 57, 75, 57, 15, 16, 17, 20]] | 7 | 109 |
A,B,C = map(int,input().split())
N = int(input())
stack = [(A,B,C,N)]
flag = False
while stack:
a,b,c,n = stack.pop()
if a<b and B<c:
flag = True
break
if n>0:
stack.append((a*2,b,c,n-1))
stack.append((a,b*2,c,n-1))
stack.append((a,b,c*2,n-1))
print('Yes') if flag else print('No')
| A,B,C = map(int,input().split())
N = int(input())
stack = [(A,B,C,N)]
flag = False
while stack:
a,b,c,n = stack.pop()
if a<b and b<c:
flag = True
break
if n>0:
stack.append((a*2,b,c,n-1))
stack.append((a,b*2,c,n-1))
stack.append((a,b,c*2,n-1))
print('Yes') if flag else print('No')
| [["-", 8, 196, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 0, 22]] | 5 | 145 |
package atcoder;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int K = sc.nextInt();
int count = 0;
while (A >= B) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
int A = sc.nextInt();
int B = sc.nextInt();
int C = sc.nextInt();
int K = sc.nextInt();
int count = 0;
while (A >= B) {
B *= 2;
... | [["-", 36, 36, 36, 36, 0, 493, 0, 501, 0, 483], ["-", 36, 36, 36, 36, 0, 493, 0, 501, 0, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 501, 0, 35], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]] | 3 | 146 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, m, n) for (ll i = (ll)(m); i < (ll)(n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
string ans = "No";
while (k > 0) {
if (a > b)
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, m, n) for (ll i = (ll)(m); i < (ll)(n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
string ans = "No";
while (k > 0) {
if (a >= b)... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 145 |
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
else:
break
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 *= 2
elif b >= c:
c *= 2
else:
pass
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], ["-", 0, 57, 75, 76, 8, 196, 0, 93, 0, 94], ["+", 0, 57, 75, 76, 8, 196, 0, 674, 0, 675]] | 5 | 76 |
#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;
if (a < b && b >= c)
c *= 2;
}
if (a < b && b < c)
cout << "Yes";
else
cout << "No";
return 0;
} | #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 if (a < b && b >= c)
c *= 2;
}
if (a < b && b < c)
cout << "Yes";
else
cout << "No";
return 0;
} | [["+", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 97 |
tmp = input().split()
map_tmp = map(int, tmp)
values = list(map_tmp)
moves = int(input())
while(moves):
if (values[1] < values[0]):
values[1] *= 2
moves -=1
elif(values[2] < values[1]):
values[2] *=2
moves -=1
else:
break
if (values[1] > values[0]) and (values[2] > values[1]):
print('Yes... | tmp = input().split()
map_tmp = map(int, tmp)
values = list(map_tmp)
moves = int(input())
while(moves):
if (values[1] <= values[0]):
values[1] *= 2
moves -=1
elif(values[2] <= values[1]):
values[2] *=2
moves -=1
else:
break
if (values[1] > values[0]) and (values[2] > values[1]):
print('Y... | [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 19], ["-", 0, 57, 75, 665, 15, 23, 0, 666, 667, 18], ["+", 0, 57, 75, 665, 15, 23, 0, 666, 667, 19]] | 5 | 122 |
a,b,c=[int(i) for i in input().split()]
n=int(input())
flag=0
e=0
while(a>=b):
b=b*2
e=e+1
while(e<n and c<=b):
c=c*2
e=e+1
if(b>a and c>b and e<=n):
print('YES')
else:
print('NO') | a,b,c=[int(i) for i in input().split()]
n=int(input())
flag=0
e=0
while(a>=b):
b=b*2
e=e+1
while(e<n and c<=b):
c=c*2
e=e+1
if(b>a and c>b and e<=n):
print('Yes')
else:
print('No') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 103 |
# cook your dish here
a,b,c = map(int, input().split())
k = int(input())
c1, c2 = 0, 0
while b<=a:
b=b*2
c1 = c1 + 1
while c <= b:
c=c*2
c2 = c2 +1
if c1 + c2 < k:
print('Yes')
else:
print('No') | # cook your dish here
a,b,c = map(int, input().split())
k = int(input())
c1, c2 = 0, 0
while b<=a:
b=b*2
c1 = c1 + 1
while c <= b:
c=c*2
c2 = c2 +1
if c1 + c2 <= k:
print('Yes')
else:
print('No') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 85 |
//コンパイラ最適化用
#pragma GCC optimize("Ofast")
//インクルード(アルファベット順)
#include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <chrono> //実行時間計測
#include <cmath> //pow,logなど
#include <complex> //複素数
#include <deque> //両端アクセスのキュー
#include <functional> //sortのgreater
#in... | //コンパイラ最適化用
#pragma GCC optimize("Ofast")
//インクルード(アルファベット順)
#include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <chrono> //実行時間計測
#include <cmath> //pow,logなど
#include <complex> //複素数
#include <deque> //両端アクセスのキュー
#include <functional> //sortのgreater
#in... | [["-", 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 | 174 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0; i < d; i++) {
if (a > b)
b *= 2;
else
c *= 2;
}
if (c > b && b > a)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
for (int i = 0; i < d; i++) {
if (a >= b)
b *= 2;
else
c *= 2;
}
if (c > b && b > a)
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 | 89 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define pl pair<long, long>
#define pi pair<int, int>
#define lb(v, x) lower_bound(v.begin(), v.end(), x) - v.begin();
#define ub(v, x) upper_bound(v.begin(), v.end(), x) - v.be... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define pl pair<long, long>
#define pi pair<int, int>
#define lb(v, x) lower_bound(v.begin(), v.end(), x) - v.begin();
#define ub(v, x) upper_bound(v.begin(), v.end(), x) - v.be... | [["-", 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 | 198 |
a, b, c = map(int,input().split(' '))
k = int(input())
while k > 0:
if c < b:
c *= 2
elif b < a:
b *= 2
k -= 1
if a < b and b < c:
print('Yes')
break
else:
print('No') | a, b, c = map(int,input().split(' '))
k = int(input())
while k > 0:
if c <= b:
c *= 2
elif b <= a:
b *= 2
k -= 1
if a < b and b < c:
print('Yes')
break
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 | 77 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
int count = 0;
while (b <= a) {
b *= 2;
count++;
}
while (c <= b) {
c *= 2;
count++;
}
if (count <= k) {
cout << "YES";
} else {
cout << "NO";
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
int count = 0;
while (b <= a) {
b *= 2;
count++;
}
while (c <= b) {
c *= 2;
count++;
}
if (count <= k) {
cout << "Yes";
} else {
cout << "No";
}
} | [["-", 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 | 92 |
#import sys
a, b, c = map(int,input().split())
k = int(input())
for i in range(k):
if a>b:
b = b*b
elif b>c:
c = c*c
else:
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 a>=b:
b = 2*b
elif b>=c:
c = 2*c
else:
continue
if a<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], ["-", 64, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 31, 612], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]] | 5 | 79 |
a, b, c = map(int, input().split())
k = int(input())
cnt = 0
while not (a < b < c):
cnt += 1
if a > b:
b *= 2
elif b > c:
c *= 2
if cnt > k:
print("No")
exit(0)
print("Yes") | a, b, c = map(int, input().split())
k = int(input())
cnt = 0
while not (a < b < c):
cnt += 1
if a >= b:
b *= 2
elif b >= c:
c *= 2
if cnt > k:
print("No")
exit(0)
print("Yes") | [["-", 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 | 79 |
A, B, C = map(int, input().split())
K = int(input())
i = 0
while i <= K:
if A >= B:
B *= 2
i += 1
else:
break
while i <= K:
if B >= C:
C *= 2
i += 1
else:
break
#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())
i = 0
while i < K:
if A >= B:
B *= 2
i += 1
else:
break
while i < K:
if B >= C:
C *= 2
i += 1
else:
break
#print(i)
#print(A, B, C)
if A < B and B < C:
print('Yes')
else:
print('No') | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 91 |
"""
b > g > r
"""
r, g, b = list(map(int, input().split()))
k = int(input())
flag = False
for i in range(k):
if r > b and b > 2 * g :
g *= 2
elif r > g and b > 2 * g:
g *= 2
else:
b *= 2
if r < g < b:
flag = True
print("Yes") if flag else print("No") | """
b > g > r
"""
r, g, b = list(map(int, input().split()))
k = int(input())
flag = False
for i in range(k):
if r >= b and b > 2 * g :
g *= 2
elif r >= g and b > 2 * g:
g *= 2
else:
b *= 2
if r < g < b:
flag = True
print("Yes") if flag else print("No") | [["-", 8, 196, 0, 57, 15, 679, 31, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 20], ["-", 0, 57, 75, 665, 15, 679, 31, 666, 667, 47], ["+", 0, 57, 75, 665, 15, 679, 31, 666, 667, 20]] | 5 | 101 |
a,b,c,k=map(int,open(0).read().split())
for i in' '*k:
if a>b:b*=2
elif b>c:c*=2
print('NYoe s'[a<b<c::2]) | a,b,c,k=map(int,open(0).read().split())
for i in' '*k:
if a>=b:b*=2
elif b>=c:c*=2
print('NYoe s'[a<b<c::2]) | [["-", 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 <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
for (int i = 0; i < k; i++) {
if (a < b && c > b) {
break;
} else if (a > b) {
b = b * 2;
continue;
} else if (c < b) {
c = c * 2;
continue;
}
}
if (a ... | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
for (int i = 0; i < k; i++) {
if (a < b && c > b) {
break;
} else if (a >= b) {
b = b * 2;
continue;
} else if (c <= b) {
c = c * 2;
continue;
}
}
if (... | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 123 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
for (int i = 0; i < k; i++) {
if (a >= b)
b = b * 2;
if (b > c)
c = c * 2;
}
if (a < b && b < c)
cout << "Yes";
else
cout << "No";
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
for (int i = 0; i < k; i++) {
if (a >= b)
b = b * 2;
else if (b >= c)
c = c * 2;
}
if (a < b && b < c)
cout << "Yes";
else
cout << "No";
} | [["+", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 96 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define pb push_back
#define int long long
void func(int a, int b, int c, int k = 0) {
if (a < b && b < c) {
cout << "Yes";
exit(0);
}
if (k == 0) {
retur... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define pb push_back
#define int long long
void func(int a, int b, int c, int k = 0) {
if (a < b && b < c) {
cout << "Yes";
exit(0);
}
if (k == 0) {
retur... | [["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 188 |
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
long r = s.nextInt();
long g = s.nextInt();
long b = s.nextInt();
long k = s.nextInt();
int flag = 0;
for (int... | import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
long r = s.nextInt();
long g = s.nextInt();
long b = s.nextInt();
long k = s.nextInt();
int flag = 0;
for (int... | [["-", 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 | 268 |
#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;
}
}
if (A < B && B < C) {
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 (A >= B) {
B *= 2;
} else {
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 | 97 |
r,g,b = map(int,input().split())
k = int(input())
t=0
t+=k
for i in range(k):
if(b<=r):
b*=2
t-=1
elif(b>r and b<=g):
b*=2
t-=1
elif(b>r and b>g and g<=r):
g*=2
t-=1
if(t==0):
break
if(g>r and b>g):print("YE... | r,g,b = map(int,input().split())
k = int(input())
t=0
t+=k
for i in range(k):
if(b<=r):
b*=2
t-=1
elif(b>r and b<=g):
b*=2
t-=1
elif(b>r and b>g and g<=r):
g*=2
t-=1
if(t==0):
break
if(g>r and b>g):print("Ye... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 124 |
a,b,c = map(int,input().split())
k = int(input())
for i in range(k):
if(a > b):
b*=2
continue
if(b > c):
c*=2
continue
if(a<b and b<c):
print("Yes")
exit()
print("No") | a,b,c = map(int,input().split())
k = int(input())
for i in range(k):
if(a >= b):
b*=2
continue
if(b >= c):
c*=2
continue
if(a<b and b<c):
print("Yes")
exit()
else:
print("No") | [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102]] | 5 | 82 |
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector... | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector... | [["-", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 856 |
import itertools
A,B,C=map(int,input().split())
K=int(input())
l=[0,1,2,3,4,5,6,7]
for c in itertools.permutations(l, 3):
if sum(c) == K and A*2**c[0]<B*2**c[1] and B*2**c[1]<C*2**c[2]:
print("Yes")
exit(0)
print("No")
| import itertools
A,B,C=map(int,input().split())
K=int(input())
l=[0,1,2,3,4,5,6,7]
for c in itertools.product(l, repeat=3):
if sum(c) == K and A*2**c[0]<B*2**c[1] and B*2**c[1]<C*2**c[2]:
print("Yes")
exit(0)
print("No")
| [["-", 0, 656, 0, 7, 12, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 7, 12, 652, 63, 319, 319, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 653, 0, 32]] | 5 | 119 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for (int i = a; i < (int)(b); i++)
#define all(v) v.begin(), v.end()
const int MOD = 1e9 + 7;
const int INF = 1e9;
//'A' = 65, 'Z' = 90, 'a' = 97, 'z' = 122
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for (int i = a; i < (int)(b); i++)
#define all(v) v.begin(), v.end()
const int MOD = 1e9 + 7;
const int INF = 1e9;
//'A' = 65, 'Z' = 90, 'a' = 97, 'z' = 122
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 20]] | 1 | 138 |
#!/usr/bin/env python
a, b, c = map(int, input().split())
k = int(input())
while k>0:
if a>=b:
b *= 2
elif b>=c:
c *= 2
else:
print('Yes')
exit(0)
k -= 1
print('No')
| #!/usr/bin/env python
a, b, c = map(int, input().split())
k = int(input())
while k>=0:
if a>=b:
b *= 2
elif b>=c:
c *= 2
else:
print('Yes')
exit(0)
k -= 1
print('No')
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20]] | 5 | 69 |
#include <bits/stdc++.h>
#define lli long long int
#define ll long long
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
lli 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 =... | #include <bits/stdc++.h>
#define lli long long int
#define ll long long
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
lli 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 =... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 47]] | 1 | 133 |
// HOW YOU DOI'N......................
#include <bits/stdc++.h>
#include <cmath>
#include <queue>
#include <stdint.h>
#include <string.h>
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | // HOW YOU DOI'N......................
#include <bits/stdc++.h>
#include <cmath>
#include <queue>
#include <stdint.h>
#include <string.h>
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 31, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["-", 31, 16, 12, 2, 3, 4, 0, 16, 31, 13], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 31, 22]] | 1 | 741 |
A,B,C=map(int,input().split())
K=int(input())
if A<B<C:
print("Yes")
else:
for k in range(1,K+1):
for i in range(3**k):
a,b,c=A,B,C
for _ in range(k):
if i%3==0:
a*=2
elif i%3==1:
b*=2
else:
... | A,B,C=map(int,input().split())
K=int(input())
if A<B<C:
print("Yes")
exit()
else:
for k in range(1,K+1):
for i in range(3**k):
a,b,c=A,B,C
for _ in range(k):
if i%3==0:
a*=2
elif i%3==1:
b*=2
... | [["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 132 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int judge(vector<int> &card) {
if ((card[0] < card[1]) && (card[1] < card[2])) {
return 1;
}
return 0;
}
int main() {
vector<int> card(3);
REP(i, 3) cin >> c... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int judge(vector<int> &card) {
if ((card[0] < card[1]) && (card[1] < card[2])) {
return 1;
}
return 0;
}
int main() {
vector<int> card(3);
REP(i, 3) cin >> c... | [["-", 15, 339, 51, 16, 31, 23, 0, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 20]] | 1 | 227 |
#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
int judge(vector<int> &card) {
if ((card[0] < card[1]) && (card[1] < card[2])) {
return 1;
}
return 0;
}
int main() {
vector<int> card(3);
REP(i, 3)
cin >> card[i];
int K;
cin >> K;
if (judge(car... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
int judge(vector<int> &card) {
if ((card[0] < card[1]) && (card[1] < card[2])) {
return 1;
}
return 0;
}
int main() {
vector<int> card(3);
REP(i, 3)
cin >> card[i];
int K;
cin >> K;
if (judge(car... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 218 |
#include <bits/stdc++.h>
using namespace std;
#define ALL(v) v.begin(), v.end()
#define V vector
#define P pair
using ll = long long;
using ld = long double;
const int MOD = 1000000007;
const ll INF = 1LL << 60;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
while (b < a) {
b *= 2;
... | #include <bits/stdc++.h>
using namespace std;
#define ALL(v) v.begin(), v.end()
#define V vector
#define P pair
using ll = long long;
using ld = long double;
const int MOD = 1000000007;
const ll INF = 1LL << 60;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
while (b <= a) {
b *= 2;
... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]] | 1 | 136 |
#include <bits/stdc++.h>
using namespace std;
#define ALL(v) v.begin(), v.end()
#define V vector
#define P pair
using ll = long long;
using ld = long double;
const int MOD = 1000000007;
const ll INF = 1LL << 60;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
while (b < a && 0 < k) {
b *... | #include <bits/stdc++.h>
using namespace std;
#define ALL(v) v.begin(), v.end()
#define V vector
#define P pair
using ll = long long;
using ld = long double;
const int MOD = 1000000007;
const ll INF = 1LL << 60;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
while (b <= a && 0 < k) {
b ... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19]] | 1 | 140 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int red, green, blue, k, i;
cin >> red >> green >> blue >> k;
for (i = 0; i < k; i++) {
if (green < red) {
green *= 2;
} else if (green > red && green > blue) {
blue *= 2;
}
}
if (red < green && green < blue) {
cout << "Y... | #include <bits/stdc++.h>
using namespace std;
int main() {
int red, green, blue, k, i;
cin >> red >> green >> blue >> k;
for (i = 0; i < k; i++) {
if (green <= red) {
green *= 2;
} else if (green >= red && green >= blue) {
blue *= 2;
}
}
if (red < green && green < blue) {
cout <<... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 115 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
while (k--) {
if (c < b)
c *= 2;
else if (b < a)
b *= 2;
}
if (c > b && b > a)
printf("Yes\n");
else
printf("No\n");
return 0;
}
/*
int main()
{
int r, g, b;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
while (k--) {
if (c <= b)
c *= 2;
else if (b <= a)
b *= 2;
}
if (c > b && b > a)
printf("Yes\n");
else
printf("No\n");
return 0;
}
/*
int main()
{
int r, g, b;... | [["-", 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 | 93 |
def main():
a, b, c = [int(x) for x in input().split()]
count = int(input())
while a >= b:
b *= 2
count -= 1
while b >= c:
c *= 2
count -= 1
print('Yes' if count < 0 else 'No')
if __name__ == '__main__':
main()
| def main():
a, b, c = [int(x) for x in input().split()]
count = int(input())
while a >= b:
b *= 2
count -= 1
while b >= c:
c *= 2
count -= 1
print('Yes' if count >= 0 else 'No')
if __name__ == '__main__':
main()
| [["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 18], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 20]] | 5 | 81 |
#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++;
}
if (cnt <= 3) {
cout << "Yes" << endl;
} else
cout << "No" << endl;
} | #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++;
}
if (cnt <= K) {
cout << "Yes" << endl;
} else
cout << "No" << endl;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 92 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int A, B, C, K;
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++) {
if (i + j + k > K)
continue;
int a = A * pow(2, i);
int b = B * pow(2, j)... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int A, B, C, K;
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++) {
if (i + j + k > K)
continue;
int a = A * pow(2, i);
int b = B * pow(2,... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 159 |
r,g,b = gets.split.map(&:to_i)
k = gets.to_i
k.times do
if r>g
g*=2
elsif g>b
b*=2
end
#p r,g,b
end
puts (r<g and g<b) ? "Yes" : "No" | r,g,b = gets.split.map(&:to_i)
k = gets.to_i
k.times do
if r>=g
g*=2
elsif g>=b
b*=2
end
#p r,g,b
end
puts (r<g and g<b) ? "Yes" : "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 | 59 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
bool ok = false;
// 全探索
REP(i, K) REP(j, K) REP(k, K) {
int a = A * (1 << i);
int b = B * (1 << j);
int c = C * (1 << k);
if (i + j + k <= K && ... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
bool ok = false;
// 全探索
REP(i, K + 1) REP(j, K + 1) REP(k, K + 1) {
int a = A * (1 << i);
int b = B * (1 << j);
int c = C * (1 << k);
if (i + j ... | [["+", 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 | 150 |
"""
Satwik_Tiwari ;) .
24th july , 2020 - Friday
"""
#===============================================================================================
#importing some useful libraries.
from __future__ import division, print_function
from fractions import Fraction
import sys
import os
from io import BytesIO, I... | """
Satwik_Tiwari ;) .
24th july , 2020 - Friday
"""
#===============================================================================================
#importing some useful libraries.
from __future__ import division, print_function
from fractions import Fraction
import sys
import os
from io import BytesIO, I... | [["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 48], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 1,182 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.