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 | a7a2582fc75aa1b2d4e56a01e07174f4083f203d (patch) | |
tree | 480081e2a84d16aba4162ccc1178b8e4ce0cdaec /works/solutions/acwing/5.cpp | |
parent | 3a3f0c3b0a19306bc9dfd901516de1c9c9d6f3ef (diff) | |
download | crupest-a7a2582fc75aa1b2d4e56a01e07174f4083f203d.tar.gz crupest-a7a2582fc75aa1b2d4e56a01e07174f4083f203d.tar.bz2 crupest-a7a2582fc75aa1b2d4e56a01e07174f4083f203d.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]);
}
}
|