
贪心
文章平均质量分 59
Davenny
O ever youthful,O ever weeping.
展开
-
油漆写字
Description Igor has fallen in love with Tanya. Now Igor wants to show his feelings and write a number on the fence opposite to Tanya’s house. Igor thinks that the larger the number is, the more chanc原创 2017-07-07 08:56:03 · 711 阅读 · 0 评论 -
CodeForces:Cards
Description User ainta loves to play with cards. He has a cards containing letter “o” and b cards containing letter “x”. He arranges the cards in a row, and calculates the score of the deck by the for转载 2017-07-07 10:32:37 · 399 阅读 · 0 评论 -
CodeForces 367B Sereja ans Anagrams
Description Sereja has two sequences a and b and number p. Sequence a consists of n integers a1, a2, …, an. Similarly, sequence b consists of m integers b1, b2, …, bm. As usual, Sereja studies the seq转载 2017-07-07 11:02:54 · 408 阅读 · 0 评论 -
Codeforces 226B
题目大意: 有n堆石子,告诉你它们的size,并且将其他堆的石子放进同一堆的次数不能超过给定的某一数值,问将所有的石子拼成一堆所需要的最小消耗是多少。There are n piles of stones of sizes a1, a2, …, an lying on the table in front of you.During one move you can take one pile a原创 2017-07-24 14:04:46 · 368 阅读 · 0 评论 -
贪心: hdu 3866 Moonfang's Birthday
Description It’s Moonfang’s birthday,and his friends decided to buy him a copy of XianJianQiXiaZhuan V. Since some of friends have more money available than others, nobody has to pay more than he can转载 2016-07-07 20:02:32 · 321 阅读 · 0 评论 -
在一个数中去掉指定个数的数字使其结果最小
Description Given you one n-digital positive integer a,After removing any of them k( k < n) digits, the remaining figures form a new positive integer according to the origin order. For a given n-digit原创 2016-07-29 16:39:59 · 916 阅读 · 0 评论