buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
def main(): A, B, C = map(int, input().split()) K = int(input()) for k in range(K): if B < A: B *= 2 elif C < B: C *= 2 if A < B and B < C: print('Yes') else: print('No') if __name__ == '__main__': main()
def main(): A, B, C = map(int, input().split()) K = int(input()) for k in range(K): if B <= A: B *= 2 elif C <= B: C *= 2 if A < B and B < C: print('Yes') else: print('No') if __name__ == '__main__': main()
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]]
5
88
#include <bits/stdc++.h> #define rep(i, s, n) for (int i = s; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int a, b, c, k, cnt = 0; cin >> a >> b >> c >> k; while (b < a) { b *= 2; cnt++; } while (c < b) { c *= 2; cnt++; } if (cnt >= k) {...
#include <bits/stdc++.h> #define rep(i, s, n) for (int i = s; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int a, b, c, k, cnt = 0; cin >> a >> b >> c >> k; while (b <= a) { b *= 2; cnt++; } while (c <= b) { c *= 2; cnt++; } if (cnt > k) ...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
118
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 #define FOR(i, N) for (long i = 0; i < (N); i++) int main() { ios::sync_with_stdio(false); cin.tie(0); int A, B, C, K; cin >> A >> B >> C; cin >> K; bool ikeru = false; for (int k = 0; k < K; k++) { if (A > B) { B *= 2; ...
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 #define FOR(i, N) for (long i = 0; i < (N); i++) int main() { ios::sync_with_stdio(false); cin.tie(0); int A, B, C, K; cin >> A >> B >> C; cin >> K; bool ikeru = false; for (int k = 0; k < K; k++) { if (A >= B) { B *= 2; ...
[["-", 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], ["+", 75, 76, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 75, 76, 0, 57, 64, 9, 0, 116, 0, 117]]
1
151
#B a, b, c = map(int, input().split()) K=int(input()) for i in range(K): if a>c: c=2*c elif a>b: b=2*b elif b>c: c=2*c else: c=2*c if a<b and b<c: print('Yes') else: print('No')
#B a, b, c = map(int, input().split()) K=int(input()) for i in range(K): if a>=c: c=2*c elif a>=b: b=2*b elif b>=c: c=2*c else: c=2*c if a<b and b<c: print('Yes') else: print('No')
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]]
5
95
#include <bits/stdc++.h> using namespace std; bool T = false; int main() { int K, A, B, C; cin >> A >> B >> C >> K; for (int i = 0; i < K; i++) { if (A >= B) B *= 2; else if (B >= C) C *= 2; else B *= 2; } if (A < B && B < C) cout << "Yes"; else cout << "No"; }
#include <bits/stdc++.h> using namespace std; bool T = false; int main() { int K, A, B, C; cin >> A >> B >> C >> K; for (int i = 0; i < K; i++) { if (A >= B) B *= 2; else if (B >= C) C *= 2; else break; } if (A < B && B < C) cout << "Yes"; else cout << "No"; }
[["-", 0, 57, 75, 76, 0, 1, 0, 11, 31, 22], ["-", 0, 57, 75, 76, 0, 1, 0, 11, 17, 108], ["-", 0, 57, 75, 76, 0, 1, 0, 11, 12, 13], ["+", 75, 76, 0, 57, 75, 76, 0, 93, 0, 94]]
1
101
// omajinai c++ atcoder #include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdint> #include <cstdio> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <type_traits> #includ...
// omajinai c++ atcoder #include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdint> #include <cstdio> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <type_traits> #includ...
[["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["-", 64, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 75, 76, 0, 57, 75, 76, 0, 9, 0, 46], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
1
184
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define mod 1000000007 using namespace std; using ll = long long; const ll INF = 100000000; int main() { int a, b, c, k; cin >> a >> b >> c >> k; int cnt = 0; while (b < a) { b = b * 2; cnt++; if (cnt >= k) { cout << ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define mod 1000000007 using namespace std; using ll = long long; const ll INF = 100000000; int main() { int a, b, c, k; cin >> a >> b >> c >> k; int cnt = 0; while (b <= a) { b = b * 2; cnt++; if (cnt > k) { cout << ...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
136
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(a) (a).begin(), (a).end() using namespace std; using ll = long long int; using vec = vector<int>; using P = pair<int, int>; const int INF = 1e9 + 7; int main() { int a, b, c; cin >> a >> b >> c; int k; cin >> k; while (k > ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(a) (a).begin(), (a).end() using namespace std; using ll = long long int; using vec = vector<int>; using P = pair<int, int>; const int INF = 1e9 + 7; int main() { int a, b, c; cin >> a >> b >> c; int k; cin >> k; while (k > ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
142
a,b,c=gets.chomp.split(" ").map(&:to_i) k=gets.to_i while a < b && k > 0 do b *= 2 k -= 1 end while b < c && k > 0 do c *= 2 k -= 1 end if a<b && b<c puts "Yes" else puts "No" end
a,b,c=gets.chomp.split(" ").map(&:to_i) k=gets.to_i while a >= b && k > 0 do b *= 2 k -= 1 end while b >= c && k > 0 do c *= 2 k -= 1 end if a<b && b<c puts "Yes" else puts "No" end
[["-", 0, 493, 0, 89, 15, 738, 31, 738, 17, 18], ["+", 0, 493, 0, 89, 15, 738, 31, 738, 17, 20]]
4
77
/* START BY THE NAME OF ALMIGHTY ALLAH THIS WONT BE ACCEPTED STOP_GIVING_UP ██╗███████╗████████╗██╗ █████╗ ██╗ ██╗ ██║██╔════╝╚══██╔══╝██║██╔══██╗██║ ██╔╝ ██║███████╗ ██║ ██║███████║█████╔╝ ██║╚════██║ ██║ ██║██╔══██║██╔═██╗ ██║███████║ ██║ ██║██║ ██║██║ ██╗ ╚═╝╚══════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ *...
/* START BY THE NAME OF ALMIGHTY ALLAH THIS WONT BE ACCEPTED STOP_GIVING_UP ██╗███████╗████████╗██╗ █████╗ ██╗ ██╗ ██║██╔════╝╚══██╔══╝██║██╔══██╗██║ ██╔╝ ██║███████╗ ██║ ██║███████║█████╔╝ ██║╚════██║ ██║ ██║██╔══██║██╔═██╗ ██║███████║ ██║ ██║██║ ██║██║ ██╗ ╚═╝╚══════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ *...
[["-", 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
243
#include <bits/stdc++.h> using namespace std; int main(void) { int a, b, c, k; cin >> a >> b >> c; cin >> k; for (int i = 0; i < k; i++) { if (b < a) b *= 2; else if (c < b) c *= 2; if (a < b && b < c) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main(void) { int a, b, c, k; cin >> a >> b >> c; cin >> k; for (int i = 0; i < k; i++) { if (b <= a) b *= 2; else if (c <= b) c *= 2; if (a < b && b < c) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]]
1
102
#include <algorithm> #include <cmath> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; int K; cin >> K; while (K > 0) { if (A > B) { B *= 2; } else if (A > C) { C *= 2; } else if (B > C) { ...
#include <algorithm> #include <cmath> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; int K; cin >> K; while (K > 0) { if (A >= B) { B *= 2; } else if (A >= C) { C *= 2; } else if (B >= C) {...
[["-", 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
124
#include <bits/stdc++.h> using namespace std; int main() { long long int a, b, c; cin >> a >> b >> c; long long int k; cin >> k; while (b < a && k) { b = b * 2; k--; } while (c < b && k) { c = c * 2; k--; } 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; cin >> a >> b >> c; long long int k; cin >> k; while (b <= a && k) { b = b * 2; k--; } while (c <= b && k) { c = c * 2; k--; } 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
102
a,b,c=list(map(int,input().split())) k=int(input()) while a>b and k>0: k-=1 b*=2 while b>c and k>0: k-=1 c*=2 if c>b and b>a: print('Yes') else: print('No')
a,b,c=list(map(int,input().split())) k=int(input()) while a>=b and k>0: k-=1 b*=2 while b>=c and k>0: k-=1 c*=2 if c>b and b>a: 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
82
#include <algorithm> #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; ++i) #define all(obj) (obj).begin(), (obj).end() using namespace std; typedef long long ll; long long GCD(long long x, long long y) { return y ? GCD(y, x % y) : x; } int main() { int A, B, C; cin >> A >> B >> C; int K; cin >...
#include <algorithm> #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; ++i) #define all(obj) (obj).begin(), (obj).end() using namespace std; typedef long long ll; long long GCD(long long x, long long y) { return y ? GCD(y, x % y) : x; } int main() { int A, B, C; cin >> A >> B >> C; int K; cin >...
[["-", 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
142
A, B, C = map(int, input().split()) K = int(input()) cnt = 0 while B <= A: cnt += 1 B *= 2 while C <= B: cnt += 1 C *= 2 print(cnt) if cnt <= K: print("Yes") else: print("No")
A, B, C = map(int, input().split()) K = int(input()) cnt = 0 while B <= A: cnt += 1 B *= 2 while C <= B: cnt += 1 C *= 2 if cnt <= K: print("Yes") else: print("No")
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
74
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef map<int, int> mii; typedef vector<int> vi; typedef vector<vector<int>> vii; typedef vector<long long> vl; typedef vector<vector<ll>> vll; typedef vector<bool> vb; typ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef map<int, int> mii; typedef vector<int> vi; typedef vector<vector<int>> vii; typedef vector<long long> vl; typedef vector<vector<ll>> vll; typedef vector<bool> vb; typ...
[["-", 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
250
a,b,c = gets.chomp.split(" ").map(&:to_i) k = gets.to_i k.times do if a > b b = b * 2 elsif b > c c = c * 2 end end if a < b && b < c puts "Yes" else puts "No" end
a,b,c = gets.chomp.split(" ").map(&:to_i) k = gets.to_i k.times do if a >= b b = b * 2 elsif b >= c 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
69
#include <bits/stdc++.h> using namespace std; template <typename T> inline T read() { T x = 0, f = 1; char c = getchar(); while (!isdigit(c)) { if (c == '-') f = -f; c = getchar(); } while (isdigit(c)) { x = (x << 3) + (x << 1) + (c - 48); c = getchar(); } return x * f; } #define l...
#include <bits/stdc++.h> using namespace std; template <typename T> inline T read() { T x = 0, f = 1; char c = getchar(); while (!isdigit(c)) { if (c == '-') f = -f; c = getchar(); } while (isdigit(c)) { x = (x << 3) + (x << 1) + (c - 48); c = getchar(); } return x * f; } #define l...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
226
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int k; cin >> k; while (b <= a) { b *= 2; k--; } while (c <= b) { c *= 2; k--; } if (k < 0) { cout << "No" << endl; } else { cout << "True" << endl; } }
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int k; cin >> k; while (b <= a) { b *= 2; k--; } while (c <= b) { c *= 2; k--; } if (k < 0) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
91
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int k; cin >> k; while (k != 0) { if (a > b) { b *= 2; } else { c *= 2; } k--; if (a < b && b < c) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int k; cin >> k; while (k != 0) { if (a >= b) { b *= 2; } else { c *= 2; } k--; if (a < b && b < c) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
95
#include <bits/stdc++.h> #define lld long long #define pb push_back #define mk make_pair #define MAX (lld)1e18 + 7 #define lim (lld)1e9 + 7 #define MAX2 (int)2e5 + 9 #define ff first #define ss second #define fastio \ ios::sync_with_stdio(0); ...
#include <bits/stdc++.h> #define lld long long #define pb push_back #define mk make_pair #define MAX (lld)1e18 + 7 #define lim (lld)1e9 + 7 #define MAX2 (int)2e5 + 9 #define ff first #define ss second #define fastio \ ios::sync_with_stdio(0); ...
[["-", 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
312
#include <bits/stdc++.h> using namespace std; #define endl "\n" #define fo for (int i = 0; i < n; i++) #define clear \ cin.clear(); \ cin.ignore(numeric_limits<streamsize>::max(), '\n'); ...
#include <bits/stdc++.h> using namespace std; #define endl "\n" #define fo for (int i = 0; i < n; i++) #define clear \ cin.clear(); \ cin.ignore(numeric_limits<streamsize>::max(), '\n'); ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
338
// // M-SOLUTIONS 2020 // B // #include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <ctime> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <tuple> #include <vector> using namespace std; #define REP(i, n) for (ll i = ...
// // M-SOLUTIONS 2020 // B // #include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <ctime> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <tuple> #include <vector> using namespace std; #define REP(i, n) for (ll i = ...
[["-", 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
315
//#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++) #define VL vector<ll> #define VS vector<string> int main() { ll A, B, C; cin >> A >> B >> C; ll K; cin >> K; rep(i, 0, K) { if (A > B)...
//#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++) #define VL vector<ll> #define VS vector<string> int main() { ll A, B, C; cin >> A >> B >> C; ll K; cin >> K; rep(i, 0, K) { if (A >= B...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]]
1
122
a,b,c=map(int,input().split()) k=int(input()) while k>0: if a>=b: b*=2 elif b>=c: c*=2 else: break k-=1 if a<b and 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 else: break k-=1 if a<b and 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
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 (b < a) b *= 2; else if (c < b) 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, k; cin >> a >> b >> c >> k; for (int i = 0; i < k; i++) { if (b <= a) b *= 2; else if (c <= b) c *= 2; } if (c > b && b > a) cout << "Yes" << endl; else cout << "No" << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]]
1
95
#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; #define ll long long #define PI acos(-1) #define pb push_back #define ins insert #define INF 5000000000000000007 // 1e18+7 #define mk make_pair #define lb(v, x) ...
#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; #define ll long long #define PI acos(-1) #define pb push_back #define ins insert #define INF 5000000000000000007 // 1e18+7 #define mk make_pair #define lb(v, x) ...
[["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19]]
1
797
#include <iostream> #define ll long long #define pb push_back #define mp make_pair using namespace std; const int MOD = 1000000007; const ll INF = 1LL << 60; int main() { cin.tie(0); ios::sync_with_stdio(false); int a, b, c; cin >> a >> b >> c; int k; cin >> k; if (a < b && b < c) { cout << "Yes\n"; ...
#include <iostream> #define ll long long #define pb push_back #define mp make_pair using namespace std; const int MOD = 1000000007; const ll INF = 1LL << 60; int main() { cin.tie(0); ios::sync_with_stdio(false); int a, b, c; cin >> a >> b >> c; int k; cin >> k; if (a < b && b < c) { cout << "Yes\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
177
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; typedef pair<ll, ll> PL; #define int ll const ll MOD = 1000000007; const ll INF_LL = (ll)1000000007 * 1000000007; const int INF_INT = (int)1000000007; const double PI = 3.14159265358979323846; const int dx[4] = {1, 0, -1, 0...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; typedef pair<ll, ll> PL; #define int ll const ll MOD = 1000000007; const ll INF_LL = (ll)1000000007 * 1000000007; const int INF_INT = (int)1000000007; const double PI = 3.14159265358979323846; const int dx[4] = {1, 0, -1, 0...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]]
1
432
import java.util.Scanner; 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(); int p = 0; for (int i = 0; i < K && p == 0; i++) { if (B < A...
import java.util.Scanner; 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(); int p = 0; for (int i = 0; i < K && p == 0; i++) { if (B <=...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19], ["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 19]]
3
175
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; using G = vector<vector<int>>; int main() { int a, b, c, k; cin >> a >> b >> c >> k; rep(i, k) { if (b < a) b *= 2; else c *= 2; } if (c > b && b >...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; using G = vector<vector<int>>; int main() { int a, b, c, k; cin >> a >> b >> c >> k; rep(i, k) { if (b <= a) b *= 2; else c *= 2; } if (c > b && b ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
119
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; #define all(x) (x).begin(), (x).end() #define dbl(k, x) fixed << setprecision(k) << (x) template <typename _T> inline void _DBG(const char *s, _T x) { cerr << s << " = " << x << "\n"; } template <typename _T, typename... args> void _DBG(const c...
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; #define all(x) (x).begin(), (x).end() #define dbl(k, x) fixed << setprecision(k) << (x) template <typename _T> inline void _DBG(const char *s, _T x) { cerr << s << " = " << x << "\n"; } template <typename _T, typename... args> void _DBG(const c...
[["-", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["-", 0, 52, 8, 9, 0, 1, 0, 27, 17, 68], ["-", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
1
224
a,b,c = map(int,input().split()) k = int(input()) for _ in range(k): if a<b: c = 2*c elif b<a: b = 2*b if a<b<c: print("Yes") exit() print("No")
a,b,c = map(int,input().split()) k = int(input()) for _ in range(k): if a<b and c<=b: c = 2*c elif b<=a: b = 2*b if a<b<c: print("Yes") exit() print("No")
[["+", 0, 7, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 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
76
A,B,C = map(int,input().split()) K = int(input()) for i in range(K): for j in range(K-i): for k in range(K-i-j): if A*(2**i)<B*(2**j) and 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): for j in range(K-i+1): for k in range(K-i-j+1): if A*(2**i)<B*(2**j) and B*(2**j)<C*(2**k): print('Yes') exit() print('No')
[["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
104
#include <bits/stdc++.h> #define ll long long #define pii pair<int, int> using namespace std; const int mxn = 1e5 + 5; const int inf = 1e9; int main() { int a, b, c; cin >> a >> b >> c; int k; cin >> k; if (a > b) { while (k > 0 && a >= b) { k--; b *= 2; } } if (b > c) { while (k >...
#include <bits/stdc++.h> #define ll long long #define pii pair<int, int> using namespace std; const int mxn = 1e5 + 5; const int inf = 1e9; int main() { int a, b, c; cin >> a >> b >> c; int k; cin >> k; if (a >= b) { while (k > 0 && a >= b) { k--; b *= 2; } } if (b >= c) { while (k...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
137
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <functional> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < n; i++) using ll = long long; using namespace std; void solve() {} int ma...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <functional> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < n; i++) using ll = long long; using namespace std; void solve() {} int ma...
[["-", 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
162
#include <bits/stdc++.h> using namespace std; #define ll long long #define int long long #define all(sdk) sdk.begin(), sdk.end() #define mll map<int, int> #define pb push_back #define lb lower_bound #define ub upper_bound #define rep(i, a, b) for (ll i = a; i < b; ++i) #define repd(i, a, b) for (ll i = a; i >= b; --i) ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define int long long #define all(sdk) sdk.begin(), sdk.end() #define mll map<int, int> #define pb push_back #define lb lower_bound #define ub upper_bound #define rep(i, a, b) for (ll i = a; i < b; ++i) #define repd(i, a, b) for (ll i = a; i >= b; --i) ...
[["-", 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
364
A, B, C = map(int, input().split()) K = int(input()) for _ in range(K): if A > B: B = B * 2 continue if B > C: C = C * 2 continue 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 continue if B >= C: C = C * 2 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]]
5
77
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 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 *=2 elif b >= c: c *= 2 if c > b & b > a: print('Yes') else: print('No')
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]]
5
73
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define PI acos(-1) typedef long long ll; ll gcd(ll x, ll y) { if (y == 0) return x; else return gcd(y, x % y); } ll lcm(ll x, ll y) { return x / gcd(x, y) * y; } int main() { int a, b, c, k; cin >> a >> b >> ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define PI acos(-1) typedef long long ll; ll gcd(ll x, ll y) { if (y == 0) return x; else return gcd(y, x % y); } ll lcm(ll x, ll y) { return x / gcd(x, y) * y; } int main() { int a, b, c, k; cin >> a >> b >> ...
[["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46]]
1
162
a, b ,c = map(int, input().split()) k = int(input()) num_a = 0 for i in range(8): if a > b: num_a += 1 b *= 2 else: break num_b = 0 for i in range(8): if b > c: num_b += 1 c *= 2 else: break if num_a + num_b <= k: print("Yes") else: print("No")
import math a, b ,c = map(int, input().split()) k = int(input()) num_a = 0 for i in range(8): if a >= b: num_a += 1 b *= 2 else: break num_b = 0 for i in range(8): if b >= c: num_b += 1 c *= 2 else: break if num_a + num_b <= k: print("Yes") else: ...
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]]
5
97
import sys A,B,C = map(int,input().split()) K = int(input()) for i in range(K): if A > B: B *= 2 elif B > C: C*= 2 #print(A,B,C) if A < B < C: print('Yes') else: print('No')
import sys A,B,C = map(int,input().split()) K = int(input()) for i in range(K): if A >= B: B *= 2 elif B >= C: C *= 2 #print(A,B,C) 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], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]]
5
74
#include <algorithm> #include <iomanip> #include <iostream> #include <math.h> #include <queue> #include <stack> #include <stdlib.h> #include <string> #include <vector> using namespace std; #define PI 3.14159265358979 typedef long long ll; #define rep(i, n) for (int i = 0; i < n; i++) #include <set> int main(void) { i...
#include <algorithm> #include <iomanip> #include <iostream> #include <math.h> #include <queue> #include <stack> #include <stdlib.h> #include <string> #include <vector> using namespace std; #define PI 3.14159265358979 typedef long long ll; #define rep(i, n) for (int i = 0; i < n; i++) #include <set> int main(void) { i...
[["-", 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
136
def solve(A, B, C, K): for k in range(0, K+1): for n in range(0, k+1): if A <= (2**n)*B <= (2**(k-n))*C: return True return False A, B, C = map(int,input().split()) K = int(input()) if solve(A, B, C, K): print('Yes') else: print('No')
def solve(A, B, C, K): for k in range(0, K+1): for n in range(0, k+1): if A < (2**n)*B < (2**(k-n))*C: return True return False A, B, C = map(int,input().split()) K = int(input()) if solve(A, B, C, K): print('Yes') else: print('No')
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18]]
5
115
#include <bits/stdc++.h> using namespace std; int main() { vector<int> vec(3); for (int i = 0; i < 3; i++) { cin >> vec.at(i); } int k; cin >> k; for (int i = 0; i < k; i++) { if (vec.at(0) < vec.at(1) && vec.at(1) < vec.at(2)) { break; } else if (vec.at(0) > vec.at(1)) { vec.at(1) ...
#include <bits/stdc++.h> using namespace std; int main() { vector<int> vec(3); for (int i = 0; i < 3; i++) { cin >> vec.at(i); } int k; cin >> k; for (int i = 0; i < k; i++) { if (vec.at(0) < vec.at(1) && vec.at(1) < vec.at(2)) { break; } else if (vec.at(0) >= vec.at(1)) { vec.at(1)...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]]
1
210
#include <bits/stdc++.h> typedef long long int ll; using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int r, g, b, k; cin >> r >> g >> b >> k; while (k > 0) { if (g <= r) { g = g * 2; k--; } else { b = b * 2; k--; } } if (r >= g || r >= ...
#include <bits/stdc++.h> typedef long long int ll; using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int r, g, b, k; cin >> r >> g >> b; cin >> k; while (k > 0) { if (g <= r) { g = g * 2; k--; } else { b = b * 2; k--; } } if (r >= g |...
[["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
130
a,b,c = map(int,input().split()) k = int(input()) res = True for i in range(k): if b > a: if c > b: break else: c *= 2 elif b < a: b *= 2 res = a < b < c if res: print("Yes") else: print("No")
a,b,c = map(int,input().split()) k = int(input()) res = True for i in range(k): if b > a: if c > b: break else: c *= 2 elif b <= a: b *= 2 res = a < b < c if res: print("Yes") else: print("No")
[["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]]
5
85
a,b,c = map(int,input().split()) K = int(input()) j = K for i in range(K): if b-a>0: break b *=2 if b-a>0: j = K-(i+1) break if b-a<=0: print('No') exit() if j==0: if c-b >0: print('Yes') exit() if c*2*j-b >0: print('Yes') else: print('No')
a,b,c = map(int,input().split()) K = int(input()) j = K for i in range(K): if b-a>0: break b *=2 if b-a>0: j = K-(i+1) break if b-a<=0: print('No') exit() if j==0: if c-b >0: print('Yes') exit() if c*(2**j)-b >0: print('Yes') else: print('No')
[["+", 15, 666, 0, 657, 31, 657, 12, 23, 0, 24], ["-", 0, 57, 15, 666, 0, 657, 31, 657, 17, 48], ["+", 0, 657, 31, 657, 12, 23, 0, 657, 17, 578], ["+", 15, 666, 0, 657, 31, 657, 12, 23, 0, 25]]
5
127
A, B, C = list(map(int,input().split())) K = int(input()) for i in range(K): if A < B < C: print("Yes") exit() elif C < B or C < A: C *= 2 continue elif B < A: B *= 2 continue if A < B < C: print("Yes") exit() else: print("No")
A, B, C = list(map(int,input().split())) K = int(input()) for i in range(K): if A < B < C: print("Yes") exit() elif C <= B or C <= A: C *= 2 continue elif B <= A: B *= 2 continue if A < B < C: print("Yes") exit() else: print("No")
[["-", 0, 57, 75, 665, 15, 679, 31, 666, 667, 18], ["+", 0, 57, 75, 665, 15, 679, 31, 666, 667, 19], ["-", 0, 57, 75, 665, 15, 679, 12, 666, 667, 18], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]]
5
99
#include <cmath> #include <iostream> using namespace std; int main() { int a, b, c, k; cin >> a >> b >> c; cin >> k; int x = 0, y = 0; if (b <= a) { while (b <= a) { b *= 2; x++; } } if (c <= b) { while (c <= b) { c *= 2; y++; } } if (x + y > k) cout << "N...
#include <cmath> #include <iostream> using namespace std; int main() { int a, b, c, k; cin >> a >> b >> c; cin >> k; int x = 0, y = 0; if (b <= a) { while (b <= a) { b *= 2; x++; } } if (c <= b) { while (c <= b) { c *= 2; y++; } } if (x + y > k) cout << "N...
[["-", 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
118
<?php list($a, $b, $c) = sscanf(fgets(STDIN), "%d %d %d"); $magic = (int)fgets(STDIN); while($b < $a && $magic > 0){ $b = $b * 2; $magic--; } while($c < $b && $magic > 0){ $c = $c * 2; $magic--; } if($a < $b && $b < $c){ printf("Yes"); } else{ printf("No"); } ?>
<?php list($a, $b, $c) = sscanf(fgets(STDIN), "%d %d %d"); $magic = (int)fgets(STDIN); while($b <= $a && $magic > 0){ $b = $b * 2; $magic--; } while($c <= $b && $magic > 0){ $c = $c * 2; $magic--; } if($a < $b && $b < $c){ printf("Yes"); } else{ printf("No"); } ?>
[["-", 0, 52, 15, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 23, 0, 16, 31, 16, 17, 19]]
6
124
#include <iostream> using namespace std; int x; int demsolan(int a, int b, int c) { int dem = 0; while (b <= a) { b = b * 2; dem++; } while (c <= b) { c = c * 2; dem++; } if (dem <= x) { cout << "YES"; } else { cout << "NO"; } return 0; } int main() { int a, b, c; cin >> a...
#include <iostream> using namespace std; int x; int demsolan(int a, int b, int c) { int dem = 0; while (b <= a) { b = b * 2; dem++; } while (c <= b) { c = c * 2; dem++; } if (dem <= x) { cout << "Yes"; } else { cout << "No"; } return 0; } int main() { int a, b, c; cin >> a...
[["-", 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
120
numbers = [int(s) for s in input().split()] #0:赤, 1:緑, 2:青 K = int(input()) for i in range(K): if(numbers[2] < numbers[0]): numbers[2] *= 2 elif(numbers[1] < numbers[0]): numbers[1] *= 2 elif(numbers[2] < numbers[1]): numbers[2] *= 2 else: break...
numbers = [int(s) for s in input().split()] #0:赤, 1:緑, 2:青 K = int(input()) for i in range(K): if(numbers[2] <= numbers[0]): numbers[2] *= 2 elif(numbers[1] <= numbers[0]): numbers[1] *= 2 elif(numbers[2] <= numbers[1]): numbers[2] *= 2 else: break if(numbers[1] > numbers...
[["-", 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
132
import sys A,B,C=map(int,input().split()) K=int(input()) for i in range(K): if( A < B and B < C): print('Yes') sys.exit() else: if(i >= K-1): print('No') sys.exit() else: if(A >= B): B *= 2 elif(B >= C): C *= 2 else: pass
import sys A,B,C=map(int,input().split()) K=int(input()) for i in range(K+1): #print(K,A,B,C,i) if( A < B and B < C): print('Yes') sys.exit() else: if(i >= K): print('No') sys.exit() else: if(A >= B): B *= 2 elif(B >= C): C *= 2 else: pass
[["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 57, 15, 23, 0, 666, 0, 657, 17, 33], ["-", 0, 57, 15, 23, 0, 666, 0, 657, 12, 612]]
5
105
#include <iostream> using namespace std; int main() { int card[3]; int kazu; for (int a = 0; a <= 2; a++) { cin >> card[a]; } cin >> kazu; for (int n = 1; n <= kazu; n++) { if (card[0] > card[1]) { card[1] = card[1] * 2; continue; } else if (card[1] > card[2]) { card[2] = card[...
#include <iostream> using namespace std; int main() { int card[3]; int kazu; for (int a = 0; a <= 2; a++) { cin >> card[a]; } cin >> kazu; for (int n = 1; n <= kazu; n++) { if (card[0] >= card[1]) { card[1] = card[1] * 2; continue; } else if (card[1] >= card[2]) { card[2] = car...
[["-", 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
163
#include <bits/stdc++.h> #include <math.h> #define _GLIBCXX_DEBUG using namespace std; int main() { int A, B, C, K; cin >> A >> B >> C >> K; int check = 0; while (A > B) { B *= 2; check++; } if (C * pow(2, K - check) > B) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> #include <math.h> #define _GLIBCXX_DEBUG using namespace std; int main() { int A, B, C, K; cin >> A >> B >> C >> K; int check = 0; while (A >= B) { B *= 2; check++; } if (C * pow(2, K - check) > B) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]]
1
91
N = list(map(int,input().split())) k = int(input()) for i in range(k): if N[1] <= N[0]: N[1] = N[1] * 2 elif N[2] <= N[0]: N[2] = N[2] * 2 if N[1] > N[0] and N[2] > N[0]: print("Yes") else: print("No")
N = list(map(int,input().split())) k = int(input()) for i in range(k): if N[1] <= N[0]: N[1] = N[1] * 2 elif N[2] <= N[1]: N[2] = N[2] * 2 if N[1] > N[0] and N[2] > N[1]: print("Yes") else: print("No")
[["-", 0, 57, 75, 665, 15, 666, 0, 206, 206, 612], ["+", 0, 57, 75, 665, 15, 666, 0, 206, 206, 612], ["-", 0, 57, 15, 679, 12, 666, 0, 206, 206, 612], ["+", 0, 57, 15, 679, 12, 666, 0, 206, 206, 612]]
5
112
#include <bits/stdc++.h> using namespace std; #define ll long long bool isprime(int n) { if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; } int binarySearch(int arr[], int l, int r, int x) { if (r >= l) { int mid = l + (r - l) / 2; i...
#include <bits/stdc++.h> using namespace std; #define ll long long bool isprime(int n) { if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; } int binarySearch(int arr[], int l, int r, int x) { if (r >= l) { int mid = l + (r - l) / 2; i...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]]
1
374
#include <stdio.h> int main(void) { int a, b, c, k, i; scanf("%d %d %d", &a, &b, &c); scanf("%d", &k); for (i = 0; i < k; i++) { if (a >= b) b * 2; else if (b >= c) c = c * 2; } if (a < b && b < c) printf("Yes"); else printf("No"); return 0; }
#include <stdio.h> int main(void) { int a, b, c, k, i; scanf("%d %d %d", &a, &b, &c); scanf("%d", &k); for (i = 0; i < k; i++) { if (a >= b) b *= 2; else if (b >= c) c *= 2; } if (a < b && b < c) printf("Yes"); else printf("No"); return 0; }
[["-", 8, 9, 0, 57, 64, 1, 0, 16, 17, 48], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 108], ["-", 75, 76, 0, 57, 64, 1, 0, 11, 31, 22], ["-", 75, 76, 0, 57, 64, 1, 0, 11, 17, 32], ["-", 0, 57, 64, 1, 0, 11, 12, 16, 17, 48], ["+", 75, 76, 0, 57, 64, 1, 0, 11, 17, 108]]
0
112
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, K; cin >> A >> B >> C >> K; while (B < A) { B *= 2; K--; } while (C < B) { C *= 2; K--; } if (K < 0) { cout << "No"; } else { cout << "Yes"; } }
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, K; cin >> A >> B >> C >> K; while (B <= A) { B *= 2; K--; } while (C <= B) { C *= 2; K--; } if (K < 0) { cout << "No"; } else { cout << "Yes"; } }
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]]
1
84
ins=input() ins=[int(r) for r in ins.split()] A,B,C=ins K=input() K=int(K) ans='No' for i in range(1,K+1): for j in range(1,K-i+1): red=A green=B blue=C if red<green*(2**i) and green*(2**i) <blue*(2**j): ans='Yes' break elif red<green*(2**j) and green*(2**j) < blue*(2**i): ...
ins=input() ins=[int(r) for r in ins.split()] A,B,C=ins K=input() K=int(K) ans='No' for i in range(K): for j in range(K-i+1): red=A green=B blue=C if red<green*(2**i) and green*(2**i) <blue*(2**j): ans='Yes' break elif red<green*(2**j) and green*(2**j) < blue*(2**i): ans='...
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]]
5
149
A,B,C = map(int, input().split()) K = int(input()) D = B E = C i1 = 0 i2 = 0 while(D<=A): D = D*2 i1 +=1 while(E<=D): E = E*2 i2 +=1 if K >= i1+i2+1: print("Yes") else: print("No")
A,B,C = map(int, input().split()) K = int(input()) D = B E = C i1 = 0 i2 = 0 while(D<=A): D = D*2 i1 +=1 while(E<=D): E = E*2 i2 +=1 if K >= i1+i2: print("Yes") else: print("No")
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 72], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612]]
5
91
def chk_result(x, y, z): a = int(x) b = int(y) c = int(z) if (a < b and b < c): return True else: return False s = input().split() intAR = int(s[0]) intBG = int(s[1]) intCB = int(s[2]) s = input().split() intK = int(s[0]) res = False while intK > 0: if (intAR > intBG): ...
def chk_result(x, y, z): a = int(x) b = int(y) c = int(z) if (a < b and b < c): return True else: return False s = input().split() intAR = int(s[0]) intBG = int(s[1]) intCB = int(s[2]) s = input().split() intK = int(s[0]) res = False while intK > 0: if (intAR >= intBG): ...
[["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20], ["-", 0, 57, 75, 665, 15, 23, 0, 666, 667, 47], ["+", 0, 57, 75, 665, 15, 23, 0, 666, 667, 20]]
5
165
function Main(input) { input = input.split("\n"); tmp = input[0].split(" "); var a = parseInt(tmp[0], 10); var b = parseInt(tmp[1], 10); var c = parseInt(tmp[2], 10); var k = input[1]; for (var i = 0; i < k + 1; i++) { if (a > b) { b = b * 2; } else if (b > c) { c = c * 2; } el...
function Main(input) { input = input.split("\n"); tmp = input[0].split(" "); var a = parseInt(tmp[0], 10); var b = parseInt(tmp[1], 10); var c = parseInt(tmp[2], 10); var k = input[1]; for (var i = 0; i < k; i++) { if (a >= b) { b = b * 2; } else if (b >= c) { c = c * 2; } else...
[["-", 0, 7, 15, 1, 0, 16, 12, 16, 17, 72], ["-", 0, 7, 15, 1, 0, 16, 12, 16, 12, 555], ["-", 8, 556, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 556, 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]]
2
186
r, g, b = map(int, input().split()) K = int(input()) while K > 0: if g < r: g *= 2 K -= 1 elif b < g: b *= 2 K -= 1 else: break if g > r and b > g: print("Yes") else: print("No")
r, g, b = map(int, input().split()) K = int(input()) while K > 0: if g <= r: g *= 2 K -= 1 elif b <= g: b *= 2 K -= 1 else: break if g > r and b > g: 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
79
r, g, b = map(int, input().split()) op = int(input()) while op > 0 and g < r: g *= 2 op -= 1 while op > 0 and b < g: b *= 2 op -=1 # print(r,g,b) if r < g < b: print("Yes") else: print("No")
r, g, b = map(int, input().split()) op = int(input()) while op > 0 and g <= r: g *= 2 op -= 1 while op > 0 and b <= g: b *= 2 op -=1 if r < g and g < b: print("Yes") else: print("No")
[["-", 0, 656, 0, 52, 15, 679, 12, 666, 667, 18], ["+", 0, 656, 0, 52, 15, 679, 12, 666, 667, 19], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355]]
5
78
import sys a = list(map(int,input().split())) n = int(input()) for x in range(n): if a[2] < a[1]: a[2] = a[2]*2 elif a[0] > a[1]: a[1] = a[1]*2 if a[0] < a[1] < a[2]: print("Yes") sys.exit() print("No")
import sys a = list(map(int,input().split())) n = int(input()) for x in range(n): if a[2] <= a[1]: a[2] = a[2]*2 elif a[0] >= a[1]: a[1] = a[1]*2 if a[0] < a[1] < a[2]: print("Yes") sys.exit() print("No")
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]]
5
112
/**************************** ///// Shubham Singhal ///// LNMIIT *****************************/ #include <bits/stdc++.h> // #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> // #include <functional> // using namespace __gnu_pbds; #define ff first #define ss second #define mp make_pair #...
/**************************** ///// Shubham Singhal ///// LNMIIT *****************************/ #include <bits/stdc++.h> // #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> // #include <functional> // using namespace __gnu_pbds; #define ff first #define ss second #define mp make_pair #...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
610
#include <math.h> #include <stdio.h> int main(void) { int a, b, c, k, s; if (!scanf("%d %d %d", &a, &b, &c)) { return 0; } if (!scanf("%d", &k)) { return 0; } for (int l = 0; l <= k; l++) { for (int m = 0; m <= k; m++) { for (int n = 0; n <= k; n++) { if (l + m + n != 7) ...
#include <math.h> #include <stdio.h> int main(void) { int a, b, c, k, s; if (!scanf("%d %d %d", &a, &b, &c)) { return 0; } if (!scanf("%d", &k)) { return 0; } for (int l = 0; l <= k; l++) { for (int m = 0; m <= k; m++) { for (int n = 0; n <= k; n++) { if (l + m + n != k) ...
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 22]]
0
199
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) int main() { int A, B, C, K; cin >> A >> B >> C >> K; while (A >= B) { B = B * B; K--; if (B > A && K >= 0) { break; } else if (K < 0) { break; } } while (B >= C) { C = C ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) int main() { int A, B, C, K; cin >> A >> B >> C >> K; while (A >= B) { B = 2 * B; K--; if (B > A && K >= 0) { break; } else if (K < 0) { break; } } while (B >= C) { C = 2 ...
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13]]
1
158
#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 = b * 2; k--; } while (k && b >= c) { c = c * 2; k--; } if (a < b && b < c) { cout << "Yes" << "\n"; } else { cout << "No" << "\...
#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 = b * 2; k--; } while (k && b >= c) { c = c * 2; k--; } if (a < b && b < c) { cout << "Yes" << "\n"; } else { cout << "No" << "...
[["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19]]
1
108
#include <math.h> #include <stdio.h> int main(void) { int A, B, C, K, flag = 0, i = 0, j = 0, k = 0; scanf("%d %d %d", &A, &B, &C); scanf("%d", &K); for (i = 0; i <= K; i++) { for (j = 0; j <= K - i; j++) { for (k = 0; k <= K - (i + j); k++) { if (A * pow(2, i) < B * pow(2, i) && B * pow(2,...
#include <math.h> #include <stdio.h> int main(void) { int A, B, C, K, flag = 0, i = 0, j = 0, k = 0; scanf("%d %d %d", &A, &B, &C); scanf("%d", &K); for (i = 0; i <= K; i++) { for (j = 0; j <= K - i; j++) { for (k = 0; k <= K - (i + j); k++) { if (A * pow(2, i) < B * pow(2, j) && B * pow(2,...
[["-", 31, 16, 12, 16, 12, 2, 3, 4, 0, 22], ["+", 31, 16, 12, 16, 12, 2, 3, 4, 0, 22], ["-", 12, 16, 31, 16, 12, 2, 3, 4, 0, 22], ["+", 12, 16, 31, 16, 12, 2, 3, 4, 0, 22], ["-", 12, 16, 12, 16, 12, 2, 3, 4, 0, 22], ["+", 12, 16, 12, 16, 12, 2, 3, 4, 0, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
208
R,G,B = map(int,input().split()) K = int(input()) for i in range(K): if G < R: G *= 2 elif B <= G: B *= 2 # print('Green: ' + str(G) + ' blue:' + str(B)) if R < G and G < B: print('Yes') else: print('No')
R,G,B = map(int,input().split()) K = int(input()) for i in range(K): if G <= R: G *= 2 elif B <= G: B *= 2 # print('Green: ' + str(G) + ' blue:' + str(B)) if R < G and G < B: 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
74
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int a, b, c, k, p = 0; cin >> a >> b >> c >> k; if (c > a && c > b && b > a) cout << "yes"; else { while (b <= a) { b *= 2; p++; } while (c <= b) { c *= 2; p++; } if (p <= k && c > b ...
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int a, b, c, k, p = 0; cin >> a >> b >> c >> k; if (c > a && c > b && b > a) cout << "Yes"; else { while (b <= a) { b *= 2; p++; } while (c <= b) { c *= 2; p++; } if (p <= k && c > b ...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]]
1
124
a,b,c = map(int,input().split()) k = int(input()) i = 1 if c>b>a: print("Yes") if b<=a: if b*2**k<=a: print("No") else: while True: if b*2**i>a: break else: i+=1 b = b*2**i i = k-i if c*2**i<=b: print...
a,b,c = map(int,input().split()) k = int(input()) i = 1 if c>b>a: print("Yes") elif b<=a: if b*2**k<=a: print("No") else: while True: if b*2**i>a: break else: i+=1 b = b*2**i i = k-i if c*2**i<=b: pri...
[["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]]
5
145
<?php $card = trim(fgets(STDIN)); $cards = explode(" ",$card); $number = trim(fgets(STDIN)); for($i = 0; $i < $number; $i++){ if($cards[0] > $cards[1]){ $cards[1] += $cards[1]; }elseif ($cards[1] > $cards[2]) { $cards[2] += $cards[2]; } } if($cards[0] < $cards[1] && $cards[1] < $cards[2]){ ...
<?php $card = trim(fgets(STDIN)); $cards = explode(" ",$card); $number = trim(fgets(STDIN)); for($i = 0; $i < $number; $i++){ if($cards[0] >= $cards[1]){ $cards[1] += $cards[1]; }elseif ($cards[1] >= $cards[2]) { $cards[2] += $cards[2]; } } if($cards[0] < $cards[1] && $cards[1] < $cards[2]){...
[["-", 0, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 0, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["-", 0, 57, 75, 625, 15, 23, 0, 16, 17, 47], ["+", 0, 57, 75, 625, 15, 23, 0, 16, 17, 20]]
6
153
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 1; i < (int)(n); i++) int64_t MOD = 1000000007; int main() { int a, b, c, k; cin >> a >> b >> c >> k; for (int i = 0; i < k; i++) { if (b < a) b *= 2; else if (c <= b) c *= 2; } // cout << a<< "-"<<b<< "-" <<c<...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 1; i < (int)(n); i++) int64_t MOD = 1000000007; int main() { int a, b, c, k; cin >> a >> b >> c >> k; for (int i = 0; i < k; i++) { if (b <= a) b *= 2; else if (c <= b) c *= 2; } // cout << a<< "-"<<b<< "-" <<c...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
109
a,b,c = map(int, input().split()) k = int(input()) count = 0 while count < k: if a<b and b<c: print('Yes') exit() elif a >= b: b *= 2 count += 1 elif b >= c: c *= 2 count += 1 print(count) if a<b and b<c: print('Yes') else: print('No')
a,b,c = map(int, input().split()) k = int(input()) count = 0 while count < k: if a<b and b<c: print('Yes') exit() elif a >= b: b *= 2 count += 1 elif b >= c: c *= 2 count += 1 if a<b and b<c: print('Yes') else: print('No')
[["-", 0, 52, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
101
#include <iostream> using namespace std; int main() { int a, b, c; int k; cin >> a >> b >> c; cin >> k; int x = k; if (b > a && c > b) { cout << "Yes"; return 0; } for (int i = 0; i < x; i++) c = c * 2; if (b > a && c > b) { cout << "Yes"; return 0; } while (k--) { b = b * ...
#include <iostream> using namespace std; int main() { int a, b, c; int k; cin >> a >> b >> c; cin >> k; int x = k; if (b > a && c > b) { cout << "Yes"; return 0; } for (int i = 0; i < x; i++) c = c * 2; if (b > a && c > b) { cout << "Yes"; return 0; } // cout<<a<<" " << b << " ...
[["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]]
1
150
#include <bits/stdc++.h> #define rep(i, n) for (long long i = 0; i < (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; rep(i, k) { if (b > c) { c = c * 2; break; } else if (a > b) { b = b * 2; brea...
#include <bits/stdc++.h> #define rep(i, n) for (long long i = 0; i < (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; rep(i, k) { if (b >= c) { c = c * 2; } else if (a >= b) { b = b * 2; } } if ((a <...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 75, 76, 0, 57, 64, 9, 0, 1, 0, 35], ["-", 75, 76...
1
134
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef vector<int> vi; typedef vector<ll> vl; typedef vector<pii> vii; typedef vector<vi> vvi; typedef vector<pll> vll; typedef vector<vl> vvl; #define fori(i, n) for (in...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef vector<int> vi; typedef vector<ll> vl; typedef vector<pii> vii; typedef vector<vi> vvi; typedef vector<pll> vll; typedef vector<vl> vvl; #define fori(i, n) for (in...
[["+", 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
337
""" AtCoder :: M-Solutions Programming Contest 2020 :: Magic 2 https://atcoder.jp/contests/m-solutions2020/tasks/m_solutions2020_b """ import sys def solve(red, green, blue, K): """Solve puzzle.""" # The integer on the green card is strictly greater than the integer on the red card. # The integer on the b...
""" AtCoder :: M-Solutions Programming Contest 2020 :: Magic 2 https://atcoder.jp/contests/m-solutions2020/tasks/m_solutions2020_b """ import sys def solve(red, green, blue, K): """Solve puzzle.""" # The integer on the green card is strictly greater than the integer on the red card. # The integer on the b...
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]]
5
144
a,b,c = map(int,input().split()) k = int(input()) count = 0 while a > b: b *= 2 count += 1 while b > c: c *= 2 count += 1 if a < b < c and k-count<= 0: print("Yes") else: print("No")
a,b,c = map(int,input().split()) k = int(input()) count = 0 while a >= b: b *= 2 count += 1 while b >= c: c *= 2 count += 1 if a < b < c and k-count>= 0: 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], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 20]]
5
78
i = list(map(int, input().split())) K = int(input()) red=i[0] green=i[1] blue=i[2] success=0 for num in range(K): if green < red: green = green*2 elif blue < green: blue = blue*2 if (blue > green and green > red): print("Yes") else: print("No")
i = list(map(int, input().split())) K = int(input()) red=i[0] green=i[1] blue=i[2] success=0 for num in range(K): if green <= red: green = green*2 elif blue <= green: blue = blue*2 if (blue > green and green > red): print("Yes") else: print("No")
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]]
5
99
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, K; cin >> A >> B >> C >> K; int count = 0; for (int i = 0; i < K; i++) { if (A >= B) { B *= 2; count++; } } for (int i = 0; i < K - count; i++) { if (B >= C) { C *= 2; } } if (A < B && B < C) { ...
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, K; cin >> A >> B >> C >> K; int count = 0; for (int i = 0; i < K; i++) { if (A >= B) { B *= 2; count++; } } for (int i = 0; i < K - count; i++) { if (B >= C) { C *= 2; } } if (A < B && B < C) { ...
[["-", 0, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
126
#include <bits/stdc++.h> using namespace std; #define ll long long int f[366], m[366], sum; ll checkbit(ll n, ll k) { return (n & (1LL << k)); } bool comp(string a, string b) { if (a.size() >= b.size()) return false; else return true; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cou...
#include <bits/stdc++.h> using namespace std; #define ll long long int f[366], m[366], sum; ll checkbit(ll n, ll k) { return (n & (1LL << k)); } bool comp(string a, string b) { if (a.size() >= b.size()) return false; else return true; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cou...
[["-", 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
217
A,B,C = map(int,input().split()) K = int(input()) for i in range(K): if C<B: C*=2 elif B<A and C>B: B*=2 if B>A and C>B: print("Yes") else: print("No")
A,B,C = map(int,input().split()) K = int(input()) for i in range(K): if C<=B: C*=2 elif B<=A and C>B: B*=2 if B>A and C>B: 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], ["-", 0, 57, 75, 665, 15, 679, 31, 666, 667, 18], ["+", 0, 57, 75, 665, 15, 679, 31, 666, 667, 19]]
5
77
#include <bits/stdc++.h> using namespace std; const string YES = "Yes"; const string NO = "No"; void solve(long long A, long long B, long long C, long long K) { for (long long i = 0; i < K; i++) { for (long long j = 0; j < K; j++) { for (long long k = 0; k < K; k++) { if ((i + j + k) <= K && (A * ...
#include <bits/stdc++.h> using namespace std; const string YES = "Yes"; const string NO = "No"; void solve(long long A, long long B, long long C, long long K) { for (long long i = 0; i <= K; i++) { for (long long j = 0; j <= K; j++) { for (long long k = 0; k <= K; k++) { if ((i + j + k) <= K && (A...
[["-", 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
245
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int k; cin >> k; while (k--) { if (b < c && a < b) { c = c * 2; } else if (b >= c) { c = c * 2; } else if (b <= a) { b = b * 2; } } if (c > b && b > a) { cout << "YES" << endl;...
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int k; cin >> k; while (k--) { if (b < c && b > a) { c = c * 2; } else if (b >= c) { c = c * 2; } else if (b <= a) { b = b * 2; } } if (c > b && b > a) { cout << "Yes" << endl;...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
120
#include <iostream> using namespace std; int main(void) { int a, b, c, k; cin >> a >> b >> c; cin >> k; for (int i = 0; i < k; i++) { if (b > c) c *= 2; else if (a > b) b *= 2; if (a < b && b < c) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
#include <iostream> using namespace std; int main(void) { int a, b, c, k; cin >> a >> b >> c; cin >> k; for (int i = 1; i <= k; i++) { if (b >= c) c *= 2; else if (a >= b) b *= 2; if (a < b && b < c) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; }
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 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...
1
102
A, B, C = input().split() A, B, C = [int(A), int(B), int(C)] K = int(input()) for i in range(K): if(B > C or A > C): C = C * 2 elif(A > B): B = B * 2 else: C = C * 2 if(C > B > A): print("Yes") else: print("No")
A, B, C = input().split() A, B, C = [int(A), int(B), int(C)] K = int(input()) for i in range(K): if(B >= C or A >= C): C = C * 2 elif(A >= B): B = B * 2 else: C = C * 2 if(C > B > A): print("Yes") else: print("No")
[["-", 0, 57, 15, 23, 0, 679, 31, 666, 667, 47], ["+", 0, 57, 15, 23, 0, 679, 31, 666, 667, 20], ["-", 0, 57, 15, 23, 0, 679, 12, 666, 667, 47], ["+", 0, 57, 15, 23, 0, 679, 12, 666, 667, 20], ["-", 0, 57, 75, 665, 15, 23, 0, 666, 667, 47], ["+", 0, 57, 75, 665, 15, 23, 0, 666, 667, 20]]
5
109
R,G,B=map(int,input().split()) K = int(input()) while (B<=G or G<=R) and K>0: if R>=G: G = G*2 K = K-1 if G>=B: B = B*2 K = K-1 if R<G and G<B: print("Yes") else: print('No')
R,G,B=map(int,input().split()) K = int(input()) while (B<=G or G<=R) and K>0: if R>=G: G = G*2 K = K-1 if G>=B: B = B*2 K = K-1 if R<G and G<B and K>=0: print("Yes") else: print('No')
[["+", 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, 20], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612]]
5
94
a,b,c = map(int,input().split()) k = int(input()) i = 0 for i in range(k): if(b>c): c = c*2 elif(a>b): b = b*2 else: break if(a<b<c): print('Yes') else: print('No')
a,b,c = map(int,input().split()) k = int(input()) for i in range(k): if(b>=c): c = c*2 elif(a>=b): b = b*2 else: break if(a<b<c): print('Yes') else: print('No')
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20], ["-", 0, 57, 75, 665, 15, 23, 0, 666, 667, 47], ["+", 0, 57, 75, 665, 15, 23, 0, 666, 667,...
5
87
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, c) for (long long i = 0; i < (long long)c; i++) const ll INF = 1000000000000001; int main() { int a, b, c, k; string ans; cin >> a >> b >> c; cin >> k; for (int i = 1; i <= k; i++) { if (b < a) b *= 2; else if (c ...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, c) for (long long i = 0; i < (long long)c; i++) const ll INF = 1000000000000001; int main() { int a, b, c, k; string ans; cin >> a >> b >> c; cin >> k; for (int i = 1; i <= k; i++) { if (b <= a) b *= 2; else if (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
136
a,b,c = map(int, input().split()) k=int(input()) if (a < b and b < c): print("Yes") exit() else: for i in range(k): if (a > b): b *= 2 elif (b > c): c *= 2 elif (a > c): c *= 2 if (a < b and b < c): print("Yes") else: print("No")
a,b,c = map(int, input().split()) k=int(input()) if (a < b and b < c): print("Yes") exit() else: for i in range(k): if (a >= b): b *= 2 elif (b >= c): c *= 2 elif (a >= c): c *= 2 if (a < b and b < c): print("Yes") else: print("No")
[["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20], ["-", 0, 57, 75, 665, 15, 23, 0, 666, 667, 47], ["+", 0, 57, 75, 665, 15, 23, 0, 666, 667, 20]]
5
111
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> using ll = long long; using namespace std; constexpr int MOD = 1e9 + 7; constexpr ll ...
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <utility> #include <vector> using ll = long long; using namespace std; constexpr int MOD = 1e9 + 7; constexpr ll ...
[["-", 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
175
#include <iostream> 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 *= b; else if (b >= c) c *= c; } 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 >> 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"; else cout << "No"; }
[["-", 8, 9, 0, 57, 64, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 12, 13], ["-", 75, 76, 0, 57, 64, 1, 0, 11, 12, 22], ["+", 75, 76, 0, 57, 64, 1, 0, 11, 12, 13]]
1
91
import java.util.Scanner; public class Main { public static Scanner scan = new Scanner(System.in); public static void main(String[] args) { int a = nextInt(); int b = nextInt(); int c = nextInt(); int[] arr = {a, b, c}; int k = nextInt(); int aa = 0; int bb = 0; int cc = 0; for...
import java.util.Scanner; public class Main { public static Scanner scan = new Scanner(System.in); public static void main(String[] args) { int a = nextInt(); int b = nextInt(); int c = nextInt(); int[] arr = {a, b, c}; int k = nextInt(); int aa = 0; int bb = 0; int cc = 0; for...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 12, 499], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 12, 22]]
3
553
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int k = sc.nextInt(); String ans = "No"; for (int i = 0; i <= k; i++) { int B = b; for (int ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int k = sc.nextInt(); String ans = "No"; for (int i = 0; i <= k; i++) { int B = b; for (int ...
[["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 491], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 491]]
3
193