EightTime Limit:1000MSMemory Limit:65536KTotal Submissions:23815Accepted:10518Special JudgeDescriptionThe 15-puzzle has been around for over 100 years...
分类:
其他好文 时间:
2014-07-16 20:48:30
阅读次数:
219
原题: ZOJ 3769http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3769一个带有一些限制的背包问题。假设在没有限制的情况下,那么定义:dp[i][j]表示在前 i 类物品中,总的Toughness为 j 的时候最大的伤...
分类:
其他好文 时间:
2014-07-16 20:45:58
阅读次数:
132
原题:ZOJ 3774 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3774-------------------------------------------------------------------------...
分类:
其他好文 时间:
2014-07-16 20:45:49
阅读次数:
137
socket编程原理1、问题的引入1) 普通的I/O操作过程:UNIX系统的I/O命令集,是从Maltics和早期系统中的命令演变出来的,其模式为打开一读/写一关闭(open-write-read-close)。在一个用户进程进行I/O操作时,它首先调用“打开”获得对指定文件或设备的使用权,并返回称...
分类:
其他好文 时间:
2014-07-16 20:42:22
阅读次数:
194
今天遇到问题,删除文件即搞定!!~~~~~~~~~~~~~~SSH登陆错误 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!Connection to 192.168.10.20 closed. [root@localhost ~]# ssh 192....
分类:
其他好文 时间:
2014-07-16 20:42:07
阅读次数:
195
用于打印杨辉三角的程序,有多种算法仅提供一种PRogram yh (input,ouput);var m,n,c:integer;BeginFor m:=0 TO 10 Do Begin c:=1; write(c:40-3*m); For n:=1 To m Do begin c:=c+(m-n+...
分类:
其他好文 时间:
2014-07-16 19:38:04
阅读次数:
148
一个被人写滥了的小程序,新手学习,Pascal By Chaobs初学者可以用它来学习随机函数的运用,当然你完全可以自己写一个随机函数。var player1,player2:longint; a,b,l,o,i,v:longint; w:boolean;begin randomize; write...
分类:
其他好文 时间:
2014-07-16 19:36:43
阅读次数:
139
All good so far. We next want to delete the branch on github. However, if we do this the naive way:git push origin :masterwe just get an error like th...
分类:
其他好文 时间:
2014-07-16 19:33:09
阅读次数:
231
BT5与Ubuntu下安装最新版Metasploit4.5方法:(先把老版本的MSF uninstall,BT5自带的老版本Metasploit没有办法升级!)1、下载Metasploit下的Linux安装包,拷贝至Ubunto的/opt目录。http://www.metasploit.com/do...
分类:
Web程序 时间:
2014-07-13 12:25:55
阅读次数:
312
var str = "00012300325300"; str = str.replace(/\b(0+)/gi,""); // 去掉字符串前面的0document.write("str=" + str + "");上面代码中replace的正则表达式就是去掉字符串前面的0
分类:
编程语言 时间:
2014-07-13 11:48:00
阅读次数:
247