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 9d44cf4 commit 2d1423fCopy full SHA for 2d1423f
21/4.cpp
@@ -46,7 +46,7 @@ int main(void) {
46
// 최단 거리 테이블을 모두 무한으로 초기화
47
fill_n(d, 501, INF);
48
49
- // 다익스트라 알고리즘을 수행
+ // 벨만 포드 알고리즘을 수행
50
bool negative_cycle = bf(1); // 1번 노드가 시작 노드
51
52
if (negative_cycle) {
0 commit comments