Problem F Lighting System Design Input: Standard Input Output: Standard Output You are given the task to design a lighting system for a huge conference hall. After doing a lot of calculation & sketching, you have figured out the requirements for an e…
传送门 错误思路 正解 AC代码 参考资料: [1]:https://www.cnblogs.com/Kiraa/p/5510757.html 题意: 现给你一套照明系统,这套照明系统共包含 n 种类型的灯: 其中第 i 中类型的灯包含四个参数:vi,ki,ci,li,分别表示 vi : 第 i 种类型的灯正常工作所需要的电压源: ki : 购买电压源 vi 的花费: ci : 第 i 种灯泡的单价: li : 这套照明系统需要第 i 种灯的个数 购买第 i 种灯的花费为 costi = ki+…