hdu 2819 SwapDescription
Given an N*N matrix with each entry equal to 0 or 1. You can swap any two rows or any two columns. Can you find a way to make all the diagonal entries equal to 1?Input
There...
分类:
其他好文 时间:
2015-08-30 15:53:11
阅读次数:
151
虽然像Wireshark(易于掌握)等图形化的抓包工具已经被我们大量使用,但是有的时候tcpdump还是能派上用场,所以我们依然要掌握一些基本的用法和参数1.tcpdump的参数说明
参数
说明 -n
使用IP地址表示主机,而不是主机名;使用数字表示端口而不是服务名称
-i
指定要监听的网卡接口。”-i any”表示抓取所有网卡上的数据包
-v
输出一个稍微详细的信息,...
分类:
其他好文 时间:
2015-08-30 12:56:53
阅读次数:
131
描述: Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located withi....
分类:
其他好文 时间:
2015-08-30 11:09:30
阅读次数:
149
题目如下:
A table tennis club has N tables available to the public. The tables are numbered from 1 to N. For any pair of players, if there are some tables open when they arrive, they will be assign...
分类:
其他好文 时间:
2015-08-29 12:40:42
阅读次数:
244
dig基本功能
dig sina.com any @8.8.8.8
| 域 |类型|指定DNS|
xy@localhost:~$ dig sina.com ; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> sina.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode:...
分类:
其他好文 时间:
2015-08-29 11:13:24
阅读次数:
238
/** * Tries to claim the user‘s drag motion, and requests disallowing any * ancestors from stealing events in the drag. *? * 试图告诉父view不要拦截子控件的drag */ private void attemptClaimDrag() {...
分类:
其他好文 时间:
2015-08-28 23:28:52
阅读次数:
955
1031. Hello World for U (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven any string of N (>=5) characters, you are asked to form th...
分类:
其他好文 时间:
2015-08-28 23:04:26
阅读次数:
200
1028. List Sorting (25)时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueExcel can sort records according to any column. Now you are supposed ...
分类:
其他好文 时间:
2015-08-28 21:13:41
阅读次数:
171
1:lists:all(fun(E)->true end,[1,2,3,4]). 结果true如果List中的每个元素作为函数的参数执行,结果都返回true,那么all函数就返回true,否则返回false2:lists:any(fun(E)->is_integer(E) end,[q,w,a,4]...
分类:
其他好文 时间:
2015-08-28 21:10:58
阅读次数:
119
1.According to TLD or attribute directive in tag file, attribute value does not accept any expressionsStruts2标签不支持EL表达式就会导致上面的错误而改为就没有没问题
分类:
其他好文 时间:
2015-08-28 21:08:18
阅读次数:
181