问题描述
When Deathmoon played MC game, he faced a math problem. When he found a ancient tomb and came in, he found two polynomials f(x) and g(x) no the wall, only did he calculate f(x) + g(x) correctly ...
分类:
其他好文 时间:
2014-05-10 09:57:54
阅读次数:
300
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=586
In the planet w-503 of galaxy cgb, there is a kind of intelligent creature named QS. QScommunicate with each other via networks. If...
分类:
Web程序 时间:
2014-05-10 09:38:02
阅读次数:
537
1、函数是一种 “第一类值”
a = {p = print};
a.p("hello");
a = print;
a("Hi");
2、 table 提供的函数 table.sort
network = {
{name = "lua", IP = "192.168.1.1"},
{name = "CPP", IP = "192.168.1.2"}
};
f...
分类:
其他好文 时间:
2014-05-10 09:21:02
阅读次数:
273
command-not-found has crashed
分类:
其他好文 时间:
2014-05-07 19:52:22
阅读次数:
266
2014.5.5 获取客户端真实ip地址出现问题,解答如下: When you have NAT
(Network Address Translation) device before your servlet
containerrequest.getRemoteAddr()returns the....
分类:
其他好文 时间:
2014-05-07 19:02:49
阅读次数:
261
很多人使用hostname 主机名
来修改,其实这个只是做为暂时的,重启后将恢复到原来的名字.很多人说修改/etc/hosts文件,其实这个文件里的主机名只是为来提供给dns解析的.如果你用不上dns,只需要修改主机名,那修改这个没用.其实是修改这个文件etc/sysconfig/network这个...
分类:
系统相关 时间:
2014-05-07 18:58:50
阅读次数:
389
One evening Johnny found some funny looking beens in his grandfather's garden shed, and decided to plant one of them. Next morning, to his surprise he found an enormous beanstalk growing in his back y...
分类:
其他好文 时间:
2014-05-07 05:17:42
阅读次数:
303
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
You are given a target value to search. If found in the array retur...
分类:
其他好文 时间:
2014-05-06 19:03:11
阅读次数:
365
今天遇到个囧事,使用两个网卡配置同一网段的不同IP地址,结果发现,和Windows下的状况不太一样。Linux默认情况下,只有一个默认网关,路由走一个设备出局。因此,非默认路由的设备将没有流量,也就是不通。。。解决方法,添加非默认路由表iproaddvia172.16.1.254deveth1table1..
分类:
系统相关 时间:
2014-05-06 16:17:25
阅读次数:
474
运行级别(Runlevel)指的是Unix或者Linux等类Unix操作系统下不同的运行模式。运行级别通常分为7等,分别是从0到6,但如果必要的话也可以更多。例如在大多数linux操作系统下一共有如下6个典型的运行级别:0
停机1 单用户,Does not configure network int...
分类:
系统相关 时间:
2014-05-06 12:18:28
阅读次数:
446