1#include2#include3#include4#include5#include6usingnamespacestd;7constintinf=0x3f3f3f3f;8constintMAX=200+10;9doubleGPA[10],dp1[20][30000],dp2[20][3000...
分类:
其他好文 时间:
2014-08-19 23:51:55
阅读次数:
293
使用下面代码时注意不要忘记引入jquery文件,以下代码可以复制到html文件中执行可看到效果,非常方便好用。附代码: I have a bike I have a car
分类:
Web程序 时间:
2014-08-19 23:51:45
阅读次数:
232
Question:You are given two sorted arrays, A and B, where A has a large enough buffer at the end to hold B.Write a method to merge B into A in sorted o...
分类:
其他好文 时间:
2014-08-19 23:51:25
阅读次数:
309
*号的使用 1 #include 2 3 int main(void) 4 { 5 unsigned width, precision; 6 float height; 7 printf("Please enter you height(enter a tag befor...
分类:
其他好文 时间:
2014-08-19 23:51:05
阅读次数:
214
题目:Given an integer N, and how many pairs (A;B) are there such that: gcd(A;B) = A xor B where 1=2)是不同位数的。和同学讨论后得出如下证明:设最大公约数为 j, 假设这两个数是b 和 b+k*j,(k>....
分类:
其他好文 时间:
2014-08-19 23:50:55
阅读次数:
233
堆这个数据结构应用非常广泛,数字图像处理的算法里也见过。似乎记得以前老师上课说需要用树结构实现堆排序,看了一下算法导论才明白其精髓。堆虽然是一棵树,但显然没必要非得用树结构实现堆排序。堆排序的性质很好,算法时间复杂度为O(nlgn)。1. 堆排序的简要说明。二叉堆可以分为两种形式:最大堆和最小堆。在...
分类:
其他好文 时间:
2014-08-19 23:48:35
阅读次数:
325
对象字面量属性间无法相互访问的问题:我曾经在定义一个对象时, 并出于复用性的考虑试图复用某些属性:// test 1var person = { firstName : "Bill", lastName : "Gates", fullName : firstNam...
分类:
Web程序 时间:
2014-08-19 23:48:25
阅读次数:
279
引用自http://www.cnblogs.com/mguo/archive/2013/06/19/3143880.html/*一、变量的作用域要理解闭包,首先必须理解Javascript特殊的变量作用域。变量的作用域无非就是两种:全局变量和局部变量。Javascript语言的特殊之处,就在于函数内...
分类:
编程语言 时间:
2014-08-19 23:48:15
阅读次数:
283
模式分类:从目的来看:1.创建型(Creational)模式:负责对象创建。2.结构型(Structural)模式:处理类于对象间的组合。3.行为型(Behavioral)模式:类与对象交互中的职责分配。从范围看:1.类模式处理类于子类的静态关系。2.对象模式处理对象间的动态关系。动机在软件系统中,...
分类:
其他好文 时间:
2014-08-19 23:48:05
阅读次数:
326