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 <iostream>
using namespace std;
int main() {
int x;
cin >> x;
x = (x - 2000) * -1;
x /= 200;
cout << x + 1 << endl;
} | #include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
x = (x - 1999) * -1;
x /= 200;
cout << x + 1 << endl;
} | [["-", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13]] | 1 | 41 |
n = int(input())
ans = n//100
if ans< 5:
print(8)
exit()
elif ans >= 6 and ans <= 7:
print(7)
exit()
elif ans >= 8 and ans <= 9:
print(6)
exit()
elif ans >= 10 and ans <= 11:
print(5)
exit()
elif ans >= 12 and ans <= 13:
print(4)
exit()
elif ans >= 14 and ans <= 15:
print(3... | n = int(input())
ans = n//100
if ans <= 5:
print(8)
exit()
elif ans >= 6 and ans <= 7:
print(7)
exit()
elif ans >= 8 and ans <= 9:
print(6)
exit()
elif ans >= 10 and ans <= 11:
print(5)
exit()
elif ans >= 12 and ans <= 13:
print(4)
exit()
elif ans >= 14 and ans <= 15:
print... | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 137 |
#include "bits/stdc++.h"
using namespace std;
typedef long double ld;
#define int long long
typedef pair<int, int> pii;
#define RAGE \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | #include "bits/stdc++.h"
using namespace std;
typedef long double ld;
#define int long long
typedef pair<int, int> pii;
#define RAGE \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | [["-", 75, 76, 0, 57, 64, 1, 0, 16, 12, 13], ["+", 75, 76, 0, 57, 64, 1, 0, 16, 12, 13]] | 1 | 626 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
if (x >= 400 && x <= 599)
cout << 8 << "\n";
else if (x >= 600 && x <= 799)
cout << 7 << "\n";
else if (x >= 800 && x <= 999)
cout << 6 << "\n";
else if (x >= 1000 && x <= 119)
cout << 5 << "\n";
else if (x >= 1200... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
if (x >= 400 && x <= 599)
cout << 8 << "\n";
else if (x >= 600 && x <= 799)
cout << 7 << "\n";
else if (x >= 800 && x <= 999)
cout << 6 << "\n";
else if (x >= 1000 && x <= 1199)
cout << 5 << "\n";
else if (x >= 120... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 173 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d, ans, tmp;
string s;
a = b = c = d = ans = tmp = 0;
// vector<int>a();
cin >> a;
if (a >= 1800) {
cout << "1";
} else if (a <= 1600) {
cout << "2";
} else if (a <= 1400) {
cout << "3";
} else i... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int a, b, c, d, ans, tmp;
string s;
a = b = c = d = ans = tmp = 0;
// vector<int>a();
cin >> a;
if (a >= 1800) {
cout << "1";
} else if (a >= 1600) {
cout << "2";
} else if (a >= 1400) {
cout << "3";
} else i... | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 162 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int X;
cin >> X;
int kyu;
if (X <= 599) {
kyu = 8;
} else if (X <= 600) {
kyu = 7;
} else if (X <= 999) {
kyu = 6;
} else if (X <= 1199) {
kyu = 5;
} else if (X <= 1399) {
kyu = 4;
} else if (X <= 1599) {
kyu = 3;... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int X;
cin >> X;
int kyu;
if (X <= 599) {
kyu = 8;
} else if (X <= 799) {
kyu = 7;
} else if (X <= 999) {
kyu = 6;
} else if (X <= 1199) {
kyu = 5;
} else if (X <= 1399) {
kyu = 4;
} else if (X <= 1599) {
kyu = 3;... | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 126 |
#include <bits/stdc++.h>
using namespace std;
#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 ALL(v) v.begin(), v.end()
int main() {
std::cout << std::fixed << std::setprecision(20);
int X;
cin >> X;
if (... | #include <bits/stdc++.h>
using namespace std;
#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 ALL(v) v.begin(), v.end()
int main() {
std::cout << std::fixed << std::setprecision(20);
int X;
cin >> X;
if (... | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 201 |
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <deque>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include ... | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <deque>
#include <functional>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include ... | [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 249 |
x = int(input())
if x >= 400 and x <= 599:
s = 8
elif x >= 600 and x <= 799:
s = 7
elif x >= 800 and x <= 999:
s = 6
elif x >= 1000 and x <= 1199:
s = 5
elif x >= 1200 and x <= 1399:
s = 4
elif x >= 1400 and x <= 1599:
s = 3
elif x >= 1600 and x <= 1799:
s = 2
else:
s = 1 | x = int(input())
if x >= 400 and x <= 599:
s = 8
elif x >= 600 and x <= 799:
s = 7
elif x >= 800 and x <= 999:
s = 6
elif x >= 1000 and x <= 1199:
s = 5
elif x >= 1200 and x <= 1399:
s = 4
elif x >= 1400 and x <= 1599:
s = 3
elif x >= 1600 and x <= 1799:
s = 2
else:
s = 1
print(s) | [["+", 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 | 97 |
a, b,c = map(int, input().split())
k = int(input())
for i in range(k):
if b > c:
c *= 2
elif a > b:
b *= 2
else:
c *= 2
if (b > a) and (c > b):
result = "Yes"
else:
result = "No"
print(result) | a, b,c = map(int, input().split())
k = int(input())
for i in range(k):
if b >= c:
c *= 2
elif a >= b:
b *= 2
else:
c *= 2
if (b > a) and (c > b):
result = "Yes"
else:
result = "No"
print(result) | [["-", 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 | 84 |
A, B, C = input().split(" ")
K = int(input())
A, B, C = int(A), int(B), int(C)
for i in range(K):
if A > B:
B = B*2
elif B > C:
C = C*2
if B > A and C > B:
print("Yes")
exit()
print("No") | A, B, C = input().split(" ")
K = int(input())
A, B, C = int(A), int(B), int(C)
for i in range(K):
if A >= B:
B = B*2
elif B >= C:
C = C*2
if B > A and C > B:
print("Yes")
exit()
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 | 96 |
#include <bits/stdc++.h>
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
while (k) {
if (a > b)
b *= 2;
else if (b > c)
c *= 2;
k--;
}
if (a < b && b < c... | #include <bits/stdc++.h>
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
while (k) {
if (a >= b) {
b *= 2;
} else if (b >= c) {
c *= 2;
}
k--;
}
if (... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 57, 75, 76, 0, 57, 64, 9, 0, 45], ["+", 0, 5... | 1 | 116 |
import sys
a, b, c = [int(x) for x in input().split()]
k = int(input())
i = 0
while b<a:
i += 1
b *= 2
if(k<i):
print('No')
sys.exit()
else:
k -= i
j = 0
while c<=b:
j += 1
c *= 2
if(k<j):
print('No')
sys.exit()
else:
print('Yes') | import sys
a, b, c = [int(x) for x in input().split()]
k = int(input())
i = 0
while b<=a:
i += 1
b *= 2
if(k<i):
print('No')
sys.exit()
else:
k -= i
j = 0
while c<=b:
j += 1
c *= 2
if(k<j):
print('No')
sys.exit()
else:
print('Yes') | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19]] | 5 | 109 |
li = list(map(int, input().split()))
k = int(input())
for i in range(k):
if li[0] > li[1]:
li[1]=li[1]*2
elif li[2] < li[1]:
li[2]=li[2]*2
if li[0] < li[1] and li[1] < li[2]:
print("Yes")
quit()
print("No") | li = list(map(int, input().split()))
k = int(input())
for i in range(k):
if li[0] >= li[1]:
li[1]=li[1]*2
elif li[2] <= li[1]:
li[2]=li[2]*2
if li[0] < li[1] and li[1] < li[2]:
print("Yes")
quit()
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, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]] | 5 | 113 |
r, g, b = gets().chomp.split(' ').map(&:to_i)
k = gets().chomp.to_i
count = 0
while count < k do
if b <= r || b <= g
b *= 2
elsif g <= r
g *= 2
end
count += 1
end
if b > g && g > r
p 'Yes'
else
p 'No'
end | r, g, b = gets().chomp.split(' ').map(&:to_i)
k = gets().chomp.to_i
count = 0
while count < k do
if b <= r || b <= g
b *= 2
elsif g <= r
g *= 2
end
count += 1
end
if b > g && g > r
puts 'Yes'
else
puts 'No'
end | [["-", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["+", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["-", 0, 493, 0, 121, 75, 95, 0, 652, 735, 22], ["+", 0, 493, 0, 121, 75, 95, 0, 652, 735, 22]] | 4 | 82 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (k--) {
if (b < a) {
b *= 2;
continue;
}
if (c < b) {
c *= 2;
continue;
}
break;
}
cout << (a < b && b < c ? "Yes" : "No") << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (k--) {
if (b <= a) {
b *= 2;
continue;
}
if (c <= b) {
c *= 2;
continue;
}
break;
}
cout << (a < b && b < c ? "Yes" : "No") << endl;
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 93 |
#include <bits/stdc++.h>
#include <cassert>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ok() puts(ok ? "Yes" : "No");
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using ii = pair<int, int>;
usin... | #include <bits/stdc++.h>
#include <cassert>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ok() puts(ok ? "Yes" : "No");
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using ii = pair<int, int>;
usin... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 241 |
#include <stdio.h>
int main(void) {
int a, b, c;
int k;
int flg = 0;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &k);
for (int i = 0; i < k; i++) {
if (a > b) {
b *= 2;
} else if (b > c) {
c *= 2;
}
}
if (a < b && b < c) {
flg = 1;
}
if (flg == 0) {... | #include <stdio.h>
int main(void) {
int a, b, c;
int k;
int flg = 0;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &k);
for (int i = 0; i < k; i++) {
if (a >= b) {
b *= 2;
} else if (b >= c) {
c *= 2;
}
}
if (a < b && b < c) {
flg = 1;
}
if (flg == 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 | 157 |
a,b,c=map(int,input().split())
k=int(input())
if c>b and b>a:
print("Yes")
else:
while(b<a and k):
b=b*2
k-=1
while(c<b and k):
c=c*2
k-=1
if c>b and b>a:
print("Yes")
else:
print("No")
| a,b,c=map(int,input().split())
k=int(input())
if c>b and b>a:
print("Yes")
else:
while(b<=a and k):
b=b*2
k-=1
while(c<=b and k):
c=c*2
k-=1
if c>b and b>a:
print("Yes")
else:
print("No")
| [["-", 0, 52, 15, 23, 0, 679, 31, 666, 667, 18], ["+", 0, 52, 15, 23, 0, 679, 31, 666, 667, 19]] | 5 | 100 |
A,B,C = map(int,input().split())
K = int(input())
if A<B<C:
print("Yes")
for i in range(K):
if A >= B:
B = B*2
elif B >= C:
C = C*2
if A<B<C:
print("Yes")
exit()
print("No") | A,B,C = map(int,input().split())
K = int(input())
if A<B<C:
print("Yes")
exit()
for i in range(K):
if A >= B:
B = B*2
elif B >= C:
C = C*2
if A<B<C:
print("Yes")
exit()
print("No") | [["+", 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 | 89 |
//#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#define int long long
#define x first
#define y second
#define pb push_back
#define inf 1000000000000000000
#define N 1000000007
#define mp make_pair
#define speed \
ios_base::sync_with_stdio(0); ... | //#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#define int long long
#define x first
#define y second
#define pb push_back
#define inf 1000000000000000000
#define N 1000000007
#define mp make_pair
#define speed \
ios_base::sync_with_stdio(0); ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 220 |
A, B, C = map(int, input().split())
K = int(input())
for k in range(K):
if A < B < C:
print("Yes")
exit()
if A > B:
B *= 2
elif B > C:
C *= 2
if A < B < C:
print("Yes")
exit()
print("No")
| A, B, C = map(int, input().split())
K = int(input())
for k in range(K):
if A < B < C:
print("Yes")
exit()
if A >= B:
B *= 2
elif B >= C:
C *= 2
if A < B < C:
print("Yes")
exit()
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 | 88 |
#include <bits/stdc++.h>
using namespace std;
void __print(int x) { cerr << x; }
void __print(long x) { cerr << x; }
void __print(long long x) { cerr << x; }
void __print(unsigned x) { cerr << x; }
void __print(unsigned long x) { cerr << x; }
void __print(unsigned long long x) { cerr << x; }
void __print(float x) { cer... | #include <bits/stdc++.h>
using namespace std;
void __print(int x) { cerr << x; }
void __print(long x) { cerr << x; }
void __print(long long x) { cerr << x; }
void __print(unsigned x) { cerr << x; }
void __print(unsigned long x) { cerr << x; }
void __print(unsigned long long x) { cerr << x; }
void __print(float x) { cer... | [["-", 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 | 624 |
#define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using ll = long long;
using namespace std;
ll mod = 1e9 + 7;
// ll mod = 998244353;
ll n_po... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using ll = long long;
using namespace std;
ll mod = 1e9 + 7;
// ll mod = 998244353;
ll n_po... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 388 |
package main
import (
"fmt"
)
func solution(a, b, c, k int) string {
for i := 0; i < k; i++ {
if a > b {
b *= 2
} else {
c *= 2
}
}
if b > a && c > b {
return "Yes"
... | package main
import (
"fmt"
)
func solution(a, b, c, k int) string {
for i := 0; i < k; i++ {
if a >= b {
b *= 2
} else {
c *= 2
}
}
if b > a && c > b {
return "Yes"
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]] | 7 | 129 |
import java.util.HashMap;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int A = scanner.nextInt(), B = scanner.nextInt(), C = scanner.nextInt(),
K = scanner.nextInt();
System.out.println(max1(A, B, C, K) ? "Yes" : "No");... | import java.util.HashMap;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int A = scanner.nextInt(), B = scanner.nextInt(), C = scanner.nextInt(),
K = scanner.nextInt();
System.out.println(max1(A, B, C, K) ? "Yes" : "No");
... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 95]] | 3 | 184 |
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <set>
#include <vector>
using namespace std;
#define pb push_back
#define mp make_pair
#define x first
#define y second
typedef long long ll;
const ll INF = 1e9 + 5;
const ll MOD = 1e9 + 7;
int main() {
int a, b, c;
cin >> a... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <set>
#include <vector>
using namespace std;
#define pb push_back
#define mp make_pair
#define x first
#define y second
typedef long long ll;
const ll INF = 1e9 + 5;
const ll MOD = 1e9 + 7;
int main() {
int a, b, c;
cin >> a... | [["-", 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 | 142 |
import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;
public class Main {
private static final StringBuilder builder = new StringBuilder();
public static void main(String[] args) {
int a = readInt(), b = readInt(), c = readInt(), k = readInt();
for (int i = 0; i < k; i++) {
... | import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;
public class Main {
private static final StringBuilder builder = new StringBuilder();
public static void main(String[] args) {
int a = readInt(), b = readInt(), c = readInt(), k = readInt();
for (int i = 0; i < k; i++) {
... | [["-", 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]] | 3 | 551 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
typedef long long ll;
#define endl "\n"
void solve() {
ll a, b, c;
cin >> a >> b >> c;
ll k;
cin >> k;
while (b <= a) {
// cout<<b<<endl;
b *= 2;
k--;
}
while (c <= b) {
c *= 2;
k--;
}
// cout<<k<<endl;
if (k >=... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
typedef long long ll;
#define endl "\n"
void solve() {
ll a, b, c;
cin >> a >> b >> c;
ll k;
cin >> k;
while (b <= a) {
b *= 2;
k--;
}
while (c <= b) {
c *= 2;
k--;
}
if (k >= 0) {
cout << "Yes" << endl;
} els... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 127 |
r, g, b = map(int, input().split())
k = int(input())
for i in range(k):
if r < g < b:
break
else:
if g < r:
g *= 2
elif b < g:
b *= 2
else:
b *= 2
if r < g < b:
print("Yes")
else:
print("No") | r, g, b = map(int, input().split())
k = int(input())
for i in range(k):
if r < g < b:
break
else:
if g <= r:
g *= 2
elif b <= g:
b *= 2
else:
b *= 2
if r < g < b:
print("Yes")
else:
print("No") | [["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 75, 76, 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 | 86 |
import java.math.BigInteger;
import java.util.*;
import java.util.stream.Collectors;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int k = sc.nextInt();
for (int i = 0; i < k... | import java.math.BigInteger;
import java.util.*;
import java.util.stream.Collectors;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int k = sc.nextInt();
for (int i = 0; i <= ... | [["-", 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], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 12, 499], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8... | 3 | 205 |
# A: red, B: green, C: blue
# A < B < C
A, B, C = [ int(v) for v in input().split(" ") ]
K = int(input())
# A < B
for i in range(K):
if A >= B:
B *= 2
K -= 1
else:
break
for i in range(K):
if B >= C:
C *= 2
K -= 1
else:
break
if A < B and B < C and K==0:
print("Yes")
else:
print(... | # A: red, B: green, C: blue
# A < B < C
A, B, C = [ int(v) for v in input().split(" ") ]
K = int(input())
# A < B
for i in range(K):
if A >= B:
B *= 2
K -= 1
else:
break
for i in range(K):
if B >= C:
C *= 2
K -= 1
else:
break
if A < B and B < C:
print("Yes")
else:
print("No")
#p... | [["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 60], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612]] | 5 | 109 |
A,B,C = map(int,input().split())
K = int(input())
for i in range(K+1):
if( i == K ):
break
for j in range(K+1):
if( i + j == K ):
break
for k in range(K+1):
if( i + j + k == K ):
break
if A*(2**i) < B*(2**j) < C*(2**k):
print("Yes")
exit()
print("No") | A,B,C = map(int,input().split())
K = int(input())
for i in range(K+1):
if( i == K+1 ):
break
for j in range(K+1):
if( i + j == K+1 ):
break
for k in range(K+1):
if( i + j + k == K+1 ):
break
if A*(2**i) < B*(2**j) < C*(2**k):
print("Yes")
exit()
print("No... | [["+", 0, 57, 15, 23, 0, 666, 0, 657, 17, 72], ["+", 0, 57, 15, 23, 0, 666, 0, 657, 12, 612]] | 5 | 126 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using uint = unsigned;
using pcc = pair<char, char>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using pdd = pair<double, double>;
using tuplis = array<ll, 3>;
template <class T> using p... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using uint = unsigned;
using pcc = pair<char, char>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using pdd = pair<double, double>;
using tuplis = array<ll, 3>;
template <class T> using p... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 20], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 47]] | 1 | 3,788 |
#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <new>
#include <string>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
#define forloop(i, x, z) for (int i = x; i < z; i++)
using ll = unsigned long long int... | #include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <new>
#include <string>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
#define forloop(i, x, z) for (int i = x; i < z; i++)
using ll = unsigned long long int... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 172 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); ++(i))
const int INF = 1001001001;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
int count = 0;
rep(i, k) {
if (a > b) {
b *= 2;
count++;
}
}
rep(i, k) {
if (b > c) {
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); ++(i))
const int INF = 1001001001;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
int count = 0;
rep(i, k) {
if (a >= b) {
b *= 2;
count++;
}
}
rep(i, k) {
if (b >= c) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 133 |
import java.util.Scanner;
public class Main {
static Scanner stdIn = new Scanner(System.in);
public static void main(String[] args) {
int a = stdIn.nextInt();
int b = stdIn.nextInt();
int c = stdIn.nextInt();
int k = stdIn.nextInt();
for (int i = 0; i < k + 2 - 1; i++) {
for (int j = i +... | import java.util.Scanner;
public class Main {
static Scanner stdIn = new Scanner(System.in);
public static void main(String[] args) {
int a = stdIn.nextInt();
int b = stdIn.nextInt();
int c = stdIn.nextInt();
int k = stdIn.nextInt();
for (int i = 0; i < k + 2 - 1; i++) {
for (int j = i +... | [["-", 12, 16, 12, 16, 12, 492, 3, 4, 0, 22], ["+", 12, 16, 12, 16, 12, 492, 3, 4, 0, 499]] | 3 | 228 |
a, b, c = list(map(int, input().split()))
k = int(input())
while a > b:
b *= 2
k -=1
while b > c:
c *=2
k -=1
if k < 0:
print("No")
else:
print("Yes") | a, b, c = list(map(int, input().split()))
k = int(input())
while a >= b:
b *= 2
k -=1
while b >= c:
c *=2
k -=1
if k < 0:
print("No")
else:
print("Yes")
| [["-", 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 <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define pai 3.1415926535897932384
using namespace std;
using ll = long long;
using P = pair<int, int>;
in... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define pai 3.1415926535897932384
using namespace std;
using ll = long long;
using P = pair<int, int>;
in... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 210 |
[a, b, c] = [int(x) for x in input().split()]
k = int(input())
a_b_flg = False if a >= b else True
b_c_flg = False if b >= c else True
for kdx in range(0, k):
if not a_b_flg:
b = b*2
elif not b_c_flg:
c = c*2
a_b_flg = False if a >= b else True
b_c_flg = False if b >= c else True
if a_b_flgw and b_c_... | [a, b, c] = [int(x) for x in input().split(" ")]
k = int(input())
a_b_flg = False if a >= b else True
b_c_flg = False if b >= c else True
for kdx in range(0, k):
if not a_b_flg:
b = b*2
elif not b_c_flg:
c = c*2
a_b_flg = False if a >= b else True
b_c_flg = False if b >= c else True
if a_b_flg and b_... | [["+", 0, 659, 12, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 659, 12, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 659, 12, 652, 3, 4, 0, 557, 0, 655], ["-", 0, 7, 8, 196, 0, 57, 15, 679, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 679, 31, 22], ["-", 0, 57, 15, 681, 28, 23, 0, 679, 31, 22], ["+", 0, 57, 15, 681, 28, 23, 0, 679, 31, 22]] | 5 | 122 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#in... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#in... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 264 |
// Indrajeet Mishra
/*#pragma warning(disable:4996)
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize ("Ofast")
#pragma GCC target ("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize ("-ffloat-store")*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#def... | // Indrajeet Mishra
/*#pragma warning(disable:4996)
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize ("Ofast")
#pragma GCC target ("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize ("-ffloat-store")*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#def... | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 278 |
A,B,C = map(int,input().split(" "))
K = int(input())
for i in range(K):
if A > B :
B = B*2
if B > C :
C = C*2
if C > B & B > A:
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
if C > B & B > A:
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], ["+", 0, 7, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 76, 0, 102], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 80 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int red = sc.nextInt();
int green = sc.nextInt();
int blue = sc.nextInt();
int k = sc.nextInt();
for (int i = 0; i < k; i++) {
if (red >= green)
green *= 2;... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int red = sc.nextInt();
int green = sc.nextInt();
int blue = sc.nextInt();
int k = sc.nextInt();
for (int i = 0; i < k; i++) {
if (red >= green)
green *= 2;... | [["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 19], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 18], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 18]] | 3 | 141 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
typedef pair<int, int> pii;
signed main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
int temp1 = a / b;
if (temp1 != 0) {
int fac = log2(temp1) + 1;
// cout<<fac<<endl;
b = b * pow(2LL, fac);
k -= fac;
}
int temp2 = b / c;
... | #include <bits/stdc++.h>
using namespace std;
#define int long long
typedef pair<int, int> pii;
signed main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
int temp1 = a / b;
if (temp1 != 0) {
int fac = log2(temp1) + 1;
// cout<<fac<<endl;
b = b * pow(2LL, fac);
k -= fac;
}
int temp2 = b / c;
... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 139 |
A,B,C = map(int, input().split())
K = int(input())
for i in range(K):
if A > B:
B *= 2
else:
C *= 2
if A < B and B < C:
print('Yes')
else:
print('No')
| A,B,C = map(int, input().split())
K = int(input())
for i in range(K):
if A >= B:
B *= 2
else:
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]] | 5 | 70 |
#include <stdio.h>
int main(void) {
int k, i;
int red, blue, green;
char c;
int check = 0;
scanf("%d,%d,%d", &red, &green, &blue);
scanf("%c", &c);
scanf("%d", &k);
for (i = 0; i < k; i++) {
if (green <= red) {
green *= 2;
} else {
// red < green
if (blue <= green) {
... | #include <stdio.h>
int main(void) {
int k, i;
int red, blue, green;
char c;
int check = 0;
scanf("%d %d %d", &red, &green, &blue);
scanf("%c", &c);
scanf("%d", &k);
for (i = 0; i < k; i++) {
if (green <= red) {
green *= 2;
} else {
// red < green
if (blue <= green) {
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 156 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, X;
cin >> A >> B >> C >> X;
while ((A >= B) && !(X == 0)) {
B = B * 2;
X--;
}
while ((B >= C) && !(X == 0)) {
C = C * 2;
X--;
}
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, X;
cin >> A >> B >> C >> X;
while ((A >= B) && !(X == 0)) {
B = B * 2;
X--;
}
while ((B >= C) && !(X == 0)) {
C = C * 2;
X--;
}
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 | 114 |
package main
import (
"bufio"
"fmt"
"math"
"os"
"strconv"
"strings"
)
const (
BUFSIZE = 10000000
MOD = 1000000007
INF_INT = math.MaxInt32
INF_INT64 = math.MaxInt64
)
var rdr *bufio.Reader
func main() {
rdr = bufio.NewReaderSize(os.Stdin, BUFSIZE)
solve()
}
func solve() {
var A, B, C, K int
... | package main
import (
"bufio"
"fmt"
"math"
"os"
"strconv"
"strings"
)
const (
BUFSIZE = 10000000
MOD = 1000000007
INF_INT = math.MaxInt32
INF_INT64 = math.MaxInt64
)
var rdr *bufio.Reader
func main() {
rdr = bufio.NewReaderSize(os.Stdin, BUFSIZE)
solve()
}
func solve() {
var A, B, C, K int
... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 0, 7, 8, 196, 0, 57, 75, 57, 0, 121], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 31, 22], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 47], ["-", 8, 196, 0, 57, 75, 57, 15, 16, 12, 22]] | 7 | 1,140 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
while (b < a && k > 0) {
b *= 2;
k--;
}
while (c < a && k > 0) {
c *= 2;
k--;
}
if (b > a && c > b)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
while (b <= a && k > 0) {
b *= 2;
k--;
}
while (c <= b && k > 0) {
c *= 2;
k--;
}
if (b > a && c > b)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| [["-", 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, 31, 16, 12, 22], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 98 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
typedef tree<pair<int, int>, null_type, less<pair<int, int>>, rb_tree_tag,
tree_order_statistics_node_update>
oset;
#define sim template <class c
#defi... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
typedef tree<pair<int, int>, null_type, less<pair<int, int>>, rb_tree_tag,
tree_order_statistics_node_update>
oset;
#define sim template <class c
#defi... | [["-", 63, 11, 31, 2, 3, 4, 0, 16, 17, 47], ["+", 63, 11, 31, 2, 3, 4, 0, 16, 17, 20], ["-", 28, 11, 31, 2, 3, 4, 0, 16, 17, 47], ["+", 28, 11, 31, 2, 3, 4, 0, 16, 17, 20]] | 1 | 454 |
from sys import stdin
def main():
a, b, c = [int(x) for x in stdin.readline().rstrip().split()]
k = int(input())
n = 0
bb = b
while bb < a:
bb = bb * 2
n += 1
if n > k:
print("No")
return
m = k - n
cc = c
for i in range(m):
cc = cc * 2... | from sys import stdin
def main():
a, b, c = [int(x) for x in stdin.readline().rstrip().split()]
k = int(input())
n = 0
bb = b
while bb <= a:
bb = bb * 2
n += 1
if n > k:
print("No")
return
m = k - n
cc = c
for i in range(m):
cc = cc * ... | [["-", 0, 14, 8, 196, 0, 52, 15, 666, 667, 18], ["+", 0, 14, 8, 196, 0, 52, 15, 666, 667, 19]] | 5 | 126 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, c, k;
cin >> a >> b >> c >> k;
while (b < a && k > 0) {
b *= 2;
k -= 1;
}
while (c < b && k > 0) {
c *= 2;
k -= 1;
}
if (c > b && b > a)
cout << "Yes";
else
cout << "No";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a, b, c, k;
cin >> a >> b >> c >> k;
while (b <= a && k > 0) {
b *= 2;
k -= 1;
}
while (c <= b && k > 0) {
c *= 2;
k -= 1;
}
if (c > b && b > a)
cout << "Yes";
else
cout << "No";
return 0;
}
| [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19]] | 1 | 99 |
a, b, c = map(int, input().split())
k = int(input())
while a > b and k > 0:
b *= 2
k -= 1
while b > c and k > 0:
c *= 2
k -= 1
if a < b < c:
print("Yes")
else:
print("No") | a, b, c = map(int, input().split())
k = int(input())
while a >= b and k > 0:
b *= 2
k -= 1
while b >= c and k > 0:
c *= 2
k -= 1
if a < b < c:
print("Yes")
else:
print("No") | [["-", 0, 656, 0, 52, 15, 679, 31, 666, 667, 47], ["+", 0, 656, 0, 52, 15, 679, 31, 666, 667, 20]] | 5 | 77 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(void) {
// ios_base::sync_with_stdio(false);
// cin.tie(0);
// cout.tie(0);
// freopen("input.txt", "r", stdin);
int a, b, c, k;
cin >> a >> b >> c >> k;
while (b < a && k > 0) {
b *= 2;
k--;
}
while (c ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(void) {
// ios_base::sync_with_stdio(false);
// cin.tie(0);
// cout.tie(0);
// freopen("input.txt", "r", stdin);
int a, b, c, k;
cin >> a >> b >> c >> k;
while (b <= a && k > 0) {
b *= 2;
k--;
}
while (c... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19]] | 1 | 107 |
a, b, c = map(int, input().split())
k = int(input())
for _ in range(k):
if a >= b:
b = b ** 2
elif b >= c:
c = c ** 2
if a < b < c:
print("Yes")
else:
print("No") | a, b, c = map(int, input().split())
k = int(input())
for _ in range(k):
if a >= b:
b = b * 2
elif b >= c:
c = c * 2
if a < b < c:
print("Yes")
else:
print("No") | [["-", 64, 196, 0, 1, 0, 662, 12, 657, 17, 578], ["+", 64, 196, 0, 1, 0, 662, 12, 657, 17, 48]] | 5 | 75 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int64;
typedef vector<int> vec;
typedef vector<int64> vec64;
#define ss cout << " ";
#define nn cout << "\n";
#define ct(x) cout << x;
#define cts(x) cout << x << " ";
#define ctn(x) cout << x << "\n";
#define db(x) cout << "> " << #x << ": " << x << "\n";... | #include <bits/stdc++.h>
using namespace std;
typedef long long int64;
typedef vector<int> vec;
typedef vector<int64> vec64;
#define ss cout << " ";
#define nn cout << "\n";
#define ct(x) cout << x;
#define cts(x) cout << x << " ";
#define ctn(x) cout << x << "\n";
#define db(x) cout << "> " << #x << ": " << x << "\n";... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]] | 1 | 307 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, k;
int ans;
cin >> a >> b >> c >> k;
int count = 0;
while (a >= b) {
b = b * 2;
count = count + 1;
}
while (b >= c) {
c = c * 2;
count = count + 1;
}
if (count < k) {
cout << "Yes" << endl;
} else {
cout <... | #include <iostream>
using namespace std;
int main() {
int a, b, c, k;
// int ans;
cin >> a >> b >> c >> k;
int count = 0;
while (a >= b) {
b = b * 2;
count = count + 1;
}
while (b >= c) {
c = c * 2;
count = count + 1;
}
if (count <= k) {
cout << "Yes" << endl;
} else {
co... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 110 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
if (b == 0 || c == 0) {
cout << "No" << endl;
return 0;
}
while (k--) {
if (b < a) {
b *= 2;
} else {
c *= 2;
}
}
if (c > b && b > a) {
c... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
if (b == 0 || c == 0) {
cout << "No" << endl;
return 0;
}
while (k--) {
if (b <= a) {
b *= 2;
} else {
c *= 2;
}
}
if (c > b && b > a) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 116 |
a, b, c = gets.split.map(&:to_i)
k = gets.to_i
k.times do
if a > b
b *= 2
elsif b > c
c *= 2
end
end
if a < b && b < c
puts 'Yes'
else
puts 'No'
end
| a, b, c = gets.split.map(&:to_i)
k = gets.to_i
k.times do
if a >= b
b *= 2
elsif b >= c
c *= 2
end
end
if a < b && b < c
puts 'Yes'
else
puts 'No'
end
| [["-", 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 | 58 |
import sys
def resolve(in_):
a, b, c = map(int, next(in_).split())
k = int(next(in_))
for _ in range(k):
if a >= b:
b * 2
elif b >= c:
c * 2
else:
break
return 'Yes' if a < b and b < c else 'No'
def main():
answer = resolve(sys.stdin.bu... | import sys
def resolve(in_):
a, b, c = map(int, next(in_).split())
k = int(next(in_))
for _ in range(k):
if a >= b:
b *= 2
elif b >= c:
c *= 2
else:
break
return 'Yes' if a < b and b < c else 'No'
def main():
answer = resolve(sys.stdin.... | [["-", 0, 57, 64, 196, 0, 1, 0, 657, 17, 48], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 17, 108], ["-", 75, 665, 64, 196, 0, 1, 0, 657, 17, 48], ["+", 75, 665, 64, 196, 0, 1, 0, 677, 17, 108]] | 5 | 108 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k, i;
bool ans = false;
cin >> a >> b >> c >> k;
for (i = 0; i < k; i++) {
if (b <= a)
b *= 2;
else if (c <= b && b > a)
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, i;
bool ans = false;
cin >> a >> b >> c >> k;
for (i = 0; i < k; i++) {
if (b <= a)
b *= 2;
else if (c <= b && b > a)
c *= 2;
}
if (a < b && b < c)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 105 |
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
typedef int Int;
typedef pair<Int, Int> pii;
typedef pair<Int, double> pid;
typedef pair<double, double> pdd;
typedef pair<Int, pii> pip;
typedef pair<double, Int> pdp;
typedef vector<Int> veci;
typedef vector<double> ve... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
typedef int Int;
typedef pair<Int, Int> pii;
typedef pair<Int, double> pid;
typedef pair<double, double> pdd;
typedef pair<Int, pii> pip;
typedef pair<double, Int> pdp;
typedef vector<Int> veci;
typedef vector<double> ve... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 590 |
a,b,c = map(int,input().split())
k = int(input())
ans = "No"
for i in range(k):
if a>=b:
b*=2
elif c>=b:
c*=2
if b>a and c>b:
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
elif b>=c:
c*=2
if b>a and c>b:
ans = "Yes"
print(ans) | [["-", 8, 196, 0, 57, 75, 665, 15, 666, 0, 22], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 0, 22]] | 5 | 73 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
// cout << "a = " << a << endl;
while (k && a >= b) {
b <<= 1;
k--;
}
// cout << "b = " << b << endl;
while (k && b >= c) {
c <<= 1;
k--;
}
// cout << "c = " << c << endl;
if ((b > a... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
// cout << "a = " << a << endl;
while (k && a >= b) {
b <<= 1;
k--;
}
// cout << "b = " << b << endl;
while (k && b >= c) {
c <<= 1;
k--;
}
// cout << "c = " << c << endl;
if ((b > a... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 104 |
A, B, C = map(int, input().split())
K = int(input())
for i in range(K + 1):
for j in range(0, K + 1 - i):
b = B * (2 ** i)
c = C * (2 ** i)
if A < b < c:
print("Yes")
quit()
print("No")
| A, B, C = map(int, input().split())
K = int(input())
for i in range(K + 1):
for j in range(0, K + 1 - i):
b = B * (2 ** i)
c = C * (2 ** j)
if A < b < c:
print("Yes")
quit()
print("No")
| [["-", 0, 662, 12, 657, 12, 23, 0, 657, 12, 22], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 12, 22]] | 5 | 90 |
#include <bits/stdc++.h>
#define pb push_back
#define cend(s) return cout << s, 0;
using namespace std;
typedef long long ll;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (a > b && k)
k--, b *= 2;
while (k)
k--, c *= 2;
if (a < b && b < c)
cend("Yes") else cend("No");
} | #include <bits/stdc++.h>
#define pb push_back
#define cend(s) return cout << s, 0;
using namespace std;
typedef long long ll;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (a >= b && k)
k--, b *= 2;
while (k)
k--, c *= 2;
if (a < b && b < c)
cend("Yes") else cend("No");
} | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 20]] | 1 | 96 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll a, b, c, k;
/* 8 4 2 6
16 4 8 16 32
2+4;*/
int main() {
ll i = 0;
cin >> a >> b >> c >> k;
while (a >= b) {
i++;
b = b * 2;
}
while (c <= b) {
i++;
c = c + 2;
}
if (i <= k)
cout << "Yes";
else
cout << "No";
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll a, b, c, k;
/* 8 4 2 6
16 4 8 16 32
2+4;*/
int main() {
ll i = 0;
cin >> a >> b >> c >> k;
while (a >= b) {
i++;
b = b * 2;
}
while (c <= b) {
i++;
c = c * 2;
}
// cout<<a<<" "<<b<<" "<<c<<endl;
if (i <= k)
cout... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48]] | 1 | 96 |
#include "bits/stdc++.h"
#include "math.h"
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef vector<int> vin;
typedef pair<ll, ll> P;
typedef vector<P> vp;
#define rep(i, a, b) for (ll i = (a); i < (b); ++i)
#define dre... | #include "bits/stdc++.h"
#include "math.h"
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef vector<int> vin;
typedef pair<ll, ll> P;
typedef vector<P> vp;
#define rep(i, a, b) for (ll i = (a); i < (b); ++i)
#define dre... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]] | 1 | 340 |
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
int count = 0;
rep(i, k) {
if (b <= a) {
count++;
b *= 2;
} else {... | #include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
int count = 0;
rep(i, 100) {
if (b <= a) {
count++;
b *= 2;
} else... | [["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35]] | 1 | 139 |
#include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
#define ll long... | #include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
#define ll long... | [["-", 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 | 135 |
A,B,C = map(int,input().split())
K = int(input())
for i in range(K):
tmp = min(B,C)
if(B==C):
C *= 2
elif(B==tmp):
B *= 2
else:
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 i in range(K):
tmp = min(B,C)
if(B==C):
C *= 2
elif(2*B >= C):
C *= 2
else:
B *=2
# print(A,B,C)
if A< B and B<C:
print('Yes')
else:
print('No') | [["+", 75, 665, 15, 23, 0, 666, 0, 657, 31, 612], ["+", 75, 665, 15, 23, 0, 666, 0, 657, 17, 48], ["-", 0, 57, 75, 665, 15, 23, 0, 666, 667, 60], ["-", 0, 57, 75, 665, 15, 23, 0, 666, 0, 22], ["+", 0, 57, 75, 665, 15, 23, 0, 666, 667, 20], ["+", 0, 57, 75, 665, 15, 23, 0, 666, 0, 22], ["-", 75, 665, 64, 196, 0, 1, 0, 6... | 5 | 91 |
#include <algorithm>
#include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
bool judge = true;
for (int i = 0; i < k; i++) {
if (a > b) {
b *= 2;
} else if (b > c)
c *= 2;
else
break;
}
if (a ... | #include <algorithm>
#include <iostream>
#include <map>
#include <string>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
bool judge = true;
for (int i = 0; i < k; i++) {
if (a >= b) {
b *= 2;
} else if (b >= c)
c *= 2;
else
break;
}
if (... | [["-", 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 | 113 |
a,b,c = map(int, input().split(' '))
k = int(input())
for _ 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 _ 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') | [["-", 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 | 79 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using P = pair<int, int>;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
bool result = false;
for (int i = 0; i < k; i++) {
for (int j = 0; j < k; j++) {
int tmp_b = b;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using P = pair<int, int>;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
bool result = false;
for (int i = 0; i <= k; i++) {
for (int j = 0; j <= k; j++) {
int tmp_b = b;
... | [["-", 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 | 191 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
int cnt = 0;
while (A > B) {
B *= 2;
cnt++;
if (cnt >= K) {
cout << "No" << endl;
return 0;
}
}
while (B > C) {
C *= 2;
cnt++;
if (cnt >= K) {
cout << "No" <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
int cnt = 0;
while (A >= B) {
B *= 2;
cnt++;
if (cnt > K) {
cout << "No" << endl;
return 0;
}
}
while (B >= C) {
C *= 2;
cnt++;
if (cnt > K) {
cout << "No" <<... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 115 |
#include <bits/stdc++.h>
typedef long long int lli;
using namespace std;
#define MOD 1000000007
#define MAX 5000005
#define endl "\n"
string in;
lli n;
lli md[55][55];
string out;
long long binpow(long long a, long long b) {
long long res = 1;
while (b > 0) {
if (b & 1)
res = res * a;
a = a * a;
b... | #include <bits/stdc++.h>
typedef long long int lli;
using namespace std;
#define MOD 1000000007
#define MAX 5000005
#define endl "\n"
string in;
lli n;
lli md[55][55];
string out;
long long binpow(long long a, long long b) {
long long res = 1;
while (b > 0) {
if (b & 1)
res = res * a;
a = a * a;
b... | [["-", 15, 339, 51, 16, 31, 23, 0, 16, 12, 22], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 12, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 303 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
bool ans;
cin >> a >> b >> c >> k;
for (int i = 0; i < k; i++) {
if (a < b && b < c) {
ans = true;
break;
} else if (a < b && b > c) {
c *= 2;
} else if (a > b && b < c) {
b *= 2;
} else if (a > b... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
bool ans;
cin >> a >> b >> c >> k;
for (int i = 0; i < k; i++) {
if (a < b && b < c) {
ans = true;
break;
} else if (a < b && b >= c) {
c *= 2;
} else if (a >= b && b < c) {
b *= 2;
} else if (a >... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20]] | 1 | 169 |
A, B, C = map(int, input().split())
K = int(input())
while(A>B and K > 0):
B *=2
K -=1
while(B>C and K > 0 ):
C *=2
K -=1
if A<B and B<C:
print("Yes")
else:
print("No") | A, B, C = map(int, input().split())
K = int(input())
while(A>=B and K > 0):
B *=2
K -=1
while(B>=C and K > 0 ):
C *=2
K -=1
if A<B and B<C:
print("Yes")
else:
print("No") | [["-", 0, 52, 15, 23, 0, 679, 31, 666, 667, 47], ["+", 0, 52, 15, 23, 0, 679, 31, 666, 667, 20]] | 5 | 83 |
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int K, i, A, B, C; // red gree bule
scanf("%d %d %d", &A, &B, &C);
scanf("%d", &K);
for (i = 0; i < K; i++) {
if (B > C)
C *= 2;
else if (C < A)
C *= 2;
else if (B < A)
B *= 2;
if (B > A && C > B) {
... | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int K, i, A, B, C; // red gree bule
scanf("%d %d %d", &A, &B, &C);
scanf("%d", &K);
for (i = 0; i < K; i++) {
if (B >= C)
C *= 2;
else if (C <= A)
C *= 2;
else if (B <= A)
B *= 2;
if (B > A && C > B) {
... | [["-", 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, 18], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 130 |
a, b, c = (int(x) for x in input().split())
k = int(input())
ans = 'No'
for i in range(k):
if c < b :
c = c * 2
else :
if b < a :
b = b * 2
# print("A : {0}".format(a))
# print("B : {0}".format(b))
# print("C : {0}".format(c))
if a < b < c :
ans = 'Yes'... |
a, b, c = (int(x) for x in input().split())
k = int(input())
ans = 'No'
for i in range(k):
if c <= b :
c = c * 2
else :
if b <= a :
b = b * 2
# print("A : {0}".format(a))
# print("B : {0}".format(b))
# print("C : {0}".format(c))
if a < b < c :
ans = 'Ye... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 85 |
#include <bits/stdc++.h>
#define rep(x, n) for (int i = x; i < (n); ++i)
using namespace std;
using ll = long long;
int main(void) {
int a, b, c, k;
cin >> a >> b >> c >> k;
bool res = false;
for (int i = 0; i < k; ++i) {
if (a > b) {
b *= 2;
} else if (b > c) {
c *= 2;
}
if (a <... | #include <bits/stdc++.h>
#define rep(x, n) for (int i = x; i < (n); ++i)
using namespace std;
using ll = long long;
int main(void) {
int a, b, c, k;
cin >> a >> b >> c >> k;
bool res = false;
for (int i = 0; i < k; ++i) {
if (a >= b) {
b *= 2;
} else if (b >= c) {
c *= 2;
}
if (a... | [["-", 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 | 122 |
a, b, c = map(int, input().split(' '))
k = int(input())
flag=0
for i in range(0, k+1):
bb = b * (2**i)
j = k-i
cc = c * (2**j)
if (a < bb) and (bb < cc):
print('Yes')
flag=1
if flag==0:
print('No') | a, b, c = map(int, input().split(' '))
k = int(input())
flag=0
for i in range(0, k+1):
bb = b * (2**i)
j = k-i
cc = c * (2**j)
if (a < bb) and (bb < cc):
print('Yes')
flag=1
break
if flag==0:
print('No') | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 100 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define inv(name, Type, size) \
vector<Type> name(size); \
for (int index = 0; index < size; index++) \
c... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define inv(name, Type, size) \
vector<Type> name(size); \
for (int index = 0; index < size; index++) \
c... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 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 | 194 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
string ret = "No";
while (k > 0 && b < a) {
k--;
b *= 2;
}
while (k > 0 && c < b) {
k--;
c *= 2;
}
if (c > b && b > a)
ret = "Yes";
cout << ret << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
string ret = "No";
while (k > 0 && b <= a) {
k--;
b *= 2;
}
while (k > 0 && c <= b) {
k--;
c *= 2;
}
if (c > b && b > a)
ret = "Yes";
cout << ret << endl;
return 0;
} | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 101 |
a,b,c=map(int,input().split())
k=int(input())
s=0
for i in range(4):
if b*(2**i)>a:
s=i
break
b*=2**s
t=0
for i in range(4):
if c*(2**i)>b:
t=i
break
if s+t>k:
print("No")
else:
print("Yes") | a,b,c=map(int,input().split())
k=int(input())
s=0
for i in range(10):
if b*(2**i)>a:
s=i
break
b*=2**s
t=0
for i in range(10):
if c*(2**i)>b:
t=i
break
if s+t>k:
print("No")
else:
print("Yes")
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 104 |
#include <bits/stdc++.h>
using namespace std;
//#include <boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;
#define fio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | #include <bits/stdc++.h>
using namespace std;
//#include <boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;
#define fio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | [["-", 8, 9, 0, 52, 8, 9, 0, 57, 0, 121], ["+", 8, 9, 0, 52, 8, 9, 0, 52, 0, 89], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 355]] | 1 | 1,142 |
a, b, c = gets.chomp.split.map(&:to_i)
k = gets.chomp.to_i
k.times do |i|
if a > b
b = b * 2
next
end
if b > c
c = c * 2
next
end
end
if a < b and b < c
puts "Yes"
else
puts "No"
end | a, b, c = gets.chomp.split.map(&:to_i)
k = gets.chomp.to_i
k.times do |i|
if a >= b
b = b * 2
next
end
if b >= c
c = c * 2
next
end
end
if a < b and b < c
puts "Yes"
else
puts "No"
end | [["-", 196, 737, 8, 736, 0, 121, 15, 738, 17, 47], ["+", 196, 737, 8, 736, 0, 121, 15, 738, 17, 20]] | 4 | 72 |
a,b,c = map(int,input().split())
k=int(input())
for i in range(k):
if c<=a and c<=b:
c=2*c
elif b<=a:
b=2*b
else:
pass
if c > b and b > a and c >a:
print("Yes")
else:
print("No") | a,b,c = map(int,input().split())
k=int(input())
for i in range(k):
if c<=a or c<=b:
c=2*c
elif b<=a:
b=2*b
else:
pass
if c > b and b > a and c >a:
print("Yes")
else:
print("No") | [["-", 0, 7, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 0, 7, 8, 196, 0, 57, 15, 679, 17, 354]] | 5 | 88 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
int k;
cin >> a >> b >> c >> k;
while (k && b <= a) {
b = b * 2;
k--;
}
while (k && c <= b) {
c = c * 2;
k--;
}
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;
int k;
cin >> a >> b >> c >> k;
while (k && b <= a) {
b = b * 2;
k--;
}
while (k && c <= b) {
c = c * 2;
k--;
}
if (a < b && b < c) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 101 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using std::cerr;
using std::cin;
using std::cout;
using std::endl;
#define rep(i, a, b) for (int i = a; i <= b; ++i)
#defin... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using std::cerr;
using std::cin;
using std::cout;
using std::endl;
#define rep(i, a, b) for (int i = a; i <= b; ++i)
#defin... | [["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 174 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (k--) {
if (b < a) {
b = b * 2;
} else if (c < b) {
c = c * 2;
}
}
if (c > b && b > a) {
printf("Yes\n");
} else
printf("No\n");
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (k--) {
if (b <= a) {
b = b * 2;
} else if (c <= b) {
c = c * 2;
}
}
if (c > b && b > a) {
printf("Yes\n");
} else
printf("No\n");
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 96 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
while (K > 0) {
if (A >= B) {
B *= 2;
K--;
}
if (B >= C) {
C *= 2;
K--;
}
if (A < B && B < C)
break;
}
if (A < B && B < C)
cout << "Yes" << endl;
else
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
while (K > 0) {
if (A >= B) {
B *= 2;
K--;
continue;
}
if (B >= C) {
C *= 2;
K--;
continue;
}
if (A < B && B < C)
break;
}
if (A < B && B < C)
c... | [["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35]] | 1 | 111 |
A,B,C = map(int,input().split())
K = int(input())
while K != 0:
if A >= B:
B *= 2
elif B >= C:
C *= 2
K -= 1
if A < B < C:
print("YES")
else:
print("NO") | A,B,C = map(int,input().split())
K = int(input())
while K != 0:
if A >= B:
B *= 2
elif B >= C:
C *= 2
K -= 1
if A < B < C:
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 | 71 |
A,B,C = map(int,input().split())
K = int(input())
count = 0
while count < K:
if C < B:
C = C * 2
count += 1
elif B < A:
B = B * 2
count += 1
else:
count += 1
if C > B and B > A:
print("Yes")
else:
print("No") | A,B,C = map(int,input().split())
K = int(input())
count = 0
while count < K:
if C <= B:
C = C * 2
count += 1
elif B <= A:
B = B * 2
count += 1
else:
count += 1
if C > B and B > A:
print("Yes")
else:
print("No") | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]] | 5 | 88 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll mod = 1e9 + 7;
int main() {
int r, g, b, k;
cin >> r >> g >> b >> k;
int cnt = 0;
while (g <= r) {
g *= 2;
cnt++;
}
while (b <= g) {
b *= 2;
cnt++;
}
if (cnt <= k) {
cout << "yes" << endl;
} else {
cout << ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll mod = 1e9 + 7;
int main() {
int r, g, b, k;
cin >> r >> g >> b >> k;
int cnt = 0;
while (g <= r) {
g *= 2;
cnt++;
}
while (b <= g) {
b *= 2;
cnt++;
}
if (cnt <= k) {
cout << "Yes" << endl;
} else {
cout << ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 108 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (b < a && k > 0) {
b *= 2;
k--;
}
while (c < b && k > 0) {
c *= 2;
k--;
}
if (b > a && c > b) {
cout << "Yes";
} else {
cout << "No";
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (b <= a && k > 0) {
b *= 2;
k--;
}
while (c <= b && k > 0) {
c *= 2;
k--;
}
if (b > a && c > b) {
cout << "Yes";
} else {
cout << "No";
}
return 0;
}
| [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19]] | 1 | 99 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
int k;
cin >> a >> b >> c;
cin >> k;
int count = 0;
for (int i = 0; b <= a; i++) {
b *= 2;
count++;
}
int cou = 0;
for (int i = 0; c <= b; i++) {
c *= 2;
cou++;
}
if ((cou + count) > k) {
cout << "No" <... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
int k;
cin >> a >> b >> c;
cin >> k;
int count = 0;
for (int i = 0; b <= a; i++) {
b *= 2;
count++;
}
int cou = 0;
for (int i = 0; c <= b; i++) {
c *= 2;
cou++;
}
if ((cou + count) > k) {
cout << "No" <... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 131 |
A,B,C = map(int,input().split()) #A赤<B緑<C青,
K = int(input())
while A > B and K >=1:
B *= 2
K -= 1
while B > C and K >= 1:
C *= 2
K -= 1
if A < B and B < C:
print("Yes")
else:
print("No") | A,B,C = map(int,input().split()) #A赤<B緑<C青,
K = int(input())
while A >= B and K >= 1:
B *= 2
K -= 1
while B >= C and K >= 1:
C *= 2
K -= 1
#print(K,C)
if A < B and B < C:
print("Yes")
else:
print("No") | [["-", 0, 656, 0, 52, 15, 679, 31, 666, 667, 47], ["+", 0, 656, 0, 52, 15, 679, 31, 666, 667, 20]] | 5 | 80 |
def countup(a, b):
count = 0
if a < b:
return count
else:
while a > b:
b *= 2
count += 1
return count
A, B, C = map(int, input().split())
K = int(input())
count = countup(A, B)
B_ = B * (2 ** count)
count += countup(B_, C)
if count <= K:
print('Yes')
... | def countup(a, b):
count = 0
if a < b:
return count
else:
while a >= b:
b *= 2
count += 1
return count
A, B, C = map(int, input().split())
K = int(input())
count = countup(A, B)
B_ = B * (2 ** count)
count += countup(B_, C)
if count <= K:
print('Yes')
... | [["-", 75, 76, 8, 196, 0, 52, 15, 666, 667, 47], ["+", 75, 76, 8, 196, 0, 52, 15, 666, 667, 20]] | 5 | 103 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.