http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5337 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 vectorg[10...
分类:
其他好文 时间:
2014-08-24 19:17:32
阅读次数:
168
HMachinehttp://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5337树的深搜。邻接表快一些 1 #include 2 #include 3 #include 4 #include 5 #define mt(a,b) memse...
分类:
其他好文 时间:
2014-08-24 19:15:42
阅读次数:
184
比方说下面一段代码 make_process(List) when is_list(List)-> Pid1=spawn(fun()->do_action(List) end), register(pid1,Pid1), Pid2=spawn(fun()->do_action() end), register(pid2,Pid2). do_action(List)-> re...
分类:
其他好文 时间:
2014-08-24 18:09:53
阅读次数:
302
You have to color an M x N (1M,
N108) two dimensional grid. You will be provided
K (2K108)
different colors to do so. You will also be provided a list of
B (0B500)list
of blocked cells of this...
分类:
其他好文 时间:
2014-08-24 15:29:22
阅读次数:
234
def do_n_times(n){ i = 1 while( i#{x}" }# --->1# --->2# --->3上面是使用关键字 yeild 来调用代码块,而下面的例子,在方法定义的时候定义了一个Proc 参数( 索引到传入的块),然后在方法里调用 call 方法,来调用Proc 块。.....
分类:
其他好文 时间:
2014-08-24 15:24:32
阅读次数:
165
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.思路:使用两个向量分别记录每一行和每一列是否存在0。 1 class Solution { 2 public: 3...
分类:
其他好文 时间:
2014-08-24 12:49:02
阅读次数:
211
@RequestMapping(value="ddd.do")publicvoidddd(HttpServletResponseresponse){try{List<AsWp>list=asWpService.findAll();HSSFWorkbookwb=export(list);response.setContentType("application/vnd.ms-excel");response.setHeader("Content-disposition","p_w_upload;fil..
分类:
编程语言 时间:
2014-08-24 10:22:22
阅读次数:
213
先来个 hello, world! 看看解释器是否能正常工作: print("hello, world") 可以正常输出,说明解释器能正常干活。 再看看几个官方自带的测试文件是干什么的: array.lua $debug
a?=?@()
i=0
while?i<10?do
?...
分类:
其他好文 时间:
2014-08-24 01:54:27
阅读次数:
295
递归打印lua中的table,并写到文件里: 1 local pairs_by_keys = function(inTable) 2 local temp = {} 3 for k, v in pairs(inTable) do 4 temp[#temp + ...
分类:
其他好文 时间:
2014-08-23 20:14:11
阅读次数:
218
JSP: 登录 /equipOut.do" method="post"> 客户编号 客户名称 经办人 出库日期 设备编号 设备种类 备注 操作 删除 添加 DAO:public class EquipOutDao ex...
分类:
其他好文 时间:
2014-08-23 17:38:51
阅读次数:
286