Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDU1864 - 最大报销额 | -xCodingx- #44

Open
xTayEx opened this issue Feb 18, 2019 · 0 comments
Open

HDU1864 - 最大报销额 | -xCodingx- #44

xTayEx opened this issue Feb 18, 2019 · 0 comments

Comments

@xTayEx
Copy link
Owner

xTayEx commented Feb 18, 2019

https://xtayex.github.io/2019/02/18/HDU1864-%E6%9C%80%E5%A4%A7%E6%8A%A5%E9%94%80%E9%A2%9D/#more

最大报销额   这道题有两个需要注意的地方:一是题目说的“每项”其实是“每类”,也就是A类,B类和C类,而不是每个物品……(这题目表述有问题啊!);二是在计算时要将所有的数据扩大100倍然后再转为int,计算出最后结果后再缩小为原来的倍率,否则无法用钱数来做背包(浮点数无法作为数组下标)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant