buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (ll i = (a); i < (b); i++) #define FORD(i, a, b) for (ll i = a; i > b; i--) #define fastio ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); #define PI 3.14159265 typedef long long ll; #define VL vector<ll> #define IN(inp) ...
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (ll i = (a); i < (b); i++) #define FORD(i, a, b) for (ll i = a; i > b; i--) #define fastio ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); #define PI 3.14159265 typedef long long ll; #define VL vector<ll> #define IN(inp) ...
[["-", 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
163
#include <bits/stdc++.h> using namespace std; void __print(int x) { cerr << x; }; void __print(long x) { cerr << x; }; void __print(long long x) { cerr << x; }; void __print(unsigned x) { cerr << x; }; void __print(unsigned long x) { cerr << x; }; void __print(unsigned long long x) { cerr << x; }; void __print(float x...
#include <bits/stdc++.h> using namespace std; void __print(int x) { cerr << x; }; void __print(long x) { cerr << x; }; void __print(long long x) { cerr << x; }; void __print(unsigned x) { cerr << x; }; void __print(unsigned long x) { cerr << x; }; void __print(unsigned long long x) { cerr << x; }; void __print(float x...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
702
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; int k; cin >> k; int c = 0; while (g < r) { g *= 2; c++; } while (b < g) { b *= 2; c++; } if (c <= k) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; int k; cin >> k; int c = 0; while (g <= r) { g *= 2; c++; } while (b <= g) { b *= 2; c++; } if (c <= k) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]]
1
96
#include <bits/stdc++.h> using namespace std; int main() { int t = 1; // cin>>t; while (t--) { int a, b, c, k; cin >> a >> b >> c >> k; if (c > b && b > a) cout << "Yes"; else { while (k--) { if (c < b) c *= 2; else if (b < a) b *= 2; } ...
#include <bits/stdc++.h> using namespace std; int main() { int t = 1; // cin>>t; while (t--) { int a, b, c, k; cin >> a >> b >> c >> k; if (c > b && b > a) cout << "Yes"; else { while (k--) { if (c <= b) c *= 2; else if (b <= a) b *= 2; els...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 0, 57, 75, 76, 0, 57, 64, 1, 0, 35], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95], ["+", 75, 76, 0, 57, 75, 76, 0, 93, 0, 94]]
1
117
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repr(i, a, b) for (int i = a; i < b; i++) #define all(x) (x).begin(), (x).end() // 昇順ソート #define rall(v) (v).rbegin(), (v).rend() // 降順ソート #define FastIO ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0) ty...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repr(i, a, b) for (int i = a; i < b; i++) #define all(x) (x).begin(), (x).end() // 昇順ソート #define rall(v) (v).rbegin(), (v).rend() // 降順ソート #define FastIO ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0) ty...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]]
1
268
// In the name of Allah :) #include <bits/stdc++.h> using namespace std; string to_string(char c) { return string(1, c); } string to_string(bool b) { return b ? "true" : "false"; } string to_string(const char *s) { return (string)s; } string to_string(string s) { return s; } template <class A> string to_string(complex<...
// In the name of Allah :) #include <bits/stdc++.h> using namespace std; string to_string(char c) { return string(1, c); } string to_string(bool b) { return b ? "true" : "false"; } string to_string(const char *s) { return (string)s; } string to_string(string s) { return s; } template <class A> string to_string(complex<...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
648
A, B, C = map(int, input().split()) K = int(input()) while K: if A > B: B *= 2 elif B > C: C *= 2 K -= 1 if A < B < C: print('Yes') else: print('No')
A, B, C = map(int, input().split()) K = int(input()) while K: if A >= B: B *= 2 elif B >= C: C *= 2 K -= 1 if A < B < C: print('Yes') else: print('No')
[["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]]
5
69
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define M (ll)1000000007 #define MM (ll)1e8 #define INF (ll)1e18 #define arep(i, x, n) for (long long i = x; i < n; i++) #define rep(i, n) for (long long i = 0; i < n; ++i) #define pi 3.141592653589793 #define eps 0.00000001 int main() { ll a; ll b...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define M (ll)1000000007 #define MM (ll)1e8 #define INF (ll)1e18 #define arep(i, x, n) for (long long i = x; i < n; i++) #define rep(i, n) for (long long i = 0; i < n; ++i) #define pi 3.141592653589793 #define eps 0.00000001 int main() { ll a; ll b...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]]
1
140
A, B, C = list(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 > A: print("Yes") else: print("No")
A, B, C = list(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 > A: print("Yes") else: print("No")
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]]
5
74
A,B,C=map(int,input().split()) X=int(input()) while X>0: if B<A: B=2*B elif C<B: C=2*C X-=1 if A<B and B<C: print("Yes") else: print("No")
A,B,C=map(int,input().split()) X=int(input()) while X>0: if B<=A: B=2*B elif C<=B: C=2*C X-=1 if A<B and B<C: 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
77
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <limits> #include <queue> #include <stack> #include <string.h> #include <vector> using namespace std; int main() { int a, b, c, k; cin >> a >> b >> c >> k; while (b <= a) { b = b * 2; k--; } while (c <= b) { c = ...
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <limits> #include <queue> #include <stack> #include <string.h> #include <vector> using namespace std; int main() { int a, b, c, k; cin >> a >> b >> c >> k; while (b <= a) { b = b * 2; k--; } while (c <= b) { c = ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
111
A,B,C= map(int, input().split()) K = int(input()) for i in range(0,K): if C < B or C < A: C = C * 2 continue if B < A: B = B * 2 continue if C > B and B > A: print("Yes") else: print("No")
A,B,C= map(int, input().split()) K = int(input()) for i in range(0,K): if C <= B or C <= A: C = C * 2 continue if B <= A: B = B * 2 continue if C > B and B > A: print("Yes") else: print("No")
[["-", 8, 196, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 8, 196, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 19], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]]
5
85
a,b,c=map(int,input().split()) k=int(input()) token=0 for i in range(k+1): c_c=c*(2**i) for j in range(k-i+1): b_c=c*(2**j) if a<b_c and b_c < c_c: token=1 if token : print("Yes") else : print("No")
a,b,c=map(int,input().split()) k=int(input()) token=0 for i in range(k+1): c_c=c*(2**i) for j in range(k-i+1): b_c=b*(2**j) if a<b_c and b_c < c_c: token=1 if token : print("Yes") else : print("No")
[["-", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22]]
5
98
package main import ( "bufio" "fmt" "os" "sort" "strconv" ) func out(x ...interface{}) { fmt.Println(x...) } var sc = bufio.NewScanner(os.Stdin) func getInt() int { sc.Scan() i, e := strconv.Atoi(sc.Text()) if e != nil { panic(e) } return i } func getInts(N int) []int { ret := make([]int, N) for i :...
package main import ( "bufio" "fmt" "os" "sort" "strconv" ) func out(x ...interface{}) { fmt.Println(x...) } var sc = bufio.NewScanner(os.Stdin) func getInt() int { sc.Scan() i, e := strconv.Atoi(sc.Text()) if e != nil { panic(e) } return i } func getInts(N int) []int { ret := make([]int, N) for i :...
[["-", 8, 196, 0, 7, 0, 430, 15, 16, 12, 433], ["+", 8, 196, 0, 7, 0, 430, 15, 16, 12, 22]]
7
573
def main(): a,b,c = map(int,input().split()) k=int(input()) while(k>0): if(a>b): b *= 2 elif(b>c): c *= 2 k -= 1 if(a < b and b < c): print("Yes") return print("No") return if __name__=="__main__": main()
def main(): a,b,c = map(int,input().split()) k=int(input()) while(k>0): if(a>=b): b *= 2 elif(b>=c): c *= 2 k -= 1 if(a < b and b < c): print("Yes") return print("No") return if __name__=="__main__": main()
[["-", 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
96
#include <bits/stdc++.h> #define roop0(n) for (long long i = 0; i < n; i++) #define roop1(n) for (long long i = 1; i < n; i++) #define rep(i, a, b) for (long long i = a; i < b; i++) #define print(a) \ for (auto x : a) ...
#include <bits/stdc++.h> #define roop0(n) for (long long i = 0; i < n; i++) #define roop1(n) for (long long i = 1; i < n; i++) #define rep(i, a, b) for (long long i = a; i < b; i++) #define print(a) \ for (auto x : a) ...
[["-", 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
191
#include <bits/stdc++.h> using namespace std; #define gcd(m, n) __gcd(m, n) #define lcm(m, n) m *(n / gcd(m, n)) #define fast \ std::ios_base::sync_with_stdio(false); \ cin.tie(0); ...
#include <bits/stdc++.h> using namespace std; #define gcd(m, n) __gcd(m, n) #define lcm(m, n) m *(n / gcd(m, n)) #define fast \ std::ios_base::sync_with_stdio(false); \ cin.tie(0); ...
[["-", 51, 16, 31, 23, 0, 16, 31, 16, 17, 47], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 17, 20], ["-", 51, 16, 31, 23, 0, 16, 12, 16, 17, 47], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 17, 20], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
399
#include <bits/stdc++.h> #define int long long #define fast_io() \ ; \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
#include <bits/stdc++.h> #define int long long #define fast_io() \ ; \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
[["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19]]
1
363
#include <algorithm> #include <bitset> #include <cmath> #include <cstring> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <utility> #include <vector> #define rep(i, n) for (int i = ...
#include <algorithm> #include <bitset> #include <cmath> #include <cstring> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <utility> #include <vector> #define rep(i, n) for (int i = ...
[["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 20]]
1
303
#include <bits/stdc++.h> //全てのヘッダファイルをインクルード //ループ #define rep(i, n) for (int i = 0; i < (n); i++) //普通のループ #define repr(i, n) for (int i = n; i >= 0; i--) //逆ループ //型名省略 typedef long long ll; //値 static const ll MX = 100005; static const ll MX_ll = 1e18; const double PI = acos(-1); //π using namespace std; //ソート #d...
#include <bits/stdc++.h> //全てのヘッダファイルをインクルード //ループ #define rep(i, n) for (int i = 0; i < (n); i++) //普通のループ #define repr(i, n) for (int i = n; i >= 0; i--) //逆ループ //型名省略 typedef long long ll; //値 static const ll MX = 100005; static const ll MX_ll = 1e18; const double PI = acos(-1); //π using namespace std; //ソート #d...
[["-", 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
225
#include <bits/stdc++.h> #define ll long long #define fi first #define se second #define mp make_pair #define pb push_back #define pii pair<int, int> #define pll pair<long long, long long> #define fastio() \ ios_base::sync_with_stdio(false); ...
#include <bits/stdc++.h> #define ll long long #define fi first #define se second #define mp make_pair #define pb push_back #define pii pair<int, int> #define pll pair<long long, long long> #define fastio() \ ios_base::sync_with_stdio(false); ...
[["-", 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
352
#include <cstdio> int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); int x; scanf("%d", &x); int count = 0; while (a >= b) { b *= 2; count++; } while (b >= c) { c *= 2; count++; } if (count >= x) printf("Yes\n"); else printf("No\n"); return 0; }
#include <cstdio> int main() { int a, b, c; scanf("%d%d%d", &a, &b, &c); int x; scanf("%d", &x); int count = 0; while (a >= b) { b *= 2; count++; } while (b >= c) { c *= 2; count++; } if (count <= x) printf("Yes\n"); else printf("No\n"); return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
105
#include <algorithm> #include <bits/stdc++.h> #include <vector> using namespace std; using UL = unsigned int; using ULL = unsigned long long; using LL = long long; #define rep(i, n) for (int i = 0; i < (n); i++) // 配列a[0], a[1],... a[n]が与えられる。部分列で、すべての要素に対しa[j]<a[k] // (j<k)が成り立つような最長の部分列の長さを求める。 // T[k]を長さkの単調増加部分列の...
#include <algorithm> #include <bits/stdc++.h> #include <vector> using namespace std; using UL = unsigned int; using ULL = unsigned long long; using LL = long long; #define rep(i, n) for (int i = 0; i < (n); i++) // 配列a[0], a[1],... a[n]が与えられる。部分列で、すべての要素に対しa[j]<a[k] // (j<k)が成り立つような最長の部分列の長さを求める。 // T[k]を長さkの単調増加部分列の...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]]
1
173
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define FOR(i, m, n) for (int i = (m); i < (n); i++) #define sz(x) ((int)(x).size()) #define all(x) (x).begin(), (x).end() #define SORT(x) sort((x).begin(), (x).end()) #define RSORT(x) sort((x).rbegin(), (x).rend()) #define ...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define FOR(i, m, n) for (int i = (m); i < (n); i++) #define sz(x) ((int)(x).size()) #define all(x) (x).begin(), (x).end() #define SORT(x) sort((x).begin(), (x).end()) #define RSORT(x) sort((x).rbegin(), (x).rend()) #define ...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22]]
1
334
#include <bits/stdc++.h> #define ll long long int main() { ll a; ll b; ll c; ll k; ll ans = 0; std::cin >> a >> b >> c >> k; while (a < b) { b *= 2; ++ans; } while (b < c) { c *= 2; ++ans; } if (k <= ans) { std::cout << "Yes" << std::endl; } else { std::cout << "No" << st...
#include <bits/stdc++.h> #define ll long long int main() { ll a; ll b; ll c; ll k; ll ans = 0; std::cin >> a >> b >> c >> k; while (a >= b) { b *= 2; ++ans; } while (b >= c) { c *= 2; ++ans; } if (k >= ans) { std::cout << "Yes" << std::endl; } else { std::cout << "No" << ...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
105
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, K; cin >> A >> B >> C >> K; for (int i = 0; i < K; i++) { if (A < B && B < C) { cout << "Yes" << endl; return 0; } if (A > B) B *= 2; else if (B > C) C *= 2; } if (A < B && B < C) { cout << "Ye...
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C, K; cin >> A >> B >> C >> K; for (int i = 0; i < K; i++) { if (A < B && B < C) { cout << "Yes" << endl; return 0; } if (A >= B) B *= 2; else if (B >= C) C *= 2; } if (A < B && B < C) { cout << "...
[["-", 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
126
#include <bits/stdc++.h> #define INF 2000000000000000000 #define ll long long #define pll pair<ll, ll> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll A, B, C; cin >> A >> B >> C; ll K; cin >> K; for (ll i = 0; i < K; ++i) { if (A > B) { B *= 2; } else { ...
#include <bits/stdc++.h> #define INF 2000000000000000000 #define ll long long #define pll pair<ll, ll> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll A, B, C; cin >> A >> B >> C; ll K; cin >> K; for (ll i = 0; i < K; ++i) { if (A >= B) { B *= 2; } else {...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
127
from math import ceil a,b,c=map(int,input().split()) k=int(input()) for i in range(k): if b<a:b*=2 elif c<b:c*=2 if b>a and c>b: print('Yes') else:print('No')
from math import ceil a,b,c=map(int,input().split()) k=int(input()) for i in range(k): if b<=a:b*=2 elif c<=b:c*=2 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], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]]
5
77
A,B,C=map(int,input().split()) K=int(input()) for i in range(K): if B<A: B*=2 elif C<B: C*=2 else: break if A<B<C: print('Yes') else: print('No')
A,B,C=map(int,input().split()) K=int(input()) for i in range(K): if B<=A: B*=2 elif C<=B: C*=2 else: break if A<B<C: print('Yes') else: print('No')
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]]
5
74
#include <stdio.h> int main() { int r, g, b, k; scanf("%d%d%d%d", &r, &g, &b, &k); int cnt = 0; while (g <= r) g <<= 1, cnt++; while (b <= g) b <<= 1, cnt++; if (cnt <= k) puts("YES"); else puts("NO"); return 0; }
#include <stdio.h> int main() { int r, g, b, k; scanf("%d%d%d%d", &r, &g, &b, &k); int cnt = 0; while (g <= r) g <<= 1, cnt++; while (b <= g) b <<= 1, cnt++; if (cnt <= k) puts("Yes"); else puts("No"); return 0; }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
91
#include <bits/stdc++.h> #define f(i, a, b) for (ll i = a; i < b; i++) #define af(i, a, b) for (ll i = a; i >= b; i--) #define rep(i, a, b, k) for (ll i = a; i < b; i += k) #define arep(i, a, b, k) for (ll i = a; i >= b; i -= k) #define ff first #define ss second #define pb push_back #define mp make_pair #define sz(a)...
#include <bits/stdc++.h> #define f(i, a, b) for (ll i = a; i < b; i++) #define af(i, a, b) for (ll i = a; i >= b; i--) #define rep(i, a, b, k) for (ll i = a; i < b; i += k) #define arep(i, a, b, k) for (ll i = a; i >= b; i -= k) #define ff first #define ss second #define pb push_back #define mp make_pair #define sz(a)...
[["-", 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
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 10; int q[N]; int main() { cin.tie(0); cout.tie(0); ios::sync_with_stdio(0); int a, b, c, k; cin >> a >> b >> c >> k; while (a >= b) { k--; b *= 2; } while (b >= c) { c *= 2; k--; } if (k >= 0) cout << "Yes\n"; e...
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 10; int q[N]; int main() { cin.tie(0); cout.tie(0); ios::sync_with_stdio(0); int a, b, c, k; cin >> a >> b >> c >> k; while (a >= b) { k--; b *= 2; } while (b >= c) { c *= 2; k--; } if (k >= 0) cout << "Yes\n"; e...
[["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
117
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, k; bool flag = 0; 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) flag = 1; if (flag) cout << "Yes" << endl; else cout << "No" ...
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, k; bool flag = 0; 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) flag = 1; if (flag) cout << "Yes" << endl; else 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
108
import math a,b,c= map(int,input().split(" ")) k=int(input()) while(k>0 and b<a): b*=2 k-=1 while(k>0 and c<b): c*=2 k-=1 if a<b and b<c: print("Yes") else: print("No")
import math a,b,c= map(int,input().split(" ")) k=int(input()) while(k>0 and b<=a): b*=2 k-=1 while(k>0 and c<=b): c*=2 k-=1 if a<b and b<c: print("Yes") else: print("No")
[["-", 0, 52, 15, 23, 0, 679, 12, 666, 667, 18], ["+", 0, 52, 15, 23, 0, 679, 12, 666, 667, 19]]
5
88
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); int K = sc.nextInt(); int ans = 0; while (A < B) { B = B * 2; ans += 1; } while (B < C) { ...
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); int K = sc.nextInt(); int ans = 0; while (A >= B) { B = B * 2; ans += 1; } while (B >= C) { ...
[["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20]]
3
140
#ifdef DEBUG #else #pragma GCC optimize("O3,no-stack-protector") #pragma GCC optimize("unroll-loops") #if __cplusplus < 201703L #pragma GCC target("avx") #else #pragma GCC target("avx2") #endif #endif #define _USE_MATH_DEFINES #include <bits/stdc++.h> #define dump(x) cout << x << endl typedef int64_t Int; typedef ...
#ifdef DEBUG #else #pragma GCC optimize("O3,no-stack-protector") #pragma GCC optimize("unroll-loops") #if __cplusplus < 201703L #pragma GCC target("avx") #else #pragma GCC target("avx2") #endif #endif #define _USE_MATH_DEFINES #include <bits/stdc++.h> #define dump(x) cout << x << endl typedef int64_t Int; typedef ...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]]
1
362
#include <bits/stdc++.h> #define fo(i, a, b) for ((i) = (a); i <= (b); i++) #define rfo(i, a, b) for ((i) = (a); i >= (b); i--) #define inrange(x, y, z) (((x) >= (y)) && ((x) <= (z))) #define ALL(vec) ((vec).begin(), (vec).end()) #define SOR(vec) sort(ALL(vec)) #define UNI(vec) (vec).erase(unique(ALL(vec)), (vec).end()...
#include <bits/stdc++.h> #define fo(i, a, b) for ((i) = (a); i <= (b); i++) #define rfo(i, a, b) for ((i) = (a); i >= (b); i--) #define inrange(x, y, z) (((x) >= (y)) && ((x) <= (z))) #define ALL(vec) ((vec).begin(), (vec).end()) #define SOR(vec) sort(ALL(vec)) #define UNI(vec) (vec).erase(unique(ALL(vec)), (vec).end()...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22]]
1
189
import bisect,collections,copy,heapq,itertools,math,string import sys def S(): return sys.stdin.readline().rstrip() def M(): return map(int,sys.stdin.readline().rstrip().split()) def I(): return int(sys.stdin.readline().rstrip()) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def LS(): return lis...
import bisect,collections,copy,heapq,itertools,math,string import sys def S(): return sys.stdin.readline().rstrip() def M(): return map(int,sys.stdin.readline().rstrip().split()) def I(): return int(sys.stdin.readline().rstrip()) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def LS(): return lis...
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20]]
5
192
#pragma GCC optimize("O3") #include <bits/stdc++.h> typedef long long ll; using namespace std; template <class TH> void _dbg(const char *sdbg, TH h) { cerr << sdbg << '=' << h << endl; } template <class TH, class... TA> void _dbg(const char *sdbg, TH h, TA... a) { while (*sdbg != ',') cerr << *sdbg++; cerr <...
#pragma GCC optimize("O3") #include <bits/stdc++.h> typedef long long ll; using namespace std; template <class TH> void _dbg(const char *sdbg, TH h) { cerr << sdbg << '=' << h << endl; } template <class TH, class... TA> void _dbg(const char *sdbg, TH h, TA... a) { while (*sdbg != ',') cerr << *sdbg++; cerr <...
[["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19]]
1
240
#include <iostream> using namespace std; int main() { int a, b, c, k; cin >> a >> b >> c; while (a >= b && k > 0) { b *= 2; k--; } while (b >= c && k > 0) { c *= 2; k--; } if (a < b && b < c) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, k; cin >> a >> b >> c >> k; while (a >= b && k > 0) { b *= 2; k--; } while (b >= c && k > 0) { c *= 2; k--; } // cout<<a<<b<<c<<k<<endl; if (a < b && b < c) { cout << "Yes" << endl; } else { cout << "No" << endl...
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
101
/*In Case of TLE -> 1.Use Int instead of Long Long 2.Use FastIO 3.Use "\n" Instead of endl 4.Use Vector and Arrays instead of Sets,Maps(if possible) */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> //required #include <ext/pb_ds/tree_policy...
/*In Case of TLE -> 1.Use Int instead of Long Long 2.Use FastIO 3.Use "\n" Instead of endl 4.Use Vector and Arrays instead of Sets,Maps(if possible) */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> //required #include <ext/pb_ds/tree_policy...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]]
1
1,094
A,B,C = map(int, input().split()) K = int(input()) for i in range(1,K+1): if A > B: B = B * 2 elif B > C: C = C * 2 if A < B < C: print('Yes') exit() print('No')
A,B,C = map(int, input().split()) K = int(input()) for i in range(1,K+1): if A >= B: B = B * 2 elif B >= C: C = C * 2 if A < B < C: print('Yes') exit() print('No')
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 47], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 20]]
5
80
import sys input = sys.stdin.readline ''' ''' a, b, c = map(int, input().split()) k = int(input()) def solve(k, tup): a, b, c = tup while k > 0: if a >= b: b *= 2 k -= 1 continue if b >= c: c *= 2 k -= 1 continue ...
import sys input = sys.stdin.readline ''' ''' a, b, c = map(int, input().split()) k = int(input()) def solve(k, tup): a, b, c = tup while k > 0: if a >= b: b *= 2 k -= 1 continue if b >= c: c *= 2 k -= 1 continue ...
[["-", 0, 52, 8, 196, 0, 37, 0, 557, 0, 6], ["+", 0, 52, 8, 196, 0, 37, 0, 557, 0, 6], ["-", 0, 57, 64, 196, 0, 37, 0, 557, 0, 6], ["+", 0, 57, 64, 196, 0, 37, 0, 557, 0, 6], ["-", 75, 76, 8, 196, 0, 37, 0, 557, 0, 6], ["+", 75, 76, 8, 196, 0, 37, 0, 557, 0, 6]]
5
118
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a, b, c, k; cin >> a >> b >> c; cin >> k; while (b <= a && k > 0) { b *= 2; k--; } while (c <= b && k > 0) { c *= 2; k--; } if (a < b && b < c) { cout << "YES" << endl; } else { cout << ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a, b, c, k; cin >> a >> b >> c; cin >> k; while (b <= a && k > 0) { b *= 2; k--; } while (c <= b && k > 0) { c *= 2; k--; } if (a < b && b < c) { cout << "Yes" << endl; } else { cout << ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
110
#include <bits/stdc++.h> using namespace std; // define #define loop(i, a, n) for (int i = a; i < n; ++i) #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> using namespace std; // define #define loop(i, a, n) for (int i = a; i < n; ++i) #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[["-", 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
275
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int k = sc.nextInt(); while (k > 0 && b < a) { b *= 2; k--; } while (k > 0 && c < b) ...
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int k = sc.nextInt(); while (k > 0 && b <= a) { b *= 2; k--; } while (k > 0 && c <= b...
[["-", 0, 52, 15, 15, 0, 16, 12, 16, 17, 18], ["+", 0, 52, 15, 15, 0, 16, 12, 16, 17, 19]]
3
143
// ----- In the name of ALLAH, the Most Gracious, the Most Merciful ----- #include <bits/stdc++.h> using namespace std; #define NINJA \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
// ----- In the name of ALLAH, the Most Gracious, the Most Merciful ----- #include <bits/stdc++.h> using namespace std; #define NINJA \ ios_base::sync_with_stdio(0); \ cin.tie(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
191
//----AUTHOR:kkdrummer----/ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> //#include <boost/multiprecision/cpp_int.hpp> // using namespace boost::multiprecision; using namespace __gnu_pbds; using namespace std; typedef long long ll; typedef long double ld; typedef unordered_set<ll> usll; typedef uno...
//----AUTHOR:kkdrummer----/ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> //#include <boost/multiprecision/cpp_int.hpp> // using namespace boost::multiprecision; using namespace __gnu_pbds; using namespace std; typedef long long ll; typedef long double ld; typedef unordered_set<ll> usll; typedef uno...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]]
1
840
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define pb push_back #define sort(s) sort(s.begin(), s.end()) #define reverse(s) reverse(s.begin(), s.end()) #define rep(i, n) for (ll(i) = 0; (i) < (n); (i)++) const ll mod = 1e9 + 7; //最大公約数 ll gcd(ll a, ll b) { return b ?...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define pb push_back #define sort(s) sort(s.begin(), s.end()) #define reverse(s) reverse(s.begin(), s.end()) #define rep(i, n) for (ll(i) = 0; (i) < (n); (i)++) const ll mod = 1e9 + 7; //最大公約数 ll gcd(ll a, ll b) { return b ?...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
675
#include <bits/stdc++.h> using namespace std; using ll = long long; int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b); } int power(int x, int y, int p) { int res = 1; x = x % p; while (y > 0) { if (y & 1) res = (res * x) % p; y = y >> 1; x = (x * x) % p; } return r...
#include <bits/stdc++.h> using namespace std; using ll = long long; int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b); } int power(int x, int y, int p) { int res = 1; x = x % p; while (y > 0) { if (y & 1) res = (res * x) % p; y = y >> 1; x = (x * x) % p; } return r...
[["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 19]]
1
244
#include <bits/stdc++.h> using namespace std; #define ll long long int #define mp make_pair #define pb push_back #define F first #define S second #define mod 1000000007 #define dbg(n) cout << #n << ' ' << n << endl; #define dbg_v(v) \ cout << #v << ":"; ...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define mp make_pair #define pb push_back #define F first #define S second #define mod 1000000007 #define dbg(n) cout << #n << ' ' << n << endl; #define dbg_v(v) \ cout << #v << ":"; ...
[["-", 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
146
A,B,C=map(int,input().split()) K=int(input()) numbers=[A,B,C] for k in range(K): a=numbers[0] b=numbers[1] c=numbers[2] if c<a or c<b: c*=2 numbers[2]=c elif b < a: b*=2 numbers[1]=b if numbers[0]< numbers[1] and numbers[1]<numbers[2]: print('Yes') else: pr...
A,B,C=map(int,input().split()) K=int(input()) numbers=[A,B,C] for k in range(K): a=numbers[0] b=numbers[1] c=numbers[2] if c<=a or c<=b: c*=2 numbers[2]=c elif b <= a: b*=2 numbers[1]=b if numbers[0]< numbers[1] and numbers[1]<numbers[2]: print('Yes') else: ...
[["-", 8, 196, 0, 57, 15, 679, 31, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 19], ["-", 8, 196, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 19], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 667, 19]]
5
128
#include <bits/stdc++.h> using namespace std; #define pb push_back #define mp make_pair #define deb(a, b, c) \ cout << #a << " = " << (a) << ", " << #b << " = " << (b) << ", " << #c \ << " = " << (c) << endl; typedef long long int ll; typedef str...
#include <bits/stdc++.h> using namespace std; #define pb push_back #define mp make_pair #define deb(a, b, c) \ cout << #a << " = " << (a) << ", " << #b << " = " << (b) << ", " << #c \ << " = " << (c) << endl; typedef long long int ll; typedef str...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]]
1
131
#include <bits/stdc++.h> #define zton(i, n) for (int i = 0; i <= n; i++) #define oneton(i, n) for (int i = 1; i <= n; i++) #define fo(i, n) for (int i = 0; i < n; i++) #define fab(i, a, b) for (int i = a; i < b; i++) #define loop(i, b, a) for (int i = a; i >= b; i--) #define dsort(arr, n) sort(arr, arr + n, greater<in...
#include <bits/stdc++.h> #define zton(i, n) for (int i = 0; i <= n; i++) #define oneton(i, n) for (int i = 1; i <= n; i++) #define fo(i, n) for (int i = 0; i < n; i++) #define fab(i, a, b) for (int i = a; i < b; i++) #define loop(i, b, a) for (int i = a; i >= b; i--) #define dsort(arr, n) sort(arr, arr + n, greater<in...
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 43, 49, 50, 51, 4, 0, 5, 0, 6], ["+", 0, 43, 49, 50, 51, 4, 0, 5, 0, 6]]
1
498
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { int a, b, c, k; cin >> a >> b >> c; cin >> k; while (k > 0) { if (b < a) { b *= 2; } else if (c < b) { c *= 2; } k--; } if (a < b && b < c) { cou...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main() { int a, b, c, k; cin >> a >> b >> c; cin >> k; while (k > 0) { if (b <= a) { b *= 2; } else if (c <= b) { c *= 2; } k--; } if (a < b && b < c) { c...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]]
1
116
#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 n, k; cin >> n >> k; vector<ll> a(n); rep(i, n) cin >> a[i]; vector<ll> mul(n + 1, 1); rep(i, n) mul[i + 1] = mul[i] * a[i]; for (int i = k + 1; i...
#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 n, k; cin >> n >> k; vector<ll> a(n); rep(i, n) cin >> a[i]; vector<ll> mul(n + 1, 0); rep(i, n) mul[i + 1] = mul[i] + a[i]; for (int i = k + 1; i...
[["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 85], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33]]
1
188
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int inf = 1e9; int n, k; int main() { cin >> n >> k; vector<int> vec(n, 0); for (int i = 0; i < n; ++i) cin >> vec[i]; long long t = 1; for (int i = 0; i < k; ++i) t *= vec[i]; for (int i = k; i < n; ++i) { long long q ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int inf = 1e9; int n, k; int main() { cin >> n >> k; vector<int> vec(n, 0); for (int i = 0; i < n; ++i) cin >> vec[i]; long long t = 1; for (int i = 0; i < k; ++i) t += vec[i]; for (int i = k; i < n; ++i) { long long q ...
[["-", 8, 9, 0, 7, 8, 1, 0, 11, 17, 108], ["+", 8, 9, 0, 7, 8, 1, 0, 11, 17, 107], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 90], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 110], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 108], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 107]]
1
163
N=list(map(int,input().split())) A=list(map(int,input().split())) n=N[0] k=N[1] for i in range(k+1): if A[i]<A[k+i]: print("Yes") else: print("No")
N=list(map(int,input().split())) A=list(map(int,input().split())) n=N[0] k=N[1] for i in range(n-k): if A[i]<A[k+i]: print("Yes") else: print("No")
[["+", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
83
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n, k; cin >> n >> k; int arr[(int)2e5 + 100]; for (int i = 1; i <= n; i++) cin >> arr[i]; for (int i = k + 1; i <= n; i++) if (arr[i] >= arr[i - k]) cout << "Yes" << endl; ...
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n, k; cin >> n >> k; int arr[(int)2e5 + 100]; for (int i = 1; i <= n; i++) cin >> arr[i]; for (int i = k + 1; i <= n; i++) if (arr[i] > arr[i - k]) cout << "Yes" << endl; ...
[["-", 0, 7, 8, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 7, 8, 57, 15, 339, 51, 16, 17, 47]]
1
126
n,k=map(int,input().split()) I=list(map(int,input().split())) for i in range(k+1,n): if I[i-k]<I[i]: print("Yes") else: print("No")
n,k=map(int,input().split()) I=list(map(int,input().split())) for i in range(k,n): if I[i-k]<I[i]: print("Yes") else: print("No")
[["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
72
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define endl '\n' #define FAST \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define endl '\n' #define FAST \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 7, 8, 1, 0, 11, 17, 108], ["+", 8, 9, 0, 7, 8, 1, 0, 11, 17, 107], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 85], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 108], ["+", 0, 7, 8, 9, 0, 1...
1
427
N, K = map(int, input().split()) A = list(map(int, input().split())) ans = [] for i in range(K, N): if A[i] > A[i-K]: print("Yes") else: print("Yes")
N, K = map(int, input().split()) A = list(map(int, input().split())) for i in range(K, N): if A[i] > A[i-K]: 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], ["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 70], ["-", 0, 656, 0, 1, 0, 662, 12, 634, 0, 73], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
74
#include <iostream> using namespace std; int score[200000]; //={0}; int main() { int N, K; scanf("%d", &N); for (int i = 0; i < N; i++) { scanf("%d", &score[i]); } for (int i = 0; i < N - K; i++) { printf(score[i + K] > score[i] ? "Yes\n" : "No\n"); } return 0; }
#include <iostream> using namespace std; int score[200000]; //={0}; int main() { int N, K; scanf("%d %d", &N, &K); for (int i = 0; i < N; i++) { scanf("%d", &score[i]); } for (int i = 0; i < N - K; i++) { printf(score[i + K] > score[i] ? "Yes\n" : "No\n"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22]]
1
109
#include <bits/stdc++.h> #include <cmath> #include <string> using namespace std; #define ll long long int #define ld long double #define loop(i, n) for (int i = 0; i < n; i++) #define loops(i, s, n) for (int i = s; i < n; i++) #define pb push_back #define mp make_pair #define all(v) v.begin(), v.end() #define sz(x) (...
#include <bits/stdc++.h> #include <cmath> #include <string> using namespace std; #define ll long long int #define ld long double #define loop(i, n) for (int i = 0; i < n; i++) #define loops(i, s, n) for (int i = s; i < n; i++) #define pb push_back #define mp make_pair #define all(v) v.begin(), v.end() #define sz(x) (...
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 108], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 107], ["-", 49, 50, 51, 16, 31, 23, 0, 16, 17, 48], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 72], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 85], ["+", 8, 9, 0, ...
1
225
// include //------------------------------------------ #include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <limits> ...
// include //------------------------------------------ #include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <limits> ...
[["-", 0, 7, 10, 43, 49, 50, 51, 16, 17, 72], ["-", 0, 7, 10, 43, 49, 50, 51, 16, 12, 13]]
1
390
/* `-:://:::- `//:-------:/:` .+:--.......--:+` `+:--..`````..--//` .o:--..`` ``..--:o` ...
/* `-:://:::- `//:-------:/:` .+:--.......--:+` `+:--..`````..--//` .o:--..`` ``..--:o` ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
390
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n, k, a[200500]; cin >> n >> k; for (int i = 0; i < n; i++) cin >> a[i]; for (int i = k; i < n; i++) { if (a[i - k - 1] < a[i - 1]) cout << "Yes" << endl; else cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n, k, a[200500]; cin >> n >> k; for (int i = 0; i < n; i++) cin >> a[i]; for (int i = k; i < n; i++) { if (a[i - k] < a[i]) cout << "Yes" << endl; else cout << "No" << endl; } }
[["-", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["-", 51, 16, 31, 69, 341, 342, 0, 16, 12, 13], ["-", 51, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["-", 51, 16, 12, 69, 341, 342, 0, 16, 12, 13]]
1
105
#include <bits/stdc++.h> #define int long long #define rep(i, a, b) for (int i = a; i < b; i += 1) #define reps(i, a, b) for (int i = a; i >= b; i -= 1) #define vi vector<int> #define vvi vector<vector<int>> #define pb push_back #define pi pair<int, int> #define mp make_pair #define ff first #define ss second #define i...
#include <bits/stdc++.h> #define int long long #define rep(i, a, b) for (int i = a; i < b; i += 1) #define reps(i, a, b) for (int i = a; i >= b; i -= 1) #define vi vector<int> #define vvi vector<vector<int>> #define pb push_back #define pi pair<int, int> #define mp make_pair #define ff first #define ss second #define i...
[["-", 15, 339, 51, 16, 12, 69, 341, 342, 0, 22], ["+", 15, 339, 51, 16, 12, 69, 341, 342, 0, 22]]
1
427
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define all(v) (v).begin(), (v).end() using namespace std; using ll = long long; using pii = pair<int, int>; using vi = vector<int>; const ll LINF = 1LL << 60; const int INF = 1 << 29; const int MOD = 2019; int main() { int N, K; cin >> N >> K; vector<ll> A(N);...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define all(v) (v).begin(), (v).end() using namespace std; using ll = long long; using pii = pair<int, int>; using vi = vector<int>; const ll LINF = 1LL << 60; const int INF = 1 << 29; const int MOD = 2019; int main() { int N, K; cin >> N >> K; vector<ll> A(N);...
[["-", 51, 16, 12, 69, 341, 342, 0, 16, 12, 13], ["+", 12, 69, 341, 342, 0, 16, 31, 16, 12, 13], ["+", 51, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 12, 69, 341, 342, 0, 16, 12, 22]]
1
163
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int N = sc.nextInt(); int K = sc.nextInt(); int[] score = new int[N]; for (int i = 0; i < N; i++) { score[i] = sc.nextInt(); } for (int ...
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int N = sc.nextInt(); int K = sc.nextInt(); int[] score = new int[N]; for (int i = 0; i < N; i++) { score[i] = sc.nextInt(); } for (int ...
[["-", 12, 504, 71, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 16, 12, 504, 71, 16, 31, 16, 17, 33], ["-", 15, 15, 0, 16, 12, 504, 71, 16, 17, 33], ["-", 15, 15, 0, 16, 12, 504, 71, 16, 12, 499]]
3
158
#include <stdio.h> void main(void) { int N, K, A[200000], i, y; scanf("%d %d", &N, &K); for (i = 0; i < N; i++) scanf("%d", &A[i]); for (i = 0; i < N - K + 1; i++) { if (A[i] < A[i + K]) puts("Yes"); else puts("No"); } }
#include <stdio.h> void main(void) { int N, K, A[200000], i; scanf("%d %d", &N, &K); for (i = 0; i < N; i++) scanf("%d", &A[i]); for (i = 0; i < N - K; i++) { if (A[i] < A[i + K]) puts("Yes"); else puts("No"); } }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]]
0
110
#include <bits/stdc++.h> using namespace std; long long a[200000]; int n, k; int main() { cin >> n >> k; for (int i = 0; i < n; ++i) { cin >> a[i]; } for (int i = 0; i < n - k; ++i) { if (a[i] >= a[i + 3]) { cout << "No" << endl; } else { cout << "Yes" << endl; } } }
#include <bits/stdc++.h> using namespace std; long long a[200000]; int n, k; int main() { cin >> n >> k; for (int i = 0; i < n; ++i) { cin >> a[i]; } for (int i = 0; i < n - k; ++i) { if (a[i] >= a[i + k]) { cout << "No" << endl; } else { cout << "Yes" << endl; } } }
[["-", 51, 16, 12, 69, 341, 342, 0, 16, 12, 13], ["+", 51, 16, 12, 69, 341, 342, 0, 16, 12, 22]]
1
106
#include <bits/stdc++.h> using namespace std; int main() { int N, K; cin >> N >> K; vector<int> A(N); for (int i = 0; i < N; i++) { cin >> A.at(i); } for (int i = K + 1; i <= N; i++) { if (A.at(i - K) < A.at(i)) { cout << "Yes" << endl; } else { cout << "No" << endl; } } }
#include <bits/stdc++.h> using namespace std; int main() { int N, K; cin >> N >> K; vector<int> A(N); for (int i = 0; i < N; i++) { cin >> A.at(i); } for (int i = K; i < N; i++) { if (A.at(i - K) < A.at(i)) { cout << "Yes" << endl; } else { cout << "No" << endl; } } }
[["-", 0, 7, 10, 43, 49, 50, 51, 16, 17, 72], ["-", 0, 7, 10, 43, 49, 50, 51, 16, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]]
1
114
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <math.h> #include <queue> using namespace std; int main() { long int a[200005], n, k; memset(a, 0, sizeof(a)); cin >> n >> k; for (long int i = 0; i < n; i++) { cin >> a[i]; } for (long int i = k; i <...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <math.h> #include <queue> using namespace std; int main() { long int a[200005], n, k; memset(a, 0, sizeof(a)); cin >> n >> k; for (long int i = 0; i < n; i++) { cin >> a[i]; } for (long int i = k; i <...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
128
#include <stdio.h> #include <string.h> int main() { int K, N; scanf("%d %d", &N, &K); long long int num[100] = {0}; for (int i = 0; i < N; i++) { scanf("%lld", &num[i]); } for (int i = 0; i < N; i++) { if (num[i] < num[i + K]) { // misal 0 1 2 3 4 5 dan K nya 2 printf("Yes\n"); // bandingi...
#include <stdio.h> #include <string.h> int main() { int K, N; scanf("%d %d", &N, &K); long long int num[N] = {0}; for (int i = 0; i < N; i++) { scanf("%lld", &num[i]); } for (int i = 0; i < N - K; i++) { if (num[i] < num[i + K]) { // misal 0 1 2 3 4 5 dan K nya 2 printf("Yes\n"); // bandin...
[["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 22], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 22]]
1
126
#include <stdio.h> int main() { int n, k; scanf("%d %d", &n, &k); int lt[n]; for (int i = 0; i < n; i++) { scanf("%d", &lt[i]); } int c = n - k; for (int i = 0; i < c; i++) { if (lt[i] <= lt[i + c]) { puts("No"); } else { puts("Yes"); } } return 0; }
#include <stdio.h> int main() { int n, k; scanf("%d %d", &n, &k); int lt[n]; for (int i = 0; i < n; i++) { scanf("%d", &lt[i]); } int c = n - k; for (int i = 0; i < c; i++) { if (lt[i] < lt[i + k]) { puts("Yes"); } else { puts("No"); } } return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["-", 15, 23, 0, 16, 12, 69, 71, 16, 12, 22], ["+", 15, 23, 0, 16, 12, 69, 71, 16, 12, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
120
#include <stdio.h> int main() { int N, K; scanf("%d %d", &N, &K); int total[N]; int i; for (i = 0; i < N; i++) { scanf("%d", &total[N]); } for (i = K; i < N; i++) { if (total[i - K] < total[i]) { printf("Yes\n"); } else { printf("No\n"); } } return 0; }
#include <stdio.h> int main() { int N, K; scanf("%d %d", &N, &K); int total[N]; int i; for (i = 0; i < N; i++) { scanf("%d", &total[i]); } for (i = K; i < N; i++) { if (total[i - K] < total[i]) { printf("Yes\n"); } else { printf("No\n"); } } return 0; }
[["-", 0, 2, 3, 4, 0, 66, 28, 69, 71, 22], ["+", 0, 2, 3, 4, 0, 66, 28, 69, 71, 22]]
0
116
n, k = map(int, input().split()) al = list(map(int, input().split())) for i in range(n-k+1, n): if al[i-k] < al[i]: print('Yes') else: print('No')
n, k = map(int, input().split()) al = list(map(int, input().split())) for i in range(k, n): if al[i-k] < al[i]: print('Yes') else: print('No')
[["-", 12, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["-", 12, 652, 3, 4, 0, 657, 31, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
74
N, K = map(int, input().split()) A = list(map(int, input().split())) ACC = [] ACC.append(0) sum = 0 for a in A: sum += a ACC.append(sum) L = N-K prev = ACC[K] - ACC[0] for i in range(1, L): score = ACC[i+K] - ACC[i] if prev < score: print("Yes") else: print("No") prev = score
N, K = map(int, input().split()) A = list(map(int, input().split())) ACC = [] ACC.append(0) sum = 0 for a in A: sum += a ACC.append(sum) L = N-K+1 prev = ACC[K] - ACC[0] for i in range(1, L): score = ACC[i+K] - ACC[i] if prev < score: print("Yes") else: print("No") prev = scor...
[["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
121
n,k =map(int,input().split()) a=[int(x ) for x in input().split()] for i in range(k,n): if a[i-k]>a[i-1]: print("Yes") else: print("No")
n,k =map(int,input().split()) a=[int(x ) for x in input().split()] for i in range(k,n): if a[i-k]<a[i]: print("Yes") else: print("No")
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["-", 0, 57, 15, 666, 0, 206, 206, 657, 17, 33], ["-", 0, 57, 15, 666, 0, 206, 206, 657, 12, 612]]
5
73
N,K = list(map(int, input().split())) A = [int(i) for i in input().split()] for i in range(1,len(A)): if A[i] > A[i-1]: print("Yes") else: print("No")
N,K = list(map(int, input().split())) A = [int(i) for i in input().split()] for i in range(K,N): if A[i] > A[i-K]: print("Yes") else: print("No")
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["-", 0, 7, 12, 652, 3, 4, 0, 652, 63, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["-", 0, 57, 15, 666, 0, 206, 206, 657, 12, 612], ["+", 0, ...
5
77
n,k=map(int,input().split()) a=list(map(int,input().split())) for i in range(k,n): if a[k]>a[i-k]: print('Yes') else: print('No')
n,k=map(int,input().split()) a=list(map(int,input().split())) for i in range(k,n): if a[i]>a[i-k]: print('Yes') else: print('No')
[["-", 8, 196, 0, 57, 15, 666, 0, 206, 206, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 206, 22]]
5
70
#include <stdio.h> int main() { int n, k; scanf("%d %d", &n); int arr[n]; for (int i = 0; i < n; i++) { scanf("%d", &arr[i]); if (i >= k) { arr[i] > arr[i - k] ? puts("Yes") : puts("No"); } } return 0; }
#include <stdio.h> int main() { int n, k; scanf("%d %d", &n, &k); int arr[n]; for (int i = 0; i < n; i++) { scanf("%d", &arr[i]); if (i >= k) { arr[i] > arr[i - k] ? puts("Yes") : puts("No"); } } return 0; }
[["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22]]
1
95
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; #define int ll const ll mod = 1e9 + 7; main() { int n, k; cin >> n; vector<ll> a(n); for (int i = 0; i < n; i++) cin >> a[i]; for (int i = k; i < n; i++) { if (a[i - k] < a[i]) { cout << "Yes" <<...
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; #define int ll const ll mod = 1e9 + 7; main() { int n, k; cin >> n >> k; vector<ll> a(n); for (int i = 0; i < n; i++) cin >> a[i]; for (int i = k; i < n; i++) { if (a[i - k] < a[i]) { cout << "Ye...
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
129
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int a[] = new int[n + 1]; for (int i = 1; i <= n; i++) { a[i] = sc.nextInt(); } for (int i = k + 1; i <= n; i++) { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int a[] = new int[n + 1]; for (int i = 1; i <= n; i++) { a[i] = sc.nextInt(); } for (int i = k + 1; i <= n; i++) { ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
150
N,K = input().split() scores = [int(s) for s in input().split()] N = int(N) K = int(K) for i in range(K,N): if scores[i] <= scores[i-(K-1)]: print("No") else: print("Yes")
N,K = input().split() scores = [int(s) for s in input().split()] N = int(N) K = int(K) for i in range(K,N): if scores[i] <= scores[i-K]: print("No") else: print("Yes")
[["-", 15, 666, 0, 206, 206, 657, 12, 23, 0, 24], ["-", 0, 206, 206, 657, 12, 23, 0, 657, 17, 33], ["-", 0, 206, 206, 657, 12, 23, 0, 657, 12, 612], ["-", 15, 666, 0, 206, 206, 657, 12, 23, 0, 25]]
5
82
n, k = map(int, input().split()) a = list(map(int, input().split())) for i in range(n-k-1): ab = a[i] aa = a[k+i] if aa > ab: print("Yes") else: print("No")
n, k = map(int, input().split()) a = list(map(int, input().split())) for i in range(n-k): ab = a[i] aa = a[k+i] if aa > ab: print("Yes") else: print("No")
[["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
78
N,K=map(int,input().split()) A=list(map(int,input().split())) for i in range(K+1): if A[i+K]>A[i]: print('Yes') else: print('No')
N,K=map(int,input().split()) A=list(map(int,input().split())) for i in range(N-K): if A[i+K]>A[i]: print('Yes') else: print('No')
[["+", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]]
5
70
#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 n, k; cin >> n >> k; vector<ll> score(n); rep(i, n) cin >> score[i]; rep(i, n - k) { if (score[i] < score[k + 1]) cout << "Yes" << end...
#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 n, k; cin >> n >> k; vector<ll> score(n); rep(i, n) cin >> score[i]; rep(i, n - k) { // cout << score[1] << ':' << score[k+i] << '='; if...
[["-", 51, 16, 12, 69, 341, 342, 0, 16, 12, 13], ["+", 51, 16, 12, 69, 341, 342, 0, 16, 12, 22]]
1
115
#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; //マクロ...
[["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 90], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 110], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 108], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 107]]
1
333
#pragma GCC optimize("Ofast") #include "bits/stdc++.h" #define int long long #define double long double #define PI 3.141592653589793 #define FAST \ ios::sync_with_stdio(false); \ cin.tie(NULL); ...
#pragma GCC optimize("Ofast") #include "bits/stdc++.h" #define int long long #define double long double #define PI 3.141592653589793 #define FAST \ ios::sync_with_stdio(false); \ cin.tie(NULL); ...
[["+", 0, 7, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 103, 0, 104], ["+", 8, 9, 0, 1, 0, 16, 12, 103, 0, 44], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]]
1
181
n, k = [int(x) for x in input().split()] a = [int(x) for x in input().split()] for i in range(k, n): print("Yes" if a[k + i] > a[i] else "No")
n, k = [int(x) for x in input().split()] a = [int(x) for x in input().split()] for i in range(k, n): print("Yes" if a[i] > a[i - k] else "No")
[["-", 0, 41, 0, 666, 0, 206, 206, 657, 31, 22], ["-", 0, 41, 0, 666, 0, 206, 206, 657, 17, 72], ["+", 0, 41, 0, 666, 0, 206, 206, 657, 17, 33], ["+", 0, 41, 0, 666, 0, 206, 206, 657, 12, 22]]
5
70
n, k = map(int, input().split()) a = list(map(int, input().split())) for i in range(k, n): if a[i-k] < a[k]: print("Yes") else: print("No")
n, k = map(int, input().split()) a = list(map(int, input().split())) for i in range(k, n): if a[i-k] < a[i]: print("Yes") else: print("No")
[["-", 8, 196, 0, 57, 15, 666, 0, 206, 206, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 206, 22]]
5
70
n,k,*a=map(int,open(0).read().split()) for i in range(n-k):print('YNeos'[a[i+k]>a[i]::2])
n,k,*a=map(int,open(0).read().split()) for i in range(n-k):print('YNeos'[a[i+k]<=a[i]::2])
[["-", 3, 4, 0, 206, 206, 663, 0, 666, 667, 47], ["+", 3, 4, 0, 206, 206, 663, 0, 666, 667, 19]]
5
56
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (ll i = 0; i < n; i++) #define per(i, n) for (ll i = n - 1; i >= 0; i--) #define REP(i, n) for (ll i = 1; i < n; i++) #define PER(i, n) for (ll i = n; i >= 1; i--) #define sz(x) int(x.size()) #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (ll i = 0; i < n; i++) #define per(i, n) for (ll i = n - 1; i >= 0; i--) #define REP(i, n) for (ll i = 1; i < n; i++) #define PER(i, n) for (ll i = n; i >= 1; i--) #define sz(x) int(x.size()) #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(...
[["-", 0, 16, 31, 69, 341, 342, 0, 16, 31, 22], ["-", 0, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 16, 31, 69, 341, 342, 0, 16, 12, 22]]
1
427
N, K = map(int, input().split()) A = map(int, input().split()) answers = ["Yes" if A[i] > A[i-K] else "No" for i in range(K, N)] print("\n".join(answers))
N, K = map(int, input().split()) A = list(map(int, input().split())) answers = ["Yes" if A[i] > A[i-K] else "No" for i in range(K, N)] print("\n".join(answers))
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
73
N,K = map(int,input().split()) T = list(map(int,input().split())) for p in range(N-K): if T[p] - T[p+K] >0: print('Yes') else: print('No')
N,K = map(int,input().split()) T = list(map(int,input().split())) for p in range(N-K): if T[p] - T[p+K] <0: print('Yes') else: print('No')
[["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18]]
5
72
N,K=map(int,input().split()) A=list(map(int,input().split())) score=1 for i in range(K): score*=A[i] for i in range(K,N): pre=score score//=A[i-K] score*=A[i] if score>pre: print("Yes") else: print("No")
N,K=map(int,input().split()) A=list(map(int,input().split())) score=1 for i in range(K): score+=A[i] for i in range(K,N): pre=score score-=A[i-K] score+=A[i] if score>pre: print("Yes") else: print("No")
[["-", 0, 7, 8, 196, 0, 1, 0, 677, 17, 108], ["+", 0, 7, 8, 196, 0, 1, 0, 677, 17, 107], ["-", 0, 7, 8, 196, 0, 1, 0, 677, 17, 691], ["+", 0, 7, 8, 196, 0, 1, 0, 677, 17, 110]]
5
96
#include <bits/stdc++.h> using namespace std; int main() { int n, k; cin >> n >> k; vector<long int> a(n); for (long int i = 0; i < n; i++) cin >> a[i]; for (long int i = 0; i < n - k; i++) { if (a[i] > a[i + k]) cout << "Yes" << endl; else cout << "No" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int n, k; cin >> n >> k; vector<long int> a(n); for (long int i = 0; i < n; i++) cin >> a[i]; for (long int i = 0; i < n - k; i++) { if (a[i] < a[i + k]) cout << "Yes" << endl; else cout << "No" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
105
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[] test = new int[n]; for (int i = 0; i < n; i++) { test[i] = sc.nextInt(); } for (int i = k + 1; i < n; i++) { ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[] test = new int[n]; for (int i = 0; i < n; i++) { test[i] = sc.nextInt(); } for (int i = k; i < n; i++) { if ...
[["-", 0, 7, 502, 503, 49, 200, 51, 16, 17, 72], ["-", 0, 7, 502, 503, 49, 200, 51, 16, 12, 499]]
3
150