diff options
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]);
}
}
|