![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
青龙指引你
也并非所有的流浪者都迷失了自我
展开
-
nyoj 915 +-字符串(贪心)
Shiva得到了两个只有加号和减号的字符串,字串长度相同。Shiva一次可以把一个加号和它相邻的减号交换。他想知道最少需要多少次操作才能把第一个字符串变换成第二个字符串。你现在要去帮助他完成那个这个问题。原创 2017-05-09 20:29:42 · 647 阅读 · 0 评论 -
CSU 1971:安排座位(贪心)
一年一度的暑期集训又开始了! 作为老人的小明非常忧伤,因为他要给所有的新人安排座位。由于安排给新人的座位上的机器可能有各种毛病(比如很卡,上不了网之类的),这些问题的出现都会让新人的训练热情下降。为了让更多的新人能够留下,小明自然希望大家的热情都是高涨的。原创 2017-07-29 17:24:25 · 477 阅读 · 0 评论 -
CSU 1775:悲催的移寝(贪心)
对于csuxushu来说,能够在CSU(California State University)上学是他一生的荣幸,而换校区搬寝室则是他最大的不幸。顺利通过省赛选拔,开心的csuxushu现在需要着手准备搬家事宜。 对于好学的csuxushu来说,唯一头疼的就是书籍原创 2017-08-02 08:53:21 · 256 阅读 · 0 评论 -
CodeForces 589F:Gourmet and Banquet(二分+贪心)
A gourmet came into the banquet hall, where the cooks suggested n dishes for guests. The gourmet knows the schedule: when each of the dishes will be served.For i-th of the dishes he knows two integer moment原创 2017-07-26 22:52:00 · 326 阅读 · 0 评论 -
POJ 1328:Radar Installation(贪心)
Radar InstallationTime limit:1000 ms Memory limit:10000 kB OS:Linux Problem DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small i原创 2017-08-01 20:39:36 · 322 阅读 · 0 评论 -
CodeForces 416C:Booking System(贪心)
Innovation technologies are on a victorious march around the planet. They integrate into all spheres of human activity!A restaurant called "Dijkstra's Place" has started thinking about optimizing the bookin原创 2017-08-06 15:44:34 · 380 阅读 · 0 评论 -
Wannafly挑战赛15:A-最小化价格(贪心)
题目链接1013. Battle Over Cities (25)Time limit:1000 ms Memory limit:65536 kBProblem Descrpition现有n组人,m个地点,给出每组人的人数,每个地点可容纳的最大人数和选择的价格 要求一种方式,使得每组人都到一个各不相同的地点,最小化选择的价格 每个队伍的人都要在同一个地方每个地方只能有一个...原创 2018-05-11 22:27:15 · 359 阅读 · 0 评论