-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrafficlight.java
More file actions
34 lines (23 loc) · 779 Bytes
/
Copy pathtrafficlight.java
File metadata and controls
34 lines (23 loc) · 779 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
29
30
31
32
33
34
package RandomCF;
import java.util.Scanner;
public class trafficlight {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int testcases = input.nextInt();
for(int i = 0; i<testcases; i++){
int len = input.nextInt();
String curt = input.next();
char curr = curt.charAt(0);
String word = input.next();
String biggi = word+word;
char[] full = biggi.toCharArray();
System.out.println(maxSec(len, curr, full));
}
}
public static int maxSec(int len, char curr, char[] full){
int[] count = new int[len];
int[] pos = new int[len];
for(int j = 0; j<len; j++){
}
}
}