贪心
文章平均质量分 87
Hold_My_Own
When the dust settles, and it will, we'll see.
展开
-
(CodeForces - 5C)Longest Regular Bracket Sequence
(CodeForces - 5C)Longest Regular Bracket Sequencetime limit per test:2 secondsmemory limit per test:256 megabytesinput:standard inputoutput:standard outputThis is yet another problem dealing with regul原创 2017-08-11 08:38:17 · 323 阅读 · 0 评论 -
(CodeForces - 416C)Booking System
(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 thin原创 2017-09-12 16:58:20 · 392 阅读 · 0 评论 -
(CSU - 1971)安排座位
(CSU - 1971)安排座位 一年一度的暑期集训又开始了!作为老人的小明非常忧伤,因为他要给所有的新人安排座位。由于安排给新人的座位上的机器可能有各种毛病(比如很卡,上不了网之类的),这些问题的出现都会让新人的训练热情下降。为了让更多的新人能够留下,小明自然希望大家的热情都是高涨的。对于每个新人,都会有一个热情值ai,而每个座位都会有一个热情耗损值bi,如果第i个新人坐在第j个位置,那这位同学对整个集训队热情原创 2017-09-11 18:50:22 · 315 阅读 · 0 评论 -
(CodeForces - 600C)Make Palindrome
(CodeForces - 600C)Make Palindrome A string is called palindrome if it reads the same from left to right and from right to left. For example "kazak", "oo", "r" and "mikhailrubinchikkihcniburliahkim" are palindr原创 2017-09-14 21:37:50 · 275 阅读 · 0 评论 -
(HDU - 4334)Trouble
(HDU - 4334)Trouble Hassan is in trouble. His mathematics teacher has given him a very difficult problem called 5-sum. Please help him.The 5-sum problem is defined as follows: Given 5 sets S_1,...,S_5 of n int原创 2017-08-24 08:28:09 · 321 阅读 · 0 评论 -
(CodeForces - 589F)Gourmet and Banquet
(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原创 2017-08-27 11:54:49 · 260 阅读 · 0 评论 -
(HDU - 1800)Flying to the Mars
(HDU - 1800)Flying to the Mars In the year 8888, the Earth is ruled by the PPF Empire . As the population growing , PPF needs to find more land for the newborns . Finally , PPF decides to attack Kscinow who rul原创 2017-08-23 16:13:15 · 489 阅读 · 0 评论 -
(HYSBZ - 4198)荷马史诗
(HYSBZ - 4198)荷马史诗 Allison 最近迷上了文学。她喜欢在一个慵懒的午后,细细地品上一杯卡布奇诺,静静地阅读她爱不释手的《荷马史诗》。但是由《奥德赛》和《伊利亚特》组成的鸿篇巨制《荷马史诗》实在是太长了,Allison 想通过一种编码方式使得它变得短一些。一部《荷马史诗》中有 n 种不同的单词,从 1 到 n 进行编号。其中第 i 种单词出现的总次数为 wi。Allison 想要用 k 进制串原创 2017-08-26 17:41:53 · 317 阅读 · 0 评论 -
(POJ - 1328)Radar Installation
(POJ - 1328)Radar InstallationAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar installati原创 2017-08-26 14:41:07 · 225 阅读 · 0 评论 -
(CSU - 1775)悲催的移寝
(CSU - 1775)悲催的移寝 对于csuxushu来说,能够在CSU(California State University)上学是他一生的荣幸,而换校区搬寝室则是他最大的不幸。顺利通过省赛选拔,开心的csuxushu现在需要着手准备搬家事宜。对于好学的csuxushu来说,唯一头疼的就是书籍的搬运了,因为他的书实在是太多了。为了防止书籍在运输过程中受损,他打算定制特制的储物保护箱。为了简单起见,我们假设他所原创 2017-08-26 08:21:27 · 215 阅读 · 0 评论 -
(CodeForces - 609D)Gadgets for dollars and pounds
(CodeForces - 609D)Gadgets for dollars and pounds Nura wants to buy k gadgets. She has only s burles for that. She can buy each gadget for dollars or for pounds. So each gadget is selling only for some type of原创 2017-09-21 16:51:03 · 367 阅读 · 0 评论