From 0f1c57378608b4f60baadaac209d3d54da8ca62c Mon Sep 17 00:00:00 2001 From: Shengjie Xu Date: Wed, 5 Nov 2025 11:47:51 -0500 Subject: [PATCH] =?UTF-8?q?Bug=E4=BF=AE=E5=A4=8D=EF=BC=9APython=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E8=B4=9F=E6=9D=83=E5=9B=9E=E8=B7=AF=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\264\350\264\247\347\211\251\350\277\220\350\276\223II.md" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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