From ada84438ade8cf6435a811528dea75bac56d160b Mon Sep 17 00:00:00 2001 From: xusun000 <2235861811@qq.com> Date: Tue, 30 Nov 2021 21:04:42 +0800 Subject: [PATCH] add 2021 --- code_graph_2021.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code_graph_2021.cpp b/code_graph_2021.cpp index fbd1e83..5a05803 100644 --- a/code_graph_2021.cpp +++ b/code_graph_2021.cpp @@ -10,10 +10,10 @@ int IsExistEL(MGraph G) { int oddCount = 0; for (int i = 0;i < G.numVertices;i++) { int tmpOdd = 0; - for (int j = 0;j < G.numVertices;j++) { + for (int j = 0;j < G.numVertices;j++) {//遍历每一行,将个数统计出来 tmpOdd += G.Edge[i][j]; } - if (tmpOdd % 2 == 1) { + if (tmpOdd % 2 == 1) {//如果个数是奇数,就将oddCount+1 oddCount++; if (oddCount > 2) { return 0;