summaryrefslogtreecommitdiff
path: root/acwing/5.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-24 15:39:50 +0800
committercrupest <crupest@outlook.com>2021-02-24 15:39:50 +0800
commitfc69005e77df8bd4b1a93be8dedf66f8feb39f82 (patch)
tree63b0a0acb9028befbdf36ee51f497e711d074f16 /acwing/5.cpp
parentbffd9c6c642e2d95ec1dafb69b03505f6fbddc0d (diff)
downloadsolutions-fc69005e77df8bd4b1a93be8dedf66f8feb39f82.tar.gz
solutions-fc69005e77df8bd4b1a93be8dedf66f8feb39f82.tar.bz2
solutions-fc69005e77df8bd4b1a93be8dedf66f8feb39f82.zip
Add acwing problem 7.
Diffstat (limited to 'acwing/5.cpp')
-rw-r--r--acwing/5.cpp4
1 files changed, 1 insertions, 3 deletions
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]);
}
}