From a7a2582fc75aa1b2d4e56a01e07174f4083f203d Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 24 Feb 2021 15:39:50 +0800 Subject: import(solutions): Add acwing problem 7. --- works/solutions/acwing/5.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'works/solutions/acwing/5.cpp') diff --git a/works/solutions/acwing/5.cpp b/works/solutions/acwing/5.cpp index e451a2d..a88fba6 100644 --- a/works/solutions/acwing/5.cpp +++ b/works/solutions/acwing/5.cpp @@ -39,9 +39,7 @@ int main() { k *= 2; } - if (amount != 0) { - ZeroOnePack(amount * v[i], amount * w[i]); - } + ZeroOnePack(amount * v[i], amount * w[i]); } } -- cgit v1.2.3