-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathC.java
More file actions
25 lines (22 loc) · 694 Bytes
/
Copy pathC.java
File metadata and controls
25 lines (22 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package atcoder.m_solutions;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
public final class C {
public static void main(String[] args) {
final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
final int n = in.nextInt();
final int k = in.nextInt();
final int[] arr = new int[n];
for (int i = 0; i < n; i++) {
arr[i] = in.nextInt();
}
for (int i = k; i < n; i++) {
if (arr[i - k] >= arr[i]) {
System.out.println("No");
} else {
System.out.println("Yes");
}
}
}
}