1 #include 2 #include 3 #include "printCollection.h" 4 5 using namespace std; 6 7 /** 8 * Return the maximum item in array a. 9 *Assume a.size(...
分类:
其他好文 时间:
2014-07-22 22:51:38
阅读次数:
203
<body> <input type="checkbox" id="ckAll" />check all<br /> <input type="checkbox" name="sub" />1<br /> <input type="checkbox" name="sub"/>2<br /> <input type="checkbox" name="sub"/>3<br /> <input t...
分类:
Web程序 时间:
2014-07-22 09:13:34
阅读次数:
325
一、在$.each(array, callback)方法中,参数为function(){},一个回调方法,有3种参数形式: function () { ... } function(index) { ... } function (index, item) { ... } index是指array中每一项的顺序索引,从...
分类:
Web程序 时间:
2014-07-22 09:00:04
阅读次数:
204
GroupBy是按照Item的hashCode来分组的,所以Item最好是override GetHashCode()方法 namespace?ConsoleApplication5
{
????class?Program
????{
????????static?void?Main(string[]?args)
?...
分类:
其他好文 时间:
2014-07-22 08:22:36
阅读次数:
253
select?sku,COUNT(sku)?cc?from?sales_flat_order_item?where?order_id?in(SELECT?entity_id?from?sales_flat_order?where?state?in(‘complete‘,‘processing‘))?GROUP?BY?sku?ORDER?BY?cc?D...
分类:
数据库 时间:
2014-07-21 10:08:17
阅读次数:
250
二分+2SAT的题写错了HIGH和LOW与MID的变换,TLE了好几次。。按HATE和LIKE关系先加边,再用距离的限制加边。dist(i,S1)+dist(S1,j)>limitXi->~XjXj->Xidist(i,S2)+dist(S2,j)>limit~Xi->Xj~Xj->Xidist(i...
分类:
其他好文 时间:
2014-07-21 10:04:24
阅读次数:
370
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
比较两个...
分类:
编程语言 时间:
2014-07-20 22:12:03
阅读次数:
273
1:修改uc_client\model\user.phpfunction check_username($username) { $guestexp = '\xA1\xA1|\xAC\xA3|^Guest|^\xD3\xCE\xBF\xCD|\xB9\x43\xAB\xC8'; $len = $th...
分类:
其他好文 时间:
2014-07-20 22:01:28
阅读次数:
214
在待我处理数据源的显示设置里界面里增加BILL_KD_ITEM字段的显示设置为不显示语言为BILL_KD_ITEM
分类:
其他好文 时间:
2014-07-20 00:23:51
阅读次数:
206
#include
#include
#include
using namespace std;
struct node
{
int x,y,step;
};
char map[105][105];
int vis[105][105];
int to[4][2]= {1,0,-1,0,0,1,0,-1};
int n,m,sx,sy,ex,ey,ans;
int check(in...
分类:
其他好文 时间:
2014-07-19 23:11:19
阅读次数:
330