Description
Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands in the ho...
分类:
其他好文 时间:
2014-07-28 16:04:23
阅读次数:
262
sqlalchemy和flask-sqlalchemy之间的东西不是太清晰。
sqlalchemy文档太他妈多了,日。
今天遇到的实例。
用户进行随机匹配,系统随机返回一个一定筛选条件下的用户。为了用户体验,还得去掉已关注的人。
首先获取满足筛选条件的用户列表:
users = User.query.filter_by(school=form.school.dat...
分类:
数据库 时间:
2014-07-27 11:48:03
阅读次数:
270
There are n children in Jzzhu's school. Jzzhu is going to give some candies to them. Let's number all the children from 1 to n.
The i-th child wants to get at least ai candies.
Jzzhu asks childre...
分类:
其他好文 时间:
2014-07-22 22:49:13
阅读次数:
237
强烈建议阅读一下最小割模型在信息学竞赛中的应用
其中2.2.2的Optimal Marks一题和此题建模非常相像。
在原图外围虚拟一圈‘D’,我们要最大化的周长,就可以等价为最大化相邻的'D'和'.' 的总对数,也就是最大化相邻格子不同类型的总对数。
按照论文中的建图方式,我们可以最小化相邻格子不同类型,
反过来想,稍微改变一下建图,就可以最小化相邻格子相同类型
建图:
将地图奇偶建图...
分类:
其他好文 时间:
2014-07-22 22:39:35
阅读次数:
244
View CodeProblem :1445 ( Ride to School )Judge Status :AcceptedRunId : 11127796Language : C++Author :0902130217Code Render Status :Rendered By HDOJ C....
分类:
其他好文 时间:
2014-07-22 00:00:37
阅读次数:
178
打个比方,hashCode() 方法是好比是字典前面的目录,有了这个目录你查东西就会快的多,equals方法是比较的内容,就好比根据目录查内容。同一个的内容自然要有唯一的目录,所以hashCode和equals方法一般一起实现。比如Student类的equals方法根据name,school,age...
分类:
其他好文 时间:
2014-07-18 20:25:51
阅读次数:
130
一:属性相关:
Series选项:
(1)Format页(数据柱的风格)
在Color Each中打勾,就可使用多种颜色显示,
color按钮用于设置颜色,
Style用于设置图表的风格(Rectangle长方体,Pyramid三角体,Invert.PyramId倒三角体,Cylinder圆柱体,Ellipse圆形,Arrow箭头,
(2)Marks页(标记,数据内容显示设置)
数据...
分类:
数据库 时间:
2014-07-16 17:22:44
阅读次数:
397
Doing Homework againTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionIgnatius has just come back school from t...
分类:
其他好文 时间:
2014-07-15 08:15:31
阅读次数:
205
F - Ride to School(2.1.2)
Time Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
Many graduate students of Peking University are livin...
分类:
其他好文 时间:
2014-07-14 17:14:13
阅读次数:
285
第三章:对象:属性名字:可以是包括空字符串在内的任意字符串;属性值:是除undefined值之外的任何值;【1】、对象字面量:var obj={}; //空对象var newobj={ name:"小明", age:17, school:{ class:"一班" }};属性名可加引号...
分类:
编程语言 时间:
2014-07-03 10:40:30
阅读次数:
181