We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bc2957 commit 07b8b0cCopy full SHA for 07b8b0c
src/math/day_of_the_week.cpp
@@ -16,7 +16,7 @@ class Solution {
16
days += monthDays[i];
17
}
18
if (((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) && month > 2) {
19
- days += day + 1;
+ days += 1;
20
21
days += day;
22
return week[(days + 3) % 7];
test/lib/lib_test.cpp
@@ -1,4 +1,4 @@
1
-// 执行编译时间:2023-12-30 13:30:33
+// 执行编译时间:2023-12-30 13:34:21
2
#include <gtest/gtest.h>
3
#include <lib.hpp>
4
0 commit comments