Skip to content

Commit 5638ed2

Browse files
committed
0922
1 parent fb970c9 commit 5638ed2

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

.idea/modules.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BOJ/gold/BOJ17070/BOJ17070.iml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>

BOJ/gold/BOJ17070/src/Main.java

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import java.io.BufferedReader;
2+
import java.io.IOException;
3+
import java.io.InputStreamReader;
4+
import java.util.Deque;
5+
import java.util.LinkedList;
6+
7+
public class Main {
8+
static int N;
9+
static int count;
10+
public static void main(String[] args) throws IOException {
11+
12+
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
13+
N = Integer.parseInt(br.readLine());
14+
int[][] state = new int[N][N];
15+
int[][] visited = new int[N][N];
16+
17+
for (int i = 0; i < N; i++) {
18+
String[] s = br.readLine().split(" ");
19+
for (int j = 0; j < N; j++) {
20+
state[i][j] = Integer.parseInt(s[j]);
21+
}
22+
}
23+
DFS(0,1,0);
24+
25+
26+
27+
}
28+
29+
private static void DFS(int col, int row, int direction) {
30+
if (col==N-1 && col==N-1){
31+
count++;
32+
return;
33+
}
34+
if (direction==0){
35+
if (row==N-1){
36+
return;
37+
}
38+
39+
40+
}
41+
else if (direction==1){
42+
43+
}
44+
else if (direction==2){
45+
46+
}
47+
}
48+
}
49+

0 commit comments

Comments
 (0)