题意:把一个包含m个正整数的序列划分成k个非空的连续子序列。使得所有连续子序列的序列和Si的最大值尽量小。二分,每次判断一下当前的值是否满足条件,然后修改区间。注意初始区间的范围,L应该为所有正整数中的最大值,否则应该判断时注意。输出解的时候要使字典序最小,所以从后面贪心。#includeusing...
分类:
其他好文 时间:
2015-08-09 18:35:56
阅读次数:
187
会出现这样的错:CommandError:App'books'hasmigrations.Onlythesqlmigrateandsqlflushcommandscanbeusedwhenanapphasmigrations.这是因为旧版本和新的版本命令已经不一样 的问题。我用的是django =1...
分类:
数据库 时间:
2015-08-09 15:31:31
阅读次数:
174
原题:DescriptionBefore the invention of book-printing, it was very hard to make a copy of a book. All the contents had to be re-written by hand by so ca...
分类:
其他好文 时间:
2015-08-07 22:05:30
阅读次数:
123
题目大意:有m本书,k个抄写员。m本书的页码分别为 p1,p2……pm……。他们同时开始抄写且工作效率相同。要求分配给抄写员们若干书,每个抄写员要抄写的书的顺序必须是连续相邻的。请你分配书使他们在最少的时间里完成抄写任务。分析:使每个抄写员分配到的页数的最大值尽可能小。最大值的最小化问题加二分法应用...
分类:
其他好文 时间:
2015-08-06 23:50:15
阅读次数:
175
Shaass has n books. He wants to make a bookshelf for all his books. He wants the bookshelf's dimensions to be as small as possible. The thickness of the
i-th book is ti and its pages' width is equal ...
分类:
其他好文 时间:
2015-08-06 22:36:08
阅读次数:
464
BOOKSSTOREOPENCART自适应主题模板ABC-0093模板特性兼容浏览器FireFox1.5-3.5.6+,IE8+,Safari3.2+,Opera,GoogleChromeOpenCart版本1.5.6,1.5.6.1,1.5.6.2,1.5.6.3,1.5.6.4,2.0.0.0包含文件PHPFiles,CSSFiles,JSFiles
分类:
其他好文 时间:
2015-08-05 22:35:34
阅读次数:
155
B -二分Time Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionBefore the invention of book-printing, it was very hard to make a copy of ...
分类:
其他好文 时间:
2015-08-05 19:53:53
阅读次数:
125
DescriptionShaass hasnbooks. He wants to make a bookshelf for all his books. He wants the bookshelf's dimensions to be as small as possible. The thick...
分类:
编程语言 时间:
2015-08-05 17:48:08
阅读次数:
171
user_books_info 类namespace CiWong.LearningLevel.Mapping{ public class user_books_info { /// /// 使用对象ID,个人版存放会员ID,班级版存放班级ID,校园版存放校...
分类:
Web程序 时间:
2015-07-27 18:10:18
阅读次数:
138
在Python中,可以通过class关键字定义自己的类,然后通过自定义的类对象类创建实例对象。例如,下面创建了一个Student的类,并且实现了这个类的初始化函数"__init__":class Student(object): count = 0 books = [] def _...
分类:
编程语言 时间:
2015-07-26 12:35:46
阅读次数:
243