摘要: 洛谷地址:https://www.luogu.com.cn/problem/CF448C 题意: 有n块连着的木板,每个木板的高度为h_ihi​,你需要把这n块木板上色,每次 上色你可以选择竖着刷完一块木板,或者横着刷一个高度单位的连续的木板(不能中 间空着的不能跳跃),问最少需要刷几次。 解析: 阅读全文
posted @ 2020-08-14 18:57 liyexin 阅读(330) 评论(0) 推荐(0)
摘要: 地址:http://acm.hdu.edu.cn/showproblem.php?pid=2899 Now, here is a fuction:F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 <= x <=100)Can you find the minimum v 阅读全文
posted @ 2020-08-14 17:13 liyexin 阅读(167) 评论(0) 推荐(0)