随笔分类 -  动规

摘要:解析: 代码: 100分: 阅读全文
posted @ 2018-11-02 16:18 Slager_Z 阅读(517) 评论(0) 推荐(0)
摘要:Problem B. Market(market.c/cpp/pas)Time limit: 1 secondsMemory limit: 128 megabytes在比特镇一共有 n 家商店,编号依次为 1 到 n。每家商店只会卖一种物品,其中第 i 家商店的物品单价为 ci,价值为 vi,且该商 阅读全文
posted @ 2018-10-24 16:16 Slager_Z 阅读(418) 评论(0) 推荐(0)
摘要:题目描述 Bessie is planning the annual Great Cow Gathering for cows all across the country and, of course, she would like to choose the most convenient lo 阅读全文
posted @ 2017-11-11 20:41 Slager_Z 阅读(397) 评论(0) 推荐(1)
摘要:题目描述 Farmer John has decided to give each of his cows a cell phone in hopes to encourage their social interaction. This, however, requires him to set 阅读全文
posted @ 2017-11-05 11:46 Slager_Z 阅读(262) 评论(0) 推荐(0)
摘要:洛谷 P1103 书本整理 题目描述 Frank是一个非常喜爱整洁的人。他有一大堆书和一个书架,想要把书放在书架上。书架可以放下所有的书,所以Frank首先将书按高度顺序排列在书架上。但是Frank发现,由于很多书的宽度不同,所以书看起来还是非常不整齐。于是他决定从中拿掉k本书,使得书架可以看起来整 阅读全文
posted @ 2017-11-02 11:36 Slager_Z 阅读(383) 评论(0) 推荐(0)
摘要://只能写出裸的动规,为什么会有人能想到用单调队列优化Orz 题目描述 最近lxhgww又迷上了投资股票,通过一段时间的观察和学习,他总结出了股票行情的一些规律。 通过一段时间的观察,lxhgww预测到了未来T天内某只股票的走势,第i天的股票买入价为每股APi,第i天的股票卖出价为每股BPi(数据保 阅读全文
posted @ 2017-11-01 14:26 Slager_Z 阅读(212) 评论(0) 推荐(0)
摘要:题目描述 The first stage of train system reform (that has been described in the problem Railways of the third stage of 14th Polish OI. However, one needs 阅读全文
posted @ 2017-10-19 22:33 Slager_Z 阅读(262) 评论(0) 推荐(0)
摘要:题目描述 Farmer John has decided to give each of his cows a cell phone in hopes to encourage their social interaction. This, however, requires him to set 阅读全文
posted @ 2017-10-19 10:01 Slager_Z 阅读(891) 评论(0) 推荐(0)
摘要:题目描述 Farmer John and his herd are playing frisbee. Bessie throws the frisbee down the field, but it's going straight to Mark the field hand on the oth 阅读全文
posted @ 2017-10-17 18:36 Slager_Z 阅读(279) 评论(0) 推荐(0)
摘要:题目描述 Farmer John is at the market to purchase supplies for his farm. He has in his pocket K coins (1 <= K <= 16), each with value in the range 1..100, 阅读全文
posted @ 2017-10-17 09:52 Slager_Z 阅读(332) 评论(0) 推荐(0)
摘要:题目描述 Bessie is planning the annual Great Cow Gathering for cows all across the country and, of course, she would like to choose the most convenient lo 阅读全文
posted @ 2017-10-06 21:39 Slager_Z 阅读(382) 评论(0) 推荐(0)
摘要:高维网络 【题目描述】 现在有一个 d 维的坐标网格,其中第 i 维坐标的范围是[0,a_i]。在这个范围内建立一个有向图:我们把范围内的每个整点(每一维坐标均为整数的点)当做图上的顶点。设点 A(0,0,⋯,0),B(a_1,a_2,⋯,a_d)。对于范围内的点(x_1,x_2,⋯,x_d),它会 阅读全文
posted @ 2017-08-29 17:26 Slager_Z 阅读(264) 评论(0) 推荐(0)

博客园 首页 私信博主 显示目录 隐藏目录 管理 动画