-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBcowsA.java
More file actions
28 lines (28 loc) · 1002 Bytes
/
BcowsA.java
File metadata and controls
28 lines (28 loc) · 1002 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
26
27
28
import java.util.*;
import java.io.*;
public class BcowsA {
public static void main(String[] args) throws IOException {
String gdCode = "";
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
while (t-- > 0) {
int n = sc.nextInt();
int k = sc.nextInt();
long[] a = new long[n];
for (int i = 0; i < n; i++) a[i] = sc.nextLong();
for (int i = 0; i < n; i++) {
long targetSkill = a[i];
List<Long> others = new ArrayList<>();
for (int j = 0; j < n; j++) if (i != j) others.add(a[j]);
int goodPositions = 0;
goodPositions = countGood(targetSkill, others, k);
System.out.print(goodPositions + (i == n - 1 ? "" : " "));
}
System.out.println();
}
}
private static int countGood(long skill, List<Long> others, int k) {
int count = 0;
return count;
}
}