From fc69005e77df8bd4b1a93be8dedf66f8feb39f82 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 24 Feb 2021 15:39:50 +0800 Subject: Add acwing problem 7. --- acwing/5.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'acwing/5.cpp') diff --git a/acwing/5.cpp b/acwing/5.cpp index e451a2d..a88fba6 100644 --- a/acwing/5.cpp +++ b/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