- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathS5644.java
More file actions
Latest commit
62 lines (44 loc) · 1.5 KB
/
Copy pathS5644.java
File metadata and controls
62 lines (44 loc) · 1.5 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
importjava.io.*;
publicclassS5644 {
staticint[] dx = {0, -1, 9, 1, 0};
staticint[] dy = {0, 0, 1, 0, -1};
staticintM;
staticintA;
staticint[][] person;
staticint[][] battery;
staticint[][] map;
publicstaticvoidmain(String[] args) throwsIOException {
BufferedReaderbuffer = newBufferedReader(newInputStreamReader(System.in));
intT = Integer.parseInt(buffer.readLine());
intt = 0;
while (T > t) {
String[] input= buffer.readLine().split(" ");
person = newint[10][10];
M = Integer.parseInt(input[0]);
A = Integer.parseInt(input[1]);
person = newint[2][M];
for(inti = 0; i < 2; i++) {
input = buffer.readLine().split(" ");
for (intj = 0; j < M; i++) {
person[i][j] = Integer.parseInt(input[j]);
}
}
for(inti = 0; i < A; i++){
input = buffer.readLine().split(" ");
for(intj = 0; j < 4; j++){
battery[i][j] = Integer.parseInt(input[j]);
}
}
for(inti = 0; i < M; i++){
// person1(i);
}
}
// person1이 지나간 자리는 1
// person2이 지나간 자리는 2
// person이 중복된 자리는 3
// 이후 미리 깔아두고 베터리 배열에 넣기
}
// public static void person1(int n){
// int nx = x + dx[n];
// }
}