
贪心
贪心
Guuuuuu老师儿
当初的算法竞赛题目博客的留言评论就不回复了,时间太久已经忘干净了,抱歉~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Appleman and Card Game CodeForces - 462B (贪心)
Appleman and Card GameCodeForces - 462BAppleman has n cards. Each card has an uppercase letter written on it. Toastman must choosek cards from Appleman's cards. Then Appleman should gi原创 2018-01-26 17:33:57 · 548 阅读 · 0 评论 -
Buy and Resell HDU - 6438(贪心+优先队列)
Buy and Resell HDU - 6438The Power Cube is used as a stash of Exotic Power. There are n cities numbered 1,2,…,n where allowed to trade it. The trading price of the Power Cube in the i-th city is ai ...原创 2018-08-27 13:45:59 · 498 阅读 · 0 评论 -
Buy Low Sell High CodeForces - 867E(贪心+优先队列)
Buy Low Sell High CodeForces - 867EYou can perfectly predict the price of a certain stock for the next N days. You would like to profit on this knowledge, but only want to transact one share of stoc...原创 2018-08-27 13:29:41 · 406 阅读 · 0 评论 -
Reorder the Array(贪心)
Reorder the ArrayYou are given an array of integers. Vasya can permute (change order) its integers. He wants to do it so that as many as possible integers will become on a place where a smaller inte...原创 2018-07-22 10:54:20 · 401 阅读 · 0 评论 -
Death to Binary? POJ - 2116(模拟+贪心)
Death to Binary? POJ - 2116The group of Absurd Calculation Maniacs has discovered a great new way how to count. Instead of using the ordinary decadic numbers, they use Fibonacci base numbers. Number...原创 2018-07-18 11:09:36 · 443 阅读 · 0 评论 -
Duizi and Shunzi HDU - 6188 (思维+贪心)
Duizi and Shunzi HDU - 6188 Nike likes playing cards and makes a problem of it. Now give you n integers, ai(1≤i≤n) We define two identi...原创 2018-06-04 19:39:53 · 384 阅读 · 0 评论 -
company(第八届山东省赛,贪心)
companyProblem DescriptionThere are n kinds of goods in the company, with each of them has a inventory of and direct unit benefit . Now you find due to price changes, for any goods sold on day i, if ...原创 2018-05-03 17:57:30 · 277 阅读 · 0 评论 -
Talented Chef ZOJ - 3778 (思维+贪心)
Talented Chef ZOJ - 3778 As we all know, Coach Gao is a talented chef, because he is able to cook M dishes in the same time. Tonight he is going to have a he...原创 2018-04-24 09:32:45 · 205 阅读 · 0 评论 -
Shooting Game FZU - 2144 区间覆盖贪心
Shooting Game FZU - 2144 Fat brother and Maze are playing a kind of special (hentai) game in the playground. (Maybe it’s the OOXX game w...原创 2018-04-15 21:05:58 · 227 阅读 · 0 评论 -
Sub-Bipartite Graph FZU - 2141 (贪心+染色)
Sub-Bipartite Graph FZU - 2141 Given a simple undirected graph G with n vertices and m edges, your task is to select a sub-bipartite graph of G with at leas...原创 2018-04-14 16:07:57 · 244 阅读 · 0 评论 -
L2-003. 月饼(贪心)
L2-003. 月饼 时间限制 100 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 陈越 月饼是中国人在中秋佳节时吃的一种传统食品,不同地区有许多不同...原创 2018-03-30 18:59:18 · 252 阅读 · 0 评论 -
Numbers ZOJ - 3987(二进制思维+贪心)
Numbers ZOJ - 3987DreamGrid has a nonnegative integer . He would like to divide into nonnegative integers and minimizes their bitwise or (i.e. and should be as small as possible).InputThere are mul...原创 2018-09-19 12:07:08 · 475 阅读 · 0 评论