-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolution.java
More file actions
26 lines (23 loc) · 777 Bytes
/
Solution.java
File metadata and controls
26 lines (23 loc) · 777 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
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static int getCount(String regEx, int length) {
int count = 0;
return count;
}
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
Scanner in = new Scanner(System.in);
int testCases = in.nextInt();
int []results = new int[testCases];
for(int i = 0; i < testCases; i++){
String regEx = in.next();
int length = in.nextInt();
results[i] = getCount(regEx, length);
}
System.out.println(Arrays.toString(results));
}
}