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 | aea8b723789575aaa57b809369e183e22b4c1cf9 (patch) | |
tree | a1321197d96ed8861235e1ed665eef922df6c5c0 /works/solutions/acwing/5.cpp | |
parent | af32dd10a12e007f92fad878322893e227f6c690 (diff) | |
download | crupest-aea8b723789575aaa57b809369e183e22b4c1cf9.tar.gz crupest-aea8b723789575aaa57b809369e183e22b4c1cf9.tar.bz2 crupest-aea8b723789575aaa57b809369e183e22b4c1cf9.zip |
import(solutions): Add acwing problem 7.
Diffstat (limited to 'works/solutions/acwing/5.cpp')
-rw-r--r-- | works/solutions/acwing/5.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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]);
}
}
|