diff options
author | crupest <crupest@outlook.com> | 2021-02-24 15:39:50 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-24 15:39:50 +0800 |
commit | fc69005e77df8bd4b1a93be8dedf66f8feb39f82 (patch) | |
tree | 63b0a0acb9028befbdf36ee51f497e711d074f16 /acwing/5.cpp | |
parent | bffd9c6c642e2d95ec1dafb69b03505f6fbddc0d (diff) | |
download | solutions-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.cpp | 4 |
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]);
}
}
|