Untitled
unknown
plain_text
2 years ago
627 B
6
Indexable
package Queue;
import java.util.Scanner;
public class Validate {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int tc = scanner.nextInt();
for (int Case = 1; Case <=tc; Case++) {
int n = scanner.nextInt();
int m = scanner.nextInt();
int [][]arr = new int [n][m];
boolean[][]check = new boolean[n][m];
for (int i = 0; i < n; i++) {
String string = scanner.next();
for (int j = 0; j < m; j++) {
if(string.charAt(j)=='#'){
arr[i][j]=1;
}else{
arr[i][j]=0;
}
check[i][j]=false;
}
}
}
}
}
Editor is loading...