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 |
|---|---|---|---|---|
// Created by Aminul on 7/25/2020.
import static java.lang.Math.*;
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner in = new Scanner(System.in);
PrintWriter pw = new PrintWriter(System.out);
int x = in.nextInt();
for (int i ... | // Created by Aminul on 7/25/2020.
import static java.lang.Math.*;
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner in = new Scanner(System.in);
PrintWriter pw = new PrintWriter(System.out);
int x = in.nextInt();
for (int i ... | [["-", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72], ["-", 0, 492, 3, 4, 0, 16, 12, 5, 0, 62], ["-", 0, 492, 3, 4, 0, 16, 12, 5, 0, 491]] | 3 | 150 |
#include <bits/stdc++.h>
using namespace std;
using UL = unsigned int;
using ULL = unsigned long long;
using LL = long long;
#define rep(i, n) for (UL i = 0; i < (n); i++)
int main() {
int r;
cin >> r;
r = 2000 - r;
r = r / 200;
r += 1;
cout << r << endl;
}
| #include <bits/stdc++.h>
using namespace std;
using UL = unsigned int;
using ULL = unsigned long long;
using LL = long long;
#define rep(i, n) for (UL i = 0; i < (n); i++)
int main() {
int r;
cin >> r;
r = 1999 - r;
r = r / 200;
r += 1;
cout << r << endl;
}
| [["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13]] | 1 | 68 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
typedef pair<int, int> P;
struct edge {
int to, id;
};
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define mod 1000000007
using graph = vector<vector<ll>>;
int main() {
int x;
int ans = 10 - x / 200;
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
typedef pair<int, int> P;
struct edge {
int to, id;
};
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define mod 1000000007
using graph = vector<vector<ll>>;
int main() {
int x;
cin >> x;
int ans = 10 - x / 200;
cout << ans << endl;... | [["+", 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 | 77 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
System.out.println(8 - (N - 400) / 2);
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
System.out.println(8 - (N - 400) / 200);
}
} | [["-", 0, 492, 3, 4, 0, 16, 12, 16, 12, 499], ["+", 0, 492, 3, 4, 0, 16, 12, 16, 12, 499]] | 3 | 61 |
#include <bits/stdc++.h>
#include <deque>
#include <stdio.h>
#include <string>
#include <vector>
#define ll long long
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#include <set>
#define ws " "
#define nl "\n"
#define tc ... | #include <bits/stdc++.h>
#include <deque>
#include <stdio.h>
#include <string>
#include <vector>
#define ll long long
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#include <set>
#define ws " "
#define nl "\n"
#define tc ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 986 |
package main
import (
"fmt"
)
func main() {
var a int
fmt.Scan(&a)
if a >= 400 && a < 600 {
fmt.Println(8)
} else if a >= 600 && a < 800 {
fmt.Println(7)
} else if a >= 800 && a < 1000 {
fmt.Println(6)
} else if a >= 1000 && a < 1200 {
fmt.Println(5)
} else if a >= 1200 && a < 1400 {
fmt.Println(4... | package main
import (
"fmt"
)
func main() {
var a int
fmt.Scan(&a)
if a >= 400 && a < 600 {
fmt.Println(8)
} else if a >= 600 && a < 800 {
fmt.Println(7)
} else if a >= 800 && a < 1000 {
fmt.Println(6)
} else if a >= 1000 && a < 1200 {
fmt.Println(5)
} else if a >= 1200 && a < 1400 {
fmt.Println(4... | [["-", 75, 57, 75, 57, 15, 16, 31, 16, 12, 433], ["+", 75, 57, 75, 57, 15, 16, 31, 16, 12, 433]] | 7 | 174 |
X=int(input())
if 400<=X<=599:
print('8')
elif 600<=X<=799:
print('7')
elif 800<=X<=999:
print('6')
elif 1000<=X<=1199:
print('5')
elif 1200<=X<=1399:
print('4')
elif 1400<=X<=1599:
print('3')
elif 1600<=X<1799:
print('2')
else:
print('1') | X=int(input())
if 400<=X<=599:
print('8')
elif 600<=X<=799:
print('7')
elif 800<=X<=999:
print('6')
elif 1000<=X<=1199:
print('5')
elif 1200<=X<=1399:
print('4')
elif 1400<=X<=1599:
print('3')
elif 1600<=X<=1799:
print('2')
else:
print('1') | [["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 19]] | 5 | 107 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 1e18;
const ll MOD = 1000000007;
const ll MX = 0; //最大値
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define ALL(x) (x).begin(), (x).end()
#define MAX(x) *max_element(ALL(x))
#define PB push_back
#define F first
#define S second
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 1e18;
const ll MOD = 1000000007;
const ll MX = 0; //最大値
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define ALL(x) (x).begin(), (x).end()
#define MAX(x) *max_element(ALL(x))
#define PB push_back
#define F first
#define S second
... | [["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13]] | 1 | 179 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X;
cin >> X;
int j = 8;
for (int i = 600; i < 2000; i = i + 200) {
if (X < i) {
cout << j << endl;
return 0;
}
j--;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X;
cin >> X;
int j = 8;
for (int i = 600; i <= 2000; i = i + 200) {
if (X < i) {
cout << j << endl;
return 0;
}
j--;
}
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 63 |
#include <bits/stdc++.h>
using namespace std;
#define int long long int
#define endl "\n"
#define rep(i, n) for (int i = 0; i < n; i++)
#define repd(i, n) for (int i = n - 1; i >= 0; i--)
#define fo(i, a, b) for (int i = a; i < b; i++)
#define fod(i, a, b) for (int i = a; i >= b; i--)
#define umap unordered_map<int, i... | #include <bits/stdc++.h>
using namespace std;
#define int long long int
#define endl "\n"
#define rep(i, n) for (int i = 0; i < n; i++)
#define repd(i, n) for (int i = n - 1; i >= 0; i--)
#define fo(i, a, b) for (int i = a; i < b; i++)
#define fod(i, a, b) for (int i = a; i >= b; i--)
#define umap unordered_map<int, i... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 664 |
#include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int n;
string s;
cin >> n;
if (n >= 400 && n < 600)
cout << 8 << endl;
else if (n >= ... | #include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int n;
string s;
cin >> n;
if (n >= 400 && n < 600)
cout << 8 << endl;
else if (n >= ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 183 |
#include <stdio.h>
int main(void) {
int i;
scanf("%d", i);
if (i < 600)
printf("8");
else if (i < 800)
printf("7");
else if (i < 1000)
printf("6");
else if (i < 1200)
printf("5");
else if (i < 1400)
printf("4");
else if (i < 1600)
printf("3");
else if (i < 1800)
printf("2... | #include <stdio.h>
int main(void) {
int i;
scanf("%d", &i);
if (i < 600)
printf("8");
else if (i < 800)
printf("7");
else if (i < 1000)
printf("6");
else if (i < 1200)
printf("5");
else if (i < 1400)
printf("4");
else if (i < 1600)
printf("3");
else if (i < 1800)
printf("... | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 137 |
def main():
X = int(input())
lst = [i * 200 + 400 for i in range(8)]
lst.reverse()
print(lst)
for i, l in enumerate(lst):
if X >= l:
print(i+1)
break
if __name__ == '__main__':
main() | def main():
X = int(input())
lst = [i * 200 + 400 for i in range(8)]
lst.reverse()
for i, l in enumerate(lst):
if X >= l:
print(i+1)
break
if __name__ == '__main__':
main() | [["-", 0, 14, 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 | 70 |
X = int(input())
if 400 <= X and X < 599:
print(8)
elif X <= 799:
print(7)
elif X <= 999:
print(6)
elif X <= 1199:
print(5)
elif X <= 1399:
print(4)
elif X <= 1599:
print(3)
elif X <= 1799:
print(2)
else:
print(1) | X = int(input())
if 400 <= X and X <= 599:
print(8)
elif X <= 799:
print(7)
elif X <= 999:
print(6)
elif X <= 1199:
print(5)
elif X <= 1399:
print(4)
elif X <= 1599:
print(3)
elif X <= 1799:
print(2)
elif X <= 1999:
print(1)
| [["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19], ["-", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 0, 22], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 19], ["+", 0, 656, 0, 57, 75, 665, 15,... | 5 | 81 |
/*------------------------------------
........Bismillahir Rahmanir Rahim....
..........created by Abdul Aziz.......
------------------------------------*/
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stdio.h>
#include <unordered_m... | /*------------------------------------
........Bismillahir Rahmanir Rahim....
..........created by Abdul Aziz.......
------------------------------------*/
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stdio.h>
#include <unordered_m... | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 221 |
X = int(input())
if 400 <= X < 600:
result = 8
elif X < 800:
result = 7
elif X < 1000:
result = 6
elif X < 1200:
result = 5
elif X < 1400:
result = 4
elif X < 1600:
result = 3
elif X < 1800:
result = 2
elif X < 200:
result = 1
print(result)
| X = int(input())
if 400 <= X < 600:
result = 8
elif X < 800:
result = 7
elif X < 1000:
result = 6
elif X < 1200:
result = 5
elif X < 1400:
result = 4
elif X < 1600:
result = 3
elif X < 1800:
result = 2
elif X < 2000:
result = 1
print(result) | [["-", 0, 656, 0, 57, 75, 665, 15, 666, 0, 612], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 0, 612]] | 5 | 78 |
n = int(input())
if n <= 599:
print(8)
elif n <= 799:
print(7)
elif n <= 999:
print(6)
elif n <= 1199:
print(5)
elif n<= 1399:
print(4)
elif n <= 1599:
print(3)
elif n <= 1999:
print(2)
else:
print(1) | n = int(input())
if n <= 599:
print(8)
elif n <= 799:
print(7)
elif n <= 999:
print(6)
elif n <= 1199:
print(5)
elif n<= 1399:
print(4)
elif n <= 1599:
print(3)
elif n <= 1799:
print(2)
else:
print(1) | [["-", 0, 656, 0, 57, 75, 665, 15, 666, 0, 612], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 0, 612]] | 5 | 77 |
#include <bits/stdc++.h>
using namespace std;
#define fio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL)
#define watch(... | #include <bits/stdc++.h>
using namespace std;
#define fio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL)
#define watch(... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 406 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <iostream>
#define FIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <iostream>
#define FIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 215 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <stdio.h>
using namespace std;
using ll = long long;
ll gcd(ll a, ll b);
int main() {
cin.tie(0);
ll n;
cin >> n;
n = (n + 0.5 / 100);
n = 9 - ((n / 2) - 2);
cout << n;
return 0;
}
ll gcd(ll a, ll b) {
if (a % b == 0) {
r... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <stdio.h>
using namespace std;
using ll = long long;
ll gcd(ll a, ll b);
int main() {
cin.tie(0);
ll n;
cin >> n;
n = ((n + 0.5) / 100);
n = 8 - ((n / 2) - 2);
cout << n;
return 0;
}
ll gcd(ll a, ll b) {
if (a % b == 0) {
... | [["+", 0, 11, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 23, 0, 16, 31, 23, 0, 25], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13]] | 1 | 120 |
#include <bits/stdc++.h>
#define ll long long
#define int long long int
#define MOD 1000000007
#define mkp make_pair
#define maxn 100005
#define pb push_back
#define ff first
#define ss second
#define all(x) x.begin(), x.end()
#define debug1(a) cout << a << endl;
#define debug2(a, b) cout << a << ' ' << b << endl;
#def... | #include <bits/stdc++.h>
#define ll long long
#define int long long int
#define MOD 1000000007
#define mkp make_pair
#define maxn 100005
#define pb push_back
#define ff first
#define ss second
#define all(x) x.begin(), x.end()
#define debug1(a) cout << a << endl;
#define debug2(a, b) cout << a << ' ' << b << endl;
#def... | [["-", 0, 57, 64, 1, 0, 61, 0, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 61, 0, 5, 0, 6]] | 1 | 622 |
X = int(input())
K =[400,600,800,1000,1200,1400,1600,1800]
for k in range(8):
if K[k]<=X and K[k+1]>X:
print(8-k)
break | X = int(input())
K =[400,600,800,1000,1200,1400,1600,1800,9999]
for k in range(8):
if K[k]<=X and K[k+1]>X:
print(8-k)
break | [["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 21], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 612]] | 5 | 59 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int N;
cin >> N;
if (N <= 599)
cout << 8;
else if (N <= 799)
cout << 7;
else if (N <= 999)
cout << 6;
else if (N <= 1199)
cout << 5;
else if (N <= 1399)
cout << 4;
else if (N <= 159)
... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int N;
cin >> N;
if (N <= 599)
cout << 8;
else if (N <= 799)
cout << 7;
else if (N <= 999)
cout << 6;
else if (N <= 1199)
cout << 5;
else if (N <= 1399)
cout << 4;
else if (N <= 1599)
... | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 114 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
if (n < 600)
cout << 2;
else if (n < 800)
cout << 7;
else if (n < 1000)
cout << 6;
else if (n < 1200)
cout << 5;
else if (n < 140)
cout << 4;
else if (n < 1600)
cout << 3;
else if (n < 1800)
cout <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
if (n < 600)
cout << 8;
else if (n < 800)
cout << 7;
else if (n < 1000)
cout << 6;
else if (n < 1200)
cout << 5;
else if (n < 1400)
cout << 4;
else if (n < 1600)
cout << 3;
else if (n < 1800)
cout <... | [["-", 8, 9, 0, 57, 64, 1, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 64, 1, 0, 16, 12, 13], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 104 |
X=int(input())
for i in range(8):
a=400+(8-i)*200
if a<=X<=a+199:
print(i)
break | X=int(input())
for i in range(1,9):
a=400+(8-i)*200
if a<=X<=a+199:
print(i)
break
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 41 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define Int int32_t
#define all(c) c.begin(), c.end()
#define FAST ios_base::sync_with_stdio(false), cin.tie(NULL);
#define pii pair<int, int>
#define pb push_back
#define F first
#define S second
#define endl "\n"
#define bitcnt(n) __builtin_popcountl... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define Int int32_t
#define all(c) c.begin(), c.end()
#define FAST ios_base::sync_with_stdio(false), cin.tie(NULL);
#define pii pair<int, int>
#define pb push_back
#define F first
#define S second
#define endl "\n"
#define bitcnt(n) __builtin_popcountl... | [["-", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13]] | 1 | 581 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
int q = 2000 - x;
int num = 0;
while (q >= 0) {
q = q - 200;
num++;
}
cout << num << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
int q = 2000 - x;
int num = 0;
while (q > 0) {
q = q - 200;
num++;
}
cout << num << endl;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 54 |
A,B,C=map(int,input().split())
K=int(input())
for i in range(K):
if A>B:
B=2*B
elif B>C:
C=2*C
if A<B and B<C:
print('Yes')
break
else:
print('No') | A,B,C=map(int,input().split())
K=int(input())
for i in range(K):
if A>=B:
B=2*B
elif B>=C:
C=2*C
if A<B and B<C:
print('Yes')
break
else:
print('No') | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]] | 5 | 78 |
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
using namespace std;
/*----------macros----------*/
// output================
#define endl '\n'
#define fcout cout << fixed << setprecision(15)
// typedef===============
typedef long long ll;
typedef long double ld;
typedef pai... | #pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
using namespace std;
/*----------macros----------*/
// output================
#define endl '\n'
#define fcout cout << fixed << setprecision(15)
// typedef===============
typedef long long ll;
typedef long double ld;
typedef pai... | [["-", 0, 52, 8, 1, 0, 34, 31, 11, 31, 22], ["+", 0, 52, 8, 1, 0, 34, 31, 11, 31, 22]] | 1 | 323 |
a,b,c = map(int,input().split())
k = int(input())
d = 0
for i in range(k+1):
if b < a:
b *= 2
elif c < b:
c *= 2
else:
d = 1
if d == 0:
print("No")
else:
print("Yes") | a,b,c = map(int,input().split())
k = int(input())
d = 0
for i in range(k+1):
if b <= a:
b *= 2
elif c <= b:
c *= 2
else:
d = 1
if d == 0:
print("No")
else:
print("Yes") | [["-", 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 | 79 |
a,b,c = map(int,input().split())
k = int(input())
ans = 0
while a > b:
b = b*2
ans += 1
while b > c:
c = c*2
ans += 1
if ans > k:
print("No")
else:
print("Yes") | a,b,c = map(int,input().split())
k = int(input())
ans = 0
while a >= b:
b = b*2
ans += 1
while b >= c:
c = c*2
ans += 1
if ans > k:
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 | 74 |
#include <stdio.h>
int main() {
int r, g, b, k, flag = 0;
scanf("%d %d %d", &r, &g, &b);
scanf("%d", &k);
while (g <= r) {
g *= 2;
flag++;
}
while (b <= g) {
g *= 2;
flag++;
}
if (flag <= k)
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <stdio.h>
int main() {
int r, g, b, k, flag = 0;
scanf("%d %d %d", &r, &g, &b);
scanf("%d", &k);
while (g <= r) {
g *= 2;
flag++;
}
while (b <= g) {
b *= 2;
flag++;
}
if (flag <= k)
printf("Yes\n");
else
printf("No\n");
return 0;
} | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22]] | 1 | 103 |
a,b,c = map(int,input().split())
d = int(input())
count = 0
while True:
if a < b:
if b < c:
break
else:
c *= 2
count += 1
else:
b *= 2
count += 1
print("Yes" if count <= k else "No")
| a,b,c = map(int,input().split())
d = int(input())
count = 0
while True:
if a < b:
if b < c:
break
else:
c *= 2
count += 1
else:
b *= 2
count += 1
print("Yes" if count <= d else "No") | [["-", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22]] | 5 | 73 |
a = list(map(int,input().split()))
#b = list(map(int,input().split()))
b=int(input())
for i in range(b):
if a[2]<=a[1]:
a[2]=2*a[2]
elif a[1]<=a[0]:
a[1]=2*a[1]
if a[0]<a[1]<a[2]:
print("Yes")
else:
print("No")
print(a) | a = list(map(int,input().split()))
#b = list(map(int,input().split()))
b=int(input())
for i in range(b):
if a[2]<=a[1]:
a[2]=2*a[2]
elif a[1]<=a[0]:
a[1]=2*a[1]
if a[0]<a[1]<a[2]:
print("Yes")
else:
print("No")
| [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 112 |
a,b,c = map(int,input().split())
k = int(input())
for i in range(k):
if a > b:
b *= 2
elif b > c:
c *= 2
else:
break
if a < b < c:
print('Yes')
else:
print('No') | a,b,c = map(int,input().split())
k = int(input())
for i in range(k):
if a >= b:
b *= 2
elif b >= c:
c *= 2
else:
break
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 |
# M-SOLUTIONS プロコンオープン 2020: B – Magic 2
A, B, C = [int(i) for i in input().split()]
K = int(input())
is_success = 'No'
for i in range(K):
for j in range(K):
for k in range(K):
if i + j + k <= K and A * 2 ** i < B * 2 ** j < C * 2 ** k:
is_success = 'Yes'
print(is_success) | # M-SOLUTIONS プロコンオープン 2020: B – Magic 2
A, B, C = [int(i) for i in input().split()]
K = int(input())
is_success = 'No'
for i in range(K + 1):
for j in range(K + 1):
for k in range(K + 1):
if i + j + k <= K and A * 2 ** i < B * 2 ** j < C * 2 ** k:
is_success = 'Yes'
print(is_... | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 96 |
a,b,c = map(int, input().split())
x = int(input())
for _ in range(x):
if a > b:
b *= 2
elif b > c:
c *= 2
if a < b and b < c:
print('Yes')
exit()
print('No') | a,b,c = map(int, input().split())
x = int(input())
for _ in range(x):
if a >= b:
b *= 2
elif b >= c:
c *= 2
if a < b and 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 | 74 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define mod 1000000007
#define pb push_back
#define ff first
#define ss second
typedef pair<int, int> pp;
bool com(pp x, pp y) { return x.ff < y.ff; }
int N = 1e5 + 9;
bool f(int a, int b, int c, int k) {
if (b > a && c > b)
return 1;
if (k ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define mod 1000000007
#define pb push_back
#define ff first
#define ss second
typedef pair<int, int> pp;
bool com(pp x, pp y) { return x.ff < y.ff; }
int N = 1e5 + 9;
bool f(int a, int b, int c, int k) {
if (b > a && c > b)
return 1;
if (k ... | [["-", 31, 16, 31, 2, 3, 4, 0, 16, 17, 48], ["-", 31, 16, 31, 2, 3, 4, 0, 16, 12, 13], ["-", 31, 16, 12, 2, 3, 4, 0, 16, 17, 48], ["-", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13], ["-", 0, 16, 12, 2, 3, 4, 0, 16, 17, 48], ["-", 0, 16, 12, 2, 3, 4, 0, 16, 12, 13]] | 1 | 226 |
#pragma region template 2.4
#include <bits/stdc++.h>
using namespace std;
template <typename T> using pq_asc = priority_queue<T, vector<T>, greater<T>>;
typedef long long ll;
typedef vector<ll> vi;
typedef vector<vi> vvi;
typedef pair<ll, ll> ii;
typedef vector<ii> vii;
typedef vector<string> vs;
#define REP(i, n) for ... | #pragma region template 2.4
#include <bits/stdc++.h>
using namespace std;
template <typename T> using pq_asc = priority_queue<T, vector<T>, greater<T>>;
typedef long long ll;
typedef vector<ll> vi;
typedef vector<vi> vvi;
typedef pair<ll, ll> ii;
typedef vector<ii> vii;
typedef vector<string> vs;
#define REP(i, n) for ... | [["-", 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 | 505 |
# B>G>R
R,G,B = map(int,input().split())
K = int(input())
cnt = 0
while G<R:
G *= 2
cnt += 1
while not B>G:
B *= 2
cnt += 1
if cnt<=K:
print("Yes")
else:
print("No") | # B>G>R
R,G,B = map(int,input().split())
K = int(input())
cnt = 0
while not G>R:
G *= 2
cnt += 1
while not B>G:
B *= 2
cnt += 1
if cnt<=K:
print("Yes")
else:
print("No") | [["+", 36, 36, 0, 656, 0, 52, 15, 681, 0, 372], ["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18], ["+", 0, 656, 0, 52, 15, 681, 28, 666, 667, 47]] | 5 | 72 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c; // a red, b green, c blue
cin >> a >> b >> c; // a < b < c
int k;
cin >> k;
int count = 0;
while (a >= b) {
b *= 2;
count++;
}
while (b >= c) {
c *= 2;
count++;
}
if (count <= k) {
cout << "Yes" <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c; // a red, b green, c blue
cin >> a >> b >> c; // a < b < c
int k;
cin >> k;
int count = 0;
while (a >= b) {
b *= 2;
count++;
}
while (b >= c) {
c *= 2;
count++;
}
if (count <= k) {
cout << "Yes" <<... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 98 |
a, b, c = gets.split.map { |t| t.to_i }
k = gets.to_i
[0, 1].repeated_permutation(k) do |bits|
x, y, z = a, b, c
bits.each do |bit|
if bit.zero?
y **= 2
else
z **= 2
end
end
if x < y && y < z
puts "Yes"
exit
end
end
puts "No" | a, b, c = gets.split.map { |t| t.to_i }
k = gets.to_i
[0, 1].repeated_permutation(k) do |bits|
x, y, z = a, b, c
bits.each do |bit|
if bit.zero?
y *= 2
else
z *= 2
end
end
if x < y && y < z
puts "Yes"
exit
end
end
puts "No" | [["-", 8, 736, 0, 121, 64, 749, 0, 755, 17, 729], ["+", 8, 736, 0, 121, 64, 749, 0, 755, 17, 108], ["-", 8, 736, 0, 121, 75, 95, 0, 755, 17, 729], ["+", 8, 736, 0, 121, 75, 95, 0, 755, 17, 108]] | 4 | 88 |
a,b,c=map(int,input().split())
k=int(input())
for n in range(k):
if a>b:
b=b*2
elif b>c:
c=c*2
if b>a and c>b:
print('Yes')
else:
print('No') | a,b,c=map(int,input().split())
k=int(input())
for n in range(k):
if a>=b:
b=b*2
elif b>=c:
c=c*2
if b>a and c>b:
print('Yes')
else:
print('No') | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]] | 5 | 77 |
#include <bits/stdc++.h>
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 (a < b && b < c) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (b <= a && k > 0) {
b *= 2;
k--;
}
while (c <= b && k > 0) {
c *= 2;
k--;
}
if (a < b && b < c) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19]] | 1 | 100 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
for (int i = 0; i < k; i++) {
if (a > b) {
b *= 2;
} else {
c *= 2;
}
}
if (a < b && b < c) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
for (int i = 0; i < k; i++) {
if (a >= b) {
b *= 2;
} else {
c *= 2;
}
}
if (a < b && b < c && a < c) {
cout << "Yes" << endl;
} else {
cout << "No" << e... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]] | 1 | 102 |
a,b,c=map(int,input().split())
k=int(input())
while(k>0):
if a>=b:
b=b*2
elif b>c:
c=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(k>0):
if a>=b:
b=b*2
elif b>=c:
c=c*2
k-=1
if a<b and b<c:
print("Yes")
else:
print("No") | [["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18]] | 5 | 79 |
// include
// ------------------------------------------------
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
// func
// ------------------------------------------------
int CalcSumOfDigit(int n); // 各桁の和を計算する。
int getDigit(int n); // 数字の桁数を取得する。
string upper(string str); // 英字を大文字に変換する。
strin... | // include
// ------------------------------------------------
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
// func
// ------------------------------------------------
int CalcSumOfDigit(int n); // 各桁の和を計算する。
int getDigit(int n); // 数字の桁数を取得する。
string upper(string str); // 英字を大文字に変換する。
strin... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 1,311 |
#define DEBUG
#include <bits/stdc++.h>
#include <ext/numeric>
using namespace std;
using __gnu_cxx::power;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
const ll llinf = (1ll << 61) - 1;
const double eps = 1e-6, ldeps = 1e-9;
#define all(x) begin(x), end(x)
#define sl(a) int(strlen(a))
#... | #define DEBUG
#include <bits/stdc++.h>
#include <ext/numeric>
using namespace std;
using __gnu_cxx::power;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
const ll llinf = (1ll << 61) - 1;
const double eps = 1e-6, ldeps = 1e-9;
#define all(x) begin(x), end(x)
#define sl(a) int(strlen(a))
#... | [["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 685 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int r, g, b;
int k;
cin >> r >> g >> b;
cin >> k;
int good = 0;
for (int i = 0; i < k; i++) {
if (r > b) {
b *= 2;
} else if (r > g) {
g *= 2;
} else if (g < b) {
b *= 2;
}
if (r < g && g < b) {
good = ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int r, g, b;
int k;
cin >> r >> g >> b;
cin >> k;
int good = 0;
for (int i = 0; i < k; i++) {
if (r >= b) {
b *= 2;
} else if (r >= g) {
g *= 2;
} else if (g >= b) {
b *= 2;
}
if (r < g && g < b) {
good... | [["-", 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, 15, 339, 51, 16, 17, 18]] | 1 | 142 |
package main
import (
"bufio"
"fmt"
"os"
"sort"
"strconv"
)
/*-----------Main-----------*/
func main() {
a, b, c := readI(), readI(), readI()
k := readI()
for i := 0; i < k; i++ {
switch {
case a > b:
b *= 2
case b > c:
c *= 2
}
}
if a < b && b < c {
fmt.Println("Yes")
} else {
fmt.Print... | package main
import (
"bufio"
"fmt"
"os"
"sort"
"strconv"
)
/*-----------Main-----------*/
func main() {
a, b, c := readI(), readI(), readI()
k := readI()
for i := 0; i < k; i++ {
switch {
case a >= b:
b *= 2
case b >= c:
c *= 2
}
}
if a < b && b < c {
fmt.Println("Yes")
} else {
fmt.Pri... | [["-", 0, 459, 0, 456, 51, 432, 0, 16, 17, 47], ["+", 0, 459, 0, 456, 51, 432, 0, 16, 17, 20]] | 7 | 768 |
main=list(map(int,input().split()))
k=int(input())
for i in range(k):
if(main[0]>main[1]):
main[1]=main[1]*2
elif(main[1]>main[2]):
main[2]=main[2]*2
if(main[1]>main[0] and main[2]>main[1]): print('Yes')
else: print('No') | main=list(map(int,input().split()))
k=int(input())
for i in range(k):
if(main[0]>=main[1]):
main[1]=main[1]*2
elif(main[1]>=main[2]):
main[2]=main[2]*2
if(main[1]>main[0] and main[2]>main[1]): 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 | 118 |
#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>;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
for (int i = 0; i <= k; i++) {
if (a < b && b < c) {
cout << "Yes" << endl;
return 0;
}
... | #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>;
int main() {
int a, b, c, k;
cin >> a >> b >> c;
cin >> k;
for (int i = 0; i <= k; i++) {
if (a < b && b < c) {
cout << "Yes" << endl;
return 0;
}
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 132 |
#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>;
int main() {
int R, G, B, K;
cin >> R >> G >> B >> K;
bool ok = false;
rep(i, K) {
if (B < R || B < G)
B *= 2;
else if (G < R)
G *= 2;
if (G > R ... | #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>;
int main() {
int R, G, B, K;
cin >> R >> G >> B >> K;
bool ok = false;
rep(i, K) {
if (B <= R || B <= G)
B *= 2;
else if (G <= R)
G *= 2;
// cout... | [["-", 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 | 131 |
#include <bits/stdc++.h>
using namespace std;
#define FASTIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
typedef long lon... | #include <bits/stdc++.h>
using namespace std;
#define FASTIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
typedef long lon... | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 185 |
#include <iostream>
int main() {
int a, b, c, k;
std::cin >> a >> b >> c >> k;
while (k--) {
if (b > c) {
c *= 2;
} else if (a > b) {
b *= 2;
}
}
if (a < b && b < c) {
std::cout << "Yes";
} else {
std::cout << "No";
}
} | #include <iostream>
int main() {
int a, b, c, k;
std::cin >> a >> b >> c >> k;
while (k--) {
if (b >= c) {
c *= 2;
} else if (a >= b) {
b *= 2;
}
}
if (a < b && b < c) {
std::cout << "Yes";
} else {
std::cout << "No";
}
} | [["-", 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 | 92 |
/*
*/
#include <algorithm>
#include <cstdlib>
#include <iomanip>
#include <ios>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
#define repb(i, a, b) for (int i = a; i < b; i++)
#... | /*
*/
#include <algorithm>
#include <cstdlib>
#include <iomanip>
#include <ios>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
#define repb(i, a, b) for (int i = a; i < b; i++)
#... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 163 |
#include <algorithm>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
int main() {
int r, g, b, k, h = 0;
cin >> r >> g >> b >> k;
if (g > r && b > g) {... | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
int main() {
int r, g, b, k, h = 0;
cin >> r >> g >> b >> k;
if (g > r && b > g) {... | [["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 13], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 35], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 178 |
a, b, c = map(int, input().split())
k = int(input())
for i in range(k):
if a > b:
b *= 2
elif b > c:
c *= 2
print('Yes') if a < b < c else 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
print('Yes') if a < b < c 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 | 69 |
a, b, c = map(int, input().split())
k = int(input())
cnt = 0
while a > b:
b *= 2
cnt += 1
while b > c:
c *= 2
cnt += 1
print('Yes' if cnt <= k else 'No')
| a, b, c = map(int, input().split())
k = int(input())
cnt = 0
while a >= b:
b *= 2
cnt += 1
while b >= c:
c *= 2
cnt += 1
print('Yes' if cnt <= k else 'No')
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20]] | 5 | 65 |
<?php
//2倍する操作をk回やる
//if b > a and c > b then "yes" else no
//stud input
while($line = fgets(STDIN)){
$array[] = $line;
}
//array[0] = "a b c";
//array[1] = "k";
$abc = explode(" ", $array[0]);
$a = $abc[0];
$b = $abc[1];
$c = $abc[2];
$K = $array[1];
for($i = 1; $i <= $K; ++$i){
if($a > $b){
$b = $b... | <?php
//2倍する操作をk回やる
//if b > a and c > b then "yes" else no
//stud input
while($line = fgets(STDIN)){
$array[] = $line;
}
//array[0] = "a b c";
//array[1] = "k";
$abc = explode(" ", $array[0]);
$a = $abc[0];
$b = $abc[1];
$c = $abc[2];
$K = $array[1];
for($i = 0; $i < $K; ++$i){
if($a >= $b){
$b = $b... | [["-", 36, 36, 0, 493, 0, 7, 0, 11, 12, 612], ["+", 36, 36, 0, 493, 0, 7, 0, 11, 12, 612], ["-", 36, 36, 0, 493, 0, 7, 0, 16, 17, 19], ["+", 36, 36, 0, 493, 0, 7, 0, 16, 17, 18], ["-", 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, ... | 6 | 168 |
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int a, b, c, k;
cin >> a >> b >> c >> k;
while (a >= b) {
b *= 2;
k--;
}
while (b >= c) {
c *= 2;
k--;
}
if (k >= 0)
cout << "Yes\n";
else
cout << "no\n";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int a, b, c, k;
cin >> a >> b >> c >> k;
while (a >= b) {
b *= 2;
k--;
}
while (b >= c) {
c *= 2;
k--;
}
if (k >= 0)
cout << "Yes\n";
else
cout << "No\n";
} | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 96 |
red, green, blue = map(int, input().split())
k = int(input())
success = 0
for cnt in range(k+1):
if red > green:
green *= 2
elif red > blue:
blue *= 2
elif green >= blue:
blue *= 2
else:
success = 1
break
if success == 1:
print('Yes')
else:
print('No') | red, green, blue = map(int, input().split())
k = int(input())
success = 0
for cnt in range(k+1):
if red >= green:
green *= 2
elif red >= blue:
blue *= 2
elif green >= blue:
blue *= 2
else:
success = 1
break
if success == 1:
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 | 88 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
signed main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
// a < b < c
bool flg = false;
for (int i = 0; i < K; i++) {
if (B < A) {
B *= 2;
} else if (C < B) {
C *= 2;
}
if (A < B && B < C) {
flg = true;
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
signed main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
// a < b < c
bool flg = false;
for (int i = 0; i < K; i++) {
if (B <= A) {
B *= 2;
} else if (C <= B) {
C *= 2;
}
if (A < B && B < C) {
flg = true;
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 119 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
for (int i = 0; i < k; i++) {
if (b < a)
b = 2 * b;
else if (c < b)
c = 2 * c;
}
if (c > b && b > a)
cout << "Yes";
else
cout << "No";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
for (int i = 0; i < k; i++) {
if (b <= a)
b = 2 * b;
else if (c <= b)
c = 2 * c;
}
if (c > b && b > a)
cout << "Yes";
else
cout << "No";
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 95 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <new>
#include <queue>
#include <random>
#include <se... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <new>
#include <queue>
#include <random>
#include <se... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 48], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 182 |
a, b, c = gets.split.map(&:to_i)
K = gets.to_i
cnt = 0
while true do
if b < a
b *= 2
cnt += 1
else
break
end
end
while true do
if c < b
c *= 2
cnt += 1
else
break
end
end
puts cnt <= K ? "Yes" : "No" | a, b, c = gets.split.map(&:to_i)
K = gets.to_i
cnt = 0
while true do
if b <= a
b *= 2
cnt += 1
else
break
end
end
while true do
if c <= b
c *= 2
cnt += 1
else
break
end
end
puts cnt <= K ? "Yes" : "No" | [["-", 0, 89, 8, 170, 0, 121, 15, 738, 17, 18], ["+", 0, 89, 8, 170, 0, 121, 15, 738, 17, 19]] | 4 | 69 |
a, b,c = map(int, input().split())
K=int(input())
for i in range(K):
if b<a:
b=b*2
elif c<b:
c=c*2
if a<b and b<c:
print('Yes')
exit()
print('No')
| a, b,c = map(int, input().split())
K=int(input())
for i in range(K):
if b<=a:
b=b*2
elif c<=b:
c=c*2
if a<b and b<c:
print('Yes')
exit()
print('No')
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]] | 5 | 78 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int k = sc.nextInt();
for (int i = 0; i < k; i++) {
if (a > b) {
b *= 2;
} else {... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int k = sc.nextInt();
for (int i = 1; i <= k; i++) {
if (a >= b) {
b *= 2;
} else... | [["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20]] | 3 | 143 |
R, G, B = map(int, input().split())
K = int(input())
for _ in range(K):
if G < R:
G *= 2
elif B < G:
B *= 2
print('Yes' if R < G < B else 'No')
| R, G, B = map(int, input().split())
K = int(input())
for _ in range(K):
if G <= R:
G *= 2
elif B <= G:
B *= 2
print('Yes' if R < G < B else '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 | 66 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int a, b, c, n;
cin >> a >> b >> c >> n;
int i = 0;
while (true) {
// cout << a << ':' << b << ':' << c << ':' << i << endl;
if (i >= n) {
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int a, b, c, n;
cin >> a >> b >> c >> n;
int i = 0;
while (true) {
// cout << a << ':' << b << ':' << c << ':' << i << endl;
if (i > n) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 134 |
#line 2 "../../library/template.hpp"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pl = pair<ll, ll>;
using vl = vector<ll>;
#define rep(i, n) for (ll i = 0; i < (ll)n; i++)
#define rep3(i, l, r) for (ll i = l; i < (ll)r; i++)
#define per(i, n) for (ll i = (ll)n - 1; i >= 0; i--)
#define per... | #line 2 "../../library/template.hpp"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pl = pair<ll, ll>;
using vl = vector<ll>;
#define rep(i, n) for (ll i = 0; i < (ll)n; i++)
#define rep3(i, l, r) for (ll i = l; i < (ll)r; i++)
#define per(i, n) for (ll i = (ll)n - 1; i >= 0; i--)
#define per... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["-", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["-", 31, 16, 12, 23, 0, 41, 15, 16, 31, 22], ["+", 31, 16, 1... | 1 | 455 |
#include <algorithm>
#include <bits/stdc++.h>
#include <bitset>
#include <cmath>
#include <cstring>
#include <map>
#include <math.h>
#include <set>
#include <sstream>
#include <string>
#include <utility>
#define INF 1000000000000
#define MOD 1000000007 // 10^9+7:合同式の法
using namespace std;
typedef long long ll;
//マクロ... | #include <algorithm>
#include <bits/stdc++.h>
#include <bitset>
#include <cmath>
#include <cstring>
#include <map>
#include <math.h>
#include <set>
#include <sstream>
#include <string>
#include <utility>
#define INF 1000000000000
#define MOD 1000000007 // 10^9+7:合同式の法
using namespace std;
typedef long long ll;
//マクロ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 191 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long i, j, r, g, b, k;
cin >> r >> g >> b;
cin >> k;
int k1 = 0;
while (g <= r) {
g *= 2;
k1++;
}
if (k1 > k)
{
cout << "No";
return 0;
}
while (b <= g) {
g *= 2;
k1++;
}
if (k1 > k)
{
cout << "No";
... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long i, j, r, g, b, k;
cin >> r >> g >> b;
cin >> k;
int k1 = 0;
while (g <= r) {
g *= 2;
k1++;
}
if (k1 > k)
{
cout << "No";
return 0;
}
while (b <= g) {
b *= 2;
k1++;
}
if (k1 > k)
{
cout << "No";
... | [["-", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22]] | 1 | 113 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
const ll INF = 100000000;
#define rep1(i, n) for (ll i = 0; i < (n); i++)
#define rep2(i, k, n) for (ll i = k; i < (n); i++)
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
const ll INF = 100000000;
#define rep1(i, n) for (ll i = 0; i < (n); i++)
#define rep2(i, k, n) for (ll i = k; i < (n); i++)
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 202 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define REP(i, b, n) for (int i = b; i < (b) + (n); i++)
using namespace std;
using ll = long long;
int main() {
int a = 0, b = 0, c = 0, k = 0;
cin >> a >> b >> c >> k;
rep(i, k) {
if (a > b)
b *= 2;
else if (b > c)
c *... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define REP(i, b, n) for (int i = b; i < (b) + (n); i++)
using namespace std;
using ll = long long;
int main() {
int a = 0, b = 0, c = 0, k = 0;
cin >> a >> b >> c >> k;
rep(i, k) {
if (a >= b)
b *= 2;
else if (b >= c)
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 | 117 |
n , m , l = map(int , input().split())
k=int(input())
for a in range(k+1):
for b in range(k+1):
for c in range(k+1):
a1 = (n*(2*a))
b1 = (m*(2*b))
c1 = (l*(2*c))
if a+b+c <= k and a1 < b1 and b1 < c1:
print("Yes")
exit()
print('No') | n , m , l = map(int , input().split())
k=int(input())
for a in range(k+1):
for b in range(k+1):
for c in range(k+1):
a1 = (n*(2**a))
b1 = (m*(2**b))
c1 = (l*(2**c))
if a+b+c <= k and a1 < b1 and b1 < c1:
print("Yes")
exit()
print('No') | [["-", 12, 23, 0, 657, 12, 23, 0, 657, 17, 48], ["+", 12, 23, 0, 657, 12, 23, 0, 657, 17, 578]] | 5 | 121 |
#include <bits/stdc++.h>
#define ll long long int
#define ul unsigned long long int
#define mp make_pair
#define endl "\n"
#define fio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define lb lower_b... | #include <bits/stdc++.h>
#define ll long long int
#define ul unsigned long long int
#define mp make_pair
#define endl "\n"
#define fio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define lb lower_b... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 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 | 236 |
a,b,c = map(int,input().split())
k = int(input())
for i in range(k):
if a < b and b < c:
print("Yes")
exit()
elif a > b:
b *= 2
elif b > c:
c *= 2
if a < b and b < c:
print("Yes")
else:
print("No") | a,b,c = map(int,input().split())
k = int(input())
for i in range(k):
if a < b and b < c:
print("Yes")
exit()
elif a >= b:
b *= 2
elif b >= c:
c *= 2
if a < b and b < c:
print("Yes")
else:
print("No") | [["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]] | 5 | 91 |
a, b, c = map(int, input().split())
k = int(input())
cnt = 0
while a>=b:
b *= 2
cnt += 1
while b>=c:
c *= 2
cnt += 1
if(cnt <= k):
print("YES")
else:
print("NO")
| a, b, c = map(int, input().split())
k = int(input())
cnt = 0
while a>=b:
b *= 2
cnt += 1
while b>=c:
c *= 2
cnt += 1
if(cnt <= k):
print("Yes")
else:
print("No")
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 72 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
int ans = 0;
if (A >= B) {
for (int i = 0; i < 100; i++) {
B = B * B;
ans++;
if (A < B) {
break;
}
}
}
if (B >= C) {
for (int i = 0; i < 100; i++) {
C = C * C... | #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, K;
cin >> A >> B >> C >> K;
int ans = 0;
if (A >= B) {
for (int i = 0; i < 100; i++) {
B = B * 2;
ans++;
if (A < B) {
break;
}
}
}
if (B >= C) {
for (int i = 0; i < 100; i++) {
C = C * 2... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 149 |
a,b,c=map(int,input().split())
K=int(input())
isCheck = None
for i in range(K):
for j in range(K):
for k in range(K):
x = a*2**(i)
y = b*2**(j)
z = c*2**(k)
if i+j+k <= K and x < y and y < z:
isCheck = True
if isCheck:
print("Yes")
else:... | a,b,c=map(int,input().split())
K=int(input())
isCheck = None
for i in range(K+1):
for j in range(K+1):
for k in range(K+1):
x = a*2**(i)
y = b*2**(j)
z = c*2**(k)
if i+j+k <= K and x < y and y < z:
isCheck = True
if isCheck:
print("Yes")
... | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 117 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Integer r = sc.nextInt();
Integer g = sc.nextInt();
Integer b = sc.nextInt();
Integer k = sc.nextInt();
for (Integer i = 0; i < k; i++) {
if (g < r) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Integer r = sc.nextInt();
Integer g = sc.nextInt();
Integer b = sc.nextInt();
Integer k = sc.nextInt();
for (Integer i = 0; i < k; i++) {
if (g <= r) {
... | [["-", 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 | 153 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fats \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
int main() {
fats;
ll a, b, c, k;
cin >> a >> b >> c >> k;
while (b... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fats \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
int main() {
fats;
ll a, b, c, k;
cin >> a >> b >> c >> k;
while (b... | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19]] | 1 | 106 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int v[3];
for (int i = 0; i < 3; ++i)
cin >> v[i];
int k;
cin >> k;
int p = 1;
while (k--) {
if (v[p] <= v[p - 1])
v[p] *= 2;
else
p++, k++;
}
if (v[0] < v[1] and v[1] < v[2])
cout << "Yes\n";
else
cout <... | #include <bits/stdc++.h>
using namespace std;
int main() {
int v[3];
for (int i = 0; i < 3; ++i)
cin >> v[i];
int k;
cin >> k;
int p = 1;
while (k-- and p < 3) {
if (v[p] <= v[p - 1])
v[p] *= 2;
else
p++, k++;
}
if (v[0] < v[1] and v[1] < v[2])
cout << "Yes\n";
else
... | [["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 355], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 126 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
long long MOD = 1e9 + 7;
int main(void) {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int A, B, C, K;
cin >> A >> B >> C >> K;
bool judge = false;
for (int i = 0... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
long long MOD = 1e9 + 7;
int main(void) {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int A, B, C, K;
cin >> A >> B >> C >> K;
bool judge = false;
for (int i = 0... | [["-", 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 | 175 |
a, b, c = map(int, input())
k = int(input())
n = 0
while b <= a:
b = b*2
n += 1
while c <= b:
c = c*2
n += 1
if n <= k:
print("Yes")
else:
print("No") | a, b, c = map(int, input().split())
k = int(input())
n = 0
while b <= a:
b = b*2
n += 1
while c <= b:
c = c*2
n += 1
if n <= k:
print("Yes")
else:
print("No") | [["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 70 |
num = gets.split(" ").map(&:to_i)
k = gets.to_i
magic = false
while k != -1
if (num[0] >= num[1])
num[1] *= 2
elsif (num[1] >= num[2])
num[2] *= 2
else
k = 0
magic = true
end
k = k - 1
end
if (magic)
p 'Yes'
else
p 'No'
end
| num = gets.split(" ").map(&:to_i)
k = gets.to_i
magic = false
while k != -1
if (num[0] >= num[1])
num[1] *= 2
elsif (num[1] >= num[2])
num[2] *= 2
else
k = 0
magic = true
end
k = k - 1
end
if (magic)
print 'Yes'
else
print '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 | 93 |
/*
author:Rahul Chocha
school of eng. and applied science
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define MAXI INT_MAX
#define MINI INT_MIN
#define din(t) \
long long t; ... | /*
author:Rahul Chocha
school of eng. and applied science
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define MAXI INT_MAX
#define MINI INT_MIN
#define din(t) \
long long t; ... | [["-", 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 | 226 |
// let input = "7 4 2\n3";
function main(input) {
input = input.trim();
let l1 = input.split("\n")[0];
let l2 = input.split("\n")[1];
let r = parseInt(l1.split(" ")[0]);
let g = parseInt(l1.split(" ")[1]);
let b = parseInt(l1.split(" ")[2]);
let n = parseInt(l2);
function hantei() { return (r < g && g... | // let input = "7 4 2\n3";
function main(input) {
input = input.trim();
let l1 = input.split("\n")[0];
let l2 = input.split("\n")[1];
let r = parseInt(l1.split(" ")[0]);
let g = parseInt(l1.split(" ")[1]);
let b = parseInt(l1.split(" ")[2]);
let n = parseInt(l2);
function hantei() { return (r < g && g... | [["-", 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 | 238 |
def main():
A, B, C = map(int, input().split())
K = int(input())
while K > 0 and A > B:
B *= 2
K -= 1
while K > 0 and B > C:
C *= 2
K -= 1
if A < B < C:
print("Yes")
else:
print("No")
if __name__ == "__main__":
main() | def main():
A, B, C = map(int, input().split())
K = int(input())
while K > 0 and A >= B:
B *= 2
K -= 1
while K > 0 and B >= C:
C *= 2
K -= 1
if A < B < C:
print("Yes")
else:
print("No")
if __name__ == "__main__":
main() | [["-", 8, 196, 0, 52, 15, 679, 12, 666, 667, 47], ["+", 8, 196, 0, 52, 15, 679, 12, 666, 667, 20]] | 5 | 92 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, k;
cin >> a >> b >> c >> k;
while (k > 0) {
if (b < a)
b *= 2;
else if (c < b)
c *= 2;
else {
}
k--;
}
if (c > b && b > a)
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 (k > 0) {
if (b <= a)
b *= 2;
else if (c <= b)
c *= 2;
else {
}
k--;
}
if (c > b && b > a)
cout << "Yes";
else
cout << "No";
return 0;
} | [["-", 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 | 92 |
import sys
import math
import fractions
from collections import defaultdict
stdin = sys.stdin
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))
A,B,C=nm()
K=int(input())
count=... | import sys
import math
import fractions
from collections import defaultdict
stdin = sys.stdin
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))
A,B,C=nm()
K=int(input())
count=... | [["-", 0, 656, 0, 52, 15, 23, 0, 666, 667, 18], ["+", 0, 656, 0, 52, 15, 23, 0, 666, 667, 19]] | 5 | 143 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def main():
A, B, C = map(int, input().split())
K = int(input())
for _ in range(K):
if A > B:
B *= 2
elif B > C:
C *= 2
if A < B < C:
print("Yes")
else:
print("No")
if __name__ == "__main__":
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def main():
A, B, C = map(int, input().split())
K = int(input())
for _ in range(K):
if not A < B:
B *= 2
elif not B < C:
C *= 2
if A < B < C:
print("Yes")
else:
print("No")
if __name__ == "__ma... | [["+", 0, 7, 8, 196, 0, 57, 15, 681, 0, 372], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 681, 28, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 681, 0, 372], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 0, 57, 75, 665, 15, 681, 28, 666, 667, 18]] | 5 | 88 |
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
# print(A, B, C, K)
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 | 79 |
#include <stdio.h>
int main(void) {
int a, b, c, k, i;
scanf("%d%d%d%d", &a, &b, &c, &k);
for (i = 0; i < k; i++) {
if (b > c) {
c *= 2;
} else {
b *= 2;
}
}
if (a < b && b < c) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int a, b, c, k, i;
scanf("%d%d%d%d", &a, &b, &c, &k);
for (i = 0; i < k; i++) {
if (a >= b) {
b *= 2;
} else {
c *= 2;
}
}
if (a < b && b < c) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["+", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["-", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 75, 76, 0, 9, 0... | 0 | 107 |
#include <bits/stdc++.h>
using namespace std;
void solve() {
int r, g, b, k, i = 0;
cin >> r >> g >> b >> k;
while (i < k && !(r > g && g > b)) {
i++;
if (r <= g)
g *= 2;
else
b *= 2;
}
if (r > g && g > b)
cout << "Yes";
else
cout << "No";
}
int main() {
solve();
return... | #include <bits/stdc++.h>
using namespace std;
void solve() {
int r, g, b, k, i = 0;
cin >> r >> g >> b >> k;
while (i < k && !(r < g && g < b)) {
i++;
if (r >= g)
g *= 2;
else
b *= 2;
}
if (r < g && g < b)
cout << "Yes";
else
cout << "No";
}
int main() {
solve();
return... | [["-", 12, 91, 28, 23, 0, 16, 31, 16, 17, 47], ["+", 12, 91, 28, 23, 0, 16, 31, 16, 17, 18], ["-", 12, 91, 28, 23, 0, 16, 12, 16, 17, 47], ["+", 12, 91, 28, 23, 0, 16, 12, 16, 17, 18], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47]... | 1 | 108 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
if (a >= b) {
while (k--) {
b *= 2;
if (a < b)
break;
}
if (b >= c) {
while (k--) {
c *= 2;
if (c > b)
break;
}
}
}
if (c ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
if (a >= b) {
while (k--) {
b *= 2;
if (a < b)
break;
}
}
if (b >= c) {
while (k--) {
c *= 2;
if (c > b)
break;
}
}
if (c > b && b > a)
... | [["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 57, 64, 9, 0, 52, 8, 9, 0, 46]] | 1 | 118 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, i, j, a, b, c, k;
cin >> a >> b >> c >> k;
if (b <= a) {
while (k--) {
b *= 2;
if (b > a)
break;
}
}
if (c <= b) {
while (k--) {
c *= 2;
if (c > b)
break;
}
}
if (a < b && b < c)
c... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, i, j, a, b, c, k;
cin >> a >> b >> c >> k;
if (b <= a) {
while (k--) {
b *= 2;
if (b > a)
break;
}
}
if (c <= b) {
while (k--) {
c *= 2;
if (c > b)
break;
}
}
if (a < b && b < c)
c... | [["-", 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 | 121 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define repi(i, s, n) for (int i = (s); i < (n); i++)
#ifdef LOCAL
#define INPUT_FILE \
ifstream in("m_solutions2020/m_solutions2020_b.txt"); ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define repi(i, s, n) for (int i = (s); i < (n); i++)
#ifdef LOCAL
#define INPUT_FILE \
ifstream in("m_solutions2020/m_solutions2020_b.txt"); ... | [["-", 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 | 185 |
#include <iostream>
using namespace std;
#define FIO \
freopen("input.txt", "r", stdin); \
freopen("output.txt", "w", stdout);
int main() {
FIO;
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k;
... | #include <iostream>
using namespace std;
#define FIO \
freopen("input.txt", "r", stdin); \
freopen("output.txt", "w", stdout);
int main() {
// FIO;
int a, b, c;
cin >> a >> b >> c;
int k;
cin >> k... | [["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 107 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.