码迷,mamicode.com
首页 >  
搜索关键字:zoj 3686 a simple tr    ( 14369个结果
【大话设计模式】——简单工厂模式
简单工厂模式(Simple Factory Pattern)属于创建型模式,又叫做静态工厂方法模式(Static FactoryMethod Pattern),但是不属于23GOF设计模式之一。简单工厂模式是由一个工厂对象决定创建出哪一种产品类的实例。 走别人的的路,不如自己 to do (不如的意思是更)。先敲书上的例子,第一遍也许不懂,第二遍就清晰很多,第三遍就觉得自己能写点东西出来。不要总是觉得自己看不懂,学不好,只有先学了才能更好。没有之前的8个馒头,就没有第9个馒头的饱(好撑啊~~)...
分类:其他好文   时间:2014-05-26 05:51:44    阅读次数:224
uva 103 Stacking Boxes
Background Some concepts in Mathematics and Computer Science are simple in one or two dimensions but become more complex when extended to arbitrary dimensions. Consider solving differential equations...
分类:其他好文   时间:2014-05-26 04:31:34    阅读次数:234
我的原创软件(持续更新) My Original Software[Continuously updated]
-好软件的定义就是它的体积不大不小,功能不多不少,一切都是那么的恰到好处。 -Good software is neither too big nor too small,neither too Complex nor too Simple,everything is so right. +点击.....
分类:其他好文   时间:2014-05-26 00:54:15    阅读次数:254
测试控制器
测试不应该是很教条的,相反的测试工作应该达到的状态是能够让我们加快开发速度,并且让我们的工作更加的有趣。Keeping Things Simple(保持事情的简单性) 测试简单的任务是简单的,测试复杂的工程是复杂的,我们这里想要讨论的是如何让事情保持简单和尽可能小,这样的话完全是有利于测试工作...
分类:其他好文   时间:2014-05-25 23:19:08    阅读次数:341
DBus
D-Bus helps coordinate process lifecycle. It makes it simple and reliable to code a “single instance” (?) application or deamon, and to launch applica...
分类:数据库   时间:2014-05-25 18:44:56    阅读次数:408
zoj 3195 Design the city
DescriptionCerror is the mayor of city HangZhou. As you may know, the traffic system of this city is so terrible, that there are traffic jams everywhe...
分类:其他好文   时间:2014-05-25 11:40:26    阅读次数:393
最小生成树-并查集-Kruskal-zoj-2048-special judge
大意:几个小镇要通过公路互通,已经建成了一些公路,问还需要建哪几条,并满足公路总长最小。 有多组输入,每组输入的格式是:n个城镇的坐标(x,y) m条已经修好的路(公路一端城镇编号,另一端编号)。 输出格式为:(待建公路一端城镇编号,另一端编号)特殊判题,不用在意输出顺序。 注意:相邻两组测试样例的输出要有空行。最后一组后不加空行。不然就WR,竟然还不是PE!zoj不够友好。...
分类:其他好文   时间:2014-05-25 01:48:49    阅读次数:338
poj 2985 The k-th Largest Group 求第K大数 Treap, Binary Index Tree, Segment Tree
题目链接:点击打开链接 题意:有两种操作,合并集合,查询第K大集合的元素个数。(总操作次数为2*10^5) Treap模板(静态数组) #include #include #include #include #include const int maxNode = 500000 + 100; const int inf = 0x3f3f3f3f; struct Tr...
分类:其他好文   时间:2014-05-24 23:18:09    阅读次数:522
UVA Problem D: Hartals
题目如下: Problem D: Hartals  A social research organization has determined a simple set of parameters to simulate the behavior of the political parties of our country. One of the ...
分类:其他好文   时间:2014-05-24 23:10:01    阅读次数:317
zoj-1610-Count the Colors-线段树-区域更新,单点查询
线段树的区域更新,然后单点查询。 x1 x2 c:区域更新x1-x2为c。 全部染色之后,从0-8000依次查询每个点的颜色。然后存贮每一种颜色有几块。 #include #include #include #include #include using namespace std; #define lmin 0 #define rmax 8000 #define lson l,(l+r)/...
分类:其他好文   时间:2014-05-24 19:10:12    阅读次数:221
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!