二分
ldu商正昌
这个作者很懒,什么都没留下…
展开
-
魔咒词典---哈希+二分
题目:哈利波特在魔法学校的必修课之一就是学习魔咒。据说魔法世界有100000种不同的魔咒,哈利很难全部记住,但是为了对抗强敌,他必须在危急时刻能够调用任何一个需要的魔咒,所以他需要你的帮助。给你一部魔咒词典。当哈利听到一个魔咒时,你的程序必须告诉他那个魔咒的功能;当哈利需要某个功能但不知道该用什么魔咒时,你的程序要替他找到相应的魔咒。如果他要的魔咒不在词典中,就输出“what?”Input...原创 2019-11-16 23:26:08 · 583 阅读 · 1 评论 -
CodeForces 371C Hamburgers(二分)
Polycarpus loves hamburgers very much. He especially adores the hamburgers he makes with his own hands. Polycarpus thinks that there are only three decent ingredients to make hamburgers from: a bread,...原创 2019-08-19 13:05:46 · 208 阅读 · 0 评论 -
Drying(二分)
It 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 drying faster. But ...原创 2019-08-25 16:01:22 · 494 阅读 · 0 评论 -
Monthly Expense POJ - 3273(二分)
Farmer 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 ≤ 10,000) that h...原创 2019-08-21 15:23:18 · 227 阅读 · 0 评论 -
P1182 数列分段 Section II(二分)
题目链接:https://www.luogu.org/problem/P1182题目描述对于给定的一个长度为N的正整数数列A-i,现要将其分成M(M≤N)段,并要求每段连续,且每段和的最大值最小。关于最大值最小:例如一数列4 2 4 5 1要分成3段将其如下分段:[4 2][45][1]第一段和为66,第22段和为99,第33段和为11,和最大值为99。将其如下分段:[4] [2...原创 2019-10-05 21:51:52 · 258 阅读 · 0 评论