Skip to content

Commit 5bbee8c

Browse files
authored
Update 9.cpp
1 parent c41f9c1 commit 5bbee8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

10/9.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void topologySort() {
3535
result.push_back(now);
3636
// 해당 원소와 연결된 노드들의 진입차수에서 1 빼기
3737
for (int i = 0; i < graph[now].size(); i++) {
38-
result[graph[now][i]] = max(result[graph[now][i]], result[now] + times[graph[now][i]]);
38+
result[graph[now][i]] = max(result[graph[now][i]], result[now] + times[graph[now][i]]);
3939
indegree[graph[now][i]] -= 1;
4040
// 새롭게 진입차수가 0이 되는 노드를 큐에 삽입
4141
if (indegree[graph[now][i]] == 0) {
@@ -69,4 +69,4 @@ int main(void) {
6969
}
7070

7171
topologySort();
72-
}
72+
}

0 commit comments

Comments
 (0)