码迷,mamicode.com
首页 > 其他好文
NYOJ 779 兰州烧饼
地址: http://acm.nyist.net/JudgeOnline/problem.php?pid=779
分类:其他好文   时间:2015-07-03 20:35:54    阅读次数:109
Libgdx Box2D现实---这缓释微丸(两:Box2D介绍)
??Box2D官方网站:http://box2d.org/Box2D v2.1.0用户手冊翻译:http://blog.csdn.net/complex_ok/article/category/871440Libgdx使用jni封装了box2d的c++版本号,使得其执行效率比其它同级的物理引擎如jb...
分类:其他好文   时间:2015-07-03 20:33:00    阅读次数:176
求最大子序列
C++:#include #include#include#includeusing namespace std;int maxSubSum(const vector &a){ int maxSum = 0; int thisSum = 0; for (int i = 0; i maxSum) .....
分类:其他好文   时间:2015-07-03 20:33:39    阅读次数:108
Clustered Index & Non Clustered Index(聚簇索引和非聚簇索引)
每个表只能有一个聚簇索引,而能有200多个非聚簇索引。在物理分配上,每个表的数据都是分配在页上,一个页大概有8k左右,假设一条数据占1000字节的话,那么8000条数据占8000*1k/8k = 1000页面,这些数据存在于数据块中。如果对这些数据中的某一10字节的字段做聚簇索引的话,8000 * ...
分类:其他好文   时间:2015-07-03 20:34:39    阅读次数:116
POJ 3352 Road Construction(边双连通分量,桥,tarjan)
题解转自http://blog.csdn.net/lyy289065406/article/details/6762370 文中部分思路或定义模糊,重写的红色部分为修改过的。大致题意: 某个企业想把一个热带天堂岛变成旅游胜地,岛上有N个旅游景点,保证任意2个旅游景点之间有路径连通的(可间接连通).....
分类:其他好文   时间:2015-07-03 20:33:18    阅读次数:153
2.3 计时函数
例2-4 阶乘之和 输入n,计算S = 1! + 2! +3! +……+ n!的末6位(不含前导0)。n int main(){ int n; scanf("%d", &n); int sum = 0; int i = 1; while (i #includeint ...
分类:其他好文   时间:2015-07-03 20:32:52    阅读次数:123
NYOJ 881 小m的区间公约数
地址: http://acm.nyist.net/JudgeOnline/problem.php?pid=881
分类:其他好文   时间:2015-07-03 20:33:32    阅读次数:108
第四部分_Servlet精解
Servlet APIServlet的框架的核心是javax.servlet.Servlet接口,所有的Servlet都必须实现这一接口。在Servlet接口中定义了五个方法,其中有三个方法代表了Servlet的生命周期:init方法:负责初始化Servlet对象service方法:负责响应客户的请...
分类:其他好文   时间:2015-07-03 20:32:10    阅读次数:113
【转】 NSArray copy 问题
转载▼http://blog.sina.com.cn/s/blog_6b1e4a060102uz0i.html标签:nsarraycopy__nsarrayiremoveobjectatindex指针指向分类: 学习笔记 好久没写博客了,今天看到同事的代码中用到了 copy 这个 方法,之前也有了解...
分类:其他好文   时间:2015-07-03 20:30:31    阅读次数:108
使用Builder模式造车
Builder模式也可以造车。 对于Builder模式来说,首相要把要造的车确定下来: public class Car { public string Model { get; set; } public string Engine { get; set; } public string Tran...
分类:其他好文   时间:2015-07-03 20:32:21    阅读次数:131
Implement strStr()
称号Implement strStr().Returns a pointer to the first occurrence of needle in haystack, ornullif needle is not part of haystack.方法仅仅须要遍历一遍就可以。 publi...
分类:其他好文   时间:2015-07-03 20:28:49    阅读次数:93
HDU 2896
传送门:HDU 2896病毒侵袭Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 14348Accepted Submission(s): 3690P...
分类:其他好文   时间:2015-07-03 20:30:07    阅读次数:137
清除浮动的几种方法
1 加一个清除浮动的,推荐.all{width:100%;height:auto.a{float:left;}.b{float:right;}.clear{clear:both;}2 父元素也写成float:left;。但会影响其他元素的表现3 父元素:overflow:hidden;zoom:1;...
分类:其他好文   时间:2015-07-03 20:27:56    阅读次数:113
CareerCup它1.8 串移包括问题
【称号】原文:1.8 Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check ...
分类:其他好文   时间:2015-07-03 20:29:20    阅读次数:138
inner join和outer join
内连接 只连接匹配的行左外连接 包含左边表的全部行(不管右边的表中是否存在与它们匹配的行),以及右边表中全部匹配的行A left join B等价于A left outer join B右外连接 包含右边表的全部行(不管左边的表中是否存在与它们匹配的行),以及左边表中全部匹配的行 A right j...
分类:其他好文   时间:2015-07-03 20:27:03    阅读次数:130
模式-“里氏替换原则”
里氏替换原则是,同组的有类的两个子类,在使用子类A这个地方(方法/属性)您可以使用子类B代替.对于面向接口编程,我只需要确保同样的行为代码;基类的所有子类必须全部实现,换过来,子类的方法基类不一定都有;如果:有一个基类Base;其子类是Concrete;那么method(Base b)的调用能够转换...
分类:其他好文   时间:2015-07-03 20:29:27    阅读次数:113
NYOJ 977 最大的最小公倍数
地址: http://acm.nyist.net/JudgeOnline/problem.php?pid=977
分类:其他好文   时间:2015-07-03 20:28:27    阅读次数:112
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!