
二分&三分
文章平均质量分 80
键盘上的舞者
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU3763:CD
Problem DescriptionJack and Jill have decided to sell some of their Compact Discs, while they still have some value. They have decided to sell one of each of the CD titles that they both own. How ma原创 2013-06-01 20:29:46 · 1989 阅读 · 0 评论 -
HDU1551:Cable master(二分)
Problem DescriptionInhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest eve原创 2014-05-13 21:25:27 · 6353 阅读 · 2 评论 -
HDU4430:Yukari's Birthday(二分)
Problem DescriptionToday is Yukari's n-th birthday. Ran and Chen hold a celebration party for her. Now comes the most important part, birthday cake! But it's a big challenge for them to place n ca原创 2014-05-22 21:41:44 · 3243 阅读 · 1 评论 -
HDU4033:Regular Polygon(二分+余弦定理)
Problem DescriptionIn a 2_D plane, there is a point strictly in a regular polygon with N sides. If you are given the distances between it and N vertexes of the regular polygon, can you calculate t原创 2014-05-22 19:55:18 · 2056 阅读 · 0 评论 -
POJ2503:Babelfish(二分)
DescriptionYou have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them.原创 2014-07-30 21:14:43 · 2813 阅读 · 0 评论 -
POJ2785:4 Values whose Sum is 0(二分)
DescriptionThe SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d ) ∈ A x B x C x D are such that a + b + c + d = 0 .原创 2014-08-18 16:37:11 · 4923 阅读 · 0 评论 -
POJ3258:River Hopscotch(二分)
DescriptionEvery year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The excitement takes place on a long, straight原创 2014-08-18 14:45:42 · 3546 阅读 · 0 评论 -
POJ3104:Drying(二分)
DescriptionIt is very hard to wash and especially to dry clothes in winter. But Jane is a very smart girl. She is not afraid of this boring process. Jane has decided to use a radiator to make dryi原创 2014-08-17 16:31:09 · 2415 阅读 · 0 评论 -
codeforces535C:Tavas and Karafs(二分)
Karafs is some kind of vegetable in shape of an 1 × h rectangle. Tavaspolis people love Karafs and they use Karafs in almost any kind of food. Tavas, himself, is crazy about Karafs.Each Karafs原创 2015-04-16 23:12:52 · 2450 阅读 · 0 评论 -
BNU49103:贪心(二分)
小明喜欢养小鸡,小鸡喜欢吃小米。小明很贪心,希望养s只不同种类的小鸡,小鸡也很贪心,每天除了吃固定的ai粒小米外,还想多吃bi*s粒小米。小明每天有M(0(0种。问小明最多可以养多少只小鸡? Input多组数据,请读到文件尾第一行,整数N,M,以空格分隔,之后两行,第一行为N个整数ai,第二行为N个整数bi。ai、bi都在int范围内原创 2015-05-11 16:13:12 · 1097 阅读 · 0 评论 -
HDU4768:Flyer(二分)
Problem DescriptionThe new semester begins! Different kinds of student societies are all trying to advertise themselves, by giving flyers to the students for introducing the society. However, due原创 2014-05-13 21:31:54 · 2933 阅读 · 0 评论 -
ACdream 1066:Bet
Problem DescriptionJosnch星球是一个赌博之风盛行的星球。每个人一出生就有一定数额的钱,之后的所有收入只能由赌博获得(OMG,如果RP不好,输光了所有的钱。。。)假设赌博公司的某场赌博有N个结果,每个结果能获得的赔率比分别是a[1],a[2]...a[N]。假设现在XXX有X块钱,问他选择怎样的策略才能使得最坏情况下回报最大(假设N个结果中只有一个是有回报的,X块钱必原创 2014-05-17 11:29:12 · 1689 阅读 · 0 评论 -
HDU2578:Dating with girls(1)
Problem DescriptionEveryone in the HDU knows that the number of boys is larger than the number of girls. But now, every boy wants to date with pretty girls. The girls like to date with the boys with原创 2013-06-07 03:38:48 · 1459 阅读 · 0 评论 -
HNCU1097:赌徒(二分)
http://hncu.acmclub.com/index.php?app=problem_title&id=111&problem_id=1097题目描述有n个赌徒打算赌一局。规则是:每人下一个赌注,赌注为非负整数,且任意两个赌注都不相同。胜者为赌注恰好是其余任意三个人的赌注之和的那个人。如果有多个胜者,我们取赌注最大的那个为最终胜者。例如,A,B,C,D,E分别下赌注为2、3、原创 2013-07-05 18:50:18 · 1900 阅读 · 0 评论 -
HDU2199:Can you solve this equation?(二分)
Problem DescriptionNow,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100;Now please try your lucky. InputThe first line of the input conta原创 2013-11-24 14:36:10 · 3245 阅读 · 0 评论 -
HDU2141:Can you find it?(二分)
Problem DescriptionGive you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, which satisfy the formula Ai+Bj+C原创 2013-11-24 14:41:35 · 4268 阅读 · 0 评论 -
POJ3273:Monthly Expense(二分)
DescriptionFarmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the exact amount of money (1 ≤moneyi原创 2013-12-08 20:02:14 · 4142 阅读 · 2 评论 -
HDU2289:Cup(二分)
Problem DescriptionThe WHU ACM Team has a big cup, with which every member drinks water. Now, we know the volume of the water in the cup, can you tell us it height? The radius of the cup's top a原创 2013-12-15 19:32:18 · 4879 阅读 · 1 评论 -
HDU1969:Pie(二分)
Problem DescriptionMy birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming to原创 2013-12-15 19:47:48 · 7370 阅读 · 4 评论 -
ZOJ3768:Continuous Login(二分)
Pierre is recently obsessed with an online game. To encourage users to log in, this game will give users a continuous login reward. The mechanism of continuous login reward is as follows: If you have原创 2014-04-07 11:11:34 · 2442 阅读 · 0 评论 -
XTU1175:Hurry Up(三分)
Problem DescriptionGG is some what afraid of his MM. Once his MM asks, he will always try his best to rush to their home. Obvious, he can run home in straight line directly. Alternatively, he ca原创 2014-05-16 16:07:37 · 1615 阅读 · 0 评论 -
Codeforces551C:GukiZ hates Boxes(二分+贪心)
Professor GukiZ is concerned about making his way to school, because massive piles of boxes are blocking his way.In total there are n piles of boxes, arranged in a line, from left to right, i-th原创 2015-06-17 15:18:13 · 2707 阅读 · 1 评论