-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.java
38 lines (30 loc) · 861 Bytes
/
Main.java
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
35
36
37
38
import java.util.*;
import java.io.*;
class Main {
static BufferedReader br;
static BufferedWriter bw;
static void initIO() {
br = new BufferedReader(new InputStreamReader(System.in));
bw = new BufferedWriter(new OutputStreamWriter(System.out));
}
static void closeIO() throws IOException {
br.close();
bw.flush();
bw.close();
}
public static void main(String[] args) throws IOException {
initIO();
StringTokenizer st = new StringTokenizer(br.readLine());
int m = Integer.parseInt(st.nextToken());
int n = Integer.parseInt(st.nextToken());
int[][] board = new int[m][n];
for (int i = 0; i < m; i++) {
st = new StringTokenizer(br.readLine());
for (int j = 0; j < n; j++) {
board[i][j] = Integer.parseInt(st.nextToken());
}
}
bw.write("-1");
closeIO();
}
}