We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2072492 commit 753537dCopy full SHA for 753537d
BOJ/1000-5000번/YJ_1613.java
@@ -20,7 +20,7 @@ public static void main(String[] args) throws IOException {
20
for(int d=1; d<=n; d++){
21
for(int i=1; i<=n; i++){
22
for(int j=1; j<=n; j++){
23
- if(graph[i][k] && graph[k][j]){ //경유가 가능할 경우 i > d > j 사건으로 연결됨
+ if(graph[i][d] && graph[d][j]){ //경유가 가능할 경우 i > d > j 사건으로 연결됨
24
graph[i][j] = true;
25
}
26
0 commit comments