随笔分类 -  其它:贪心

摘要:一共有n件食材,每件食材有三个属性,ai,bi和ci,如果在t时刻完成第i样食材则得到ai-t*bi的美味指数,用第i件食材做饭要花去ci的时间。输出最大美味指数 【数据范围】 对于40%的数据1<=n<=10 对于100%的数据1<=n<=50 所有数字均小于100,000 思路:看了51nod贪 阅读全文
posted @ 2019-01-26 20:11 DWVictor 阅读(202) 评论(0) 推荐(0)
摘要:题目如下:A straight is a poker hand containing five cards of sequential rank, not necessarily to be the same suit. For example, a hand containing 7 club, 阅读全文
posted @ 2019-01-17 17:00 DWVictor 阅读(476) 评论(0) 推荐(0)