diff --git "a/problems/kamacoder/0095.\345\237\216\345\270\202\351\227\264\350\264\247\347\211\251\350\277\220\350\276\223II.md" "b/problems/kamacoder/0095.\345\237\216\345\270\202\351\227\264\350\264\247\347\211\251\350\277\220\350\276\223II.md" index f9cf8151b0..7ab9fb760a 100644 --- "a/problems/kamacoder/0095.\345\237\216\345\270\202\351\227\264\350\264\247\347\211\251\350\277\220\350\276\223II.md" +++ "b/problems/kamacoder/0095.\345\237\216\345\270\202\351\227\264\350\264\247\347\211\251\350\277\220\350\276\223II.md" @@ -512,8 +512,8 @@ def main(): count[next_node] += 1 if next_node not in d: d.append(next_node) - if count[next_node] == n: # 如果某个点松弛了n次,说明有负回路 - flag = True + if count[next_node] == n: # 如果某个点松弛了n次,说明有负回路 + flag = True if flag: break