From 686341a129eed94f96dc6da6c267591516f0af1f Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 24 Mar 2021 16:32:51 +0800 Subject: import(solutions): Fix acwing 1247. --- works/solutions/acwing/1247.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/works/solutions/acwing/1247.cpp b/works/solutions/acwing/1247.cpp index 132c63c..1fd4412 100644 --- a/works/solutions/acwing/1247.cpp +++ b/works/solutions/acwing/1247.cpp @@ -29,7 +29,7 @@ int main() { result += 2 * max; } - if (M == 1 && min > 0) { + if (M != 0 && min > 0) { result -= 2 * min; } -- cgit v1.2.3