A squarenumber is an integer number whose square root is also an integer. For example1, 4, 81 are some square numbers. Given two numbers a and b you will have tofind out how many square numbers are th...
分类:
其他好文 时间:
2014-08-20 16:28:22
阅读次数:
151
DescriptionGiven a matrix, the elements of which are all integer number from 0 to 50, you are required to evaluate the square sum of its specified sub...
分类:
其他好文 时间:
2014-08-20 14:03:22
阅读次数:
248
NAT模式。此模式下,由局域网向广域网发送的数据包默认经过NAT转换,但路由器对所有源地址与局域网接口不在同一网段的数据包均不进行处理。例如,路由器LAN口IP设置为192.168.1.1,子网掩码为255.255.255.0,LAN口所处网段为192.168.1.0/24,此时,路由器收到源地址为...
分类:
其他好文 时间:
2014-08-20 13:59:52
阅读次数:
371
Perfect Pth PowersTime Limit:1000MSMemory Limit:10000KTotal Submissions:16638Accepted:3771DescriptionWe say that x is a perfect square if, for some in...
分类:
其他好文 时间:
2014-08-20 12:14:12
阅读次数:
380
给出一些正方形,让你求这些正方形顶点之间的最大距离的平方。
//返回点集直径的平方
int diameter2(vector & points) {
vector p = ConvexHull(points);
int n = p.size();
if(n==1) return 0;
if(n==2) return Dist2(p[0], p[1]...
分类:
其他好文 时间:
2014-08-20 02:42:15
阅读次数:
165
前一阵子做路由器的联网,由于利用了Openwrt操作系统,做起来虽然方便,但是很多原理细节都被忽略了。所以这里再来老生常谈一下wan口和lan口的区别,以及他们之间的工作原理。首先百度一下,基本知识:熟悉网络的朋友都知道WAN是英文WideAreaNetwork的首字母所写,即代表广域网;而LAN则...
分类:
其他好文 时间:
2014-08-18 18:01:02
阅读次数:
313
select * from nls_instance_parameters where parameter =‘NLS_TERRITORY‘ or parameter =‘NLS_LANGUAGE‘; select * from nls_instance_parameters ?where parameter =‘NLS_TERRITORY‘ or parameter =‘NLS_LAN...
分类:
数据库 时间:
2014-08-18 14:39:32
阅读次数:
286
解:相关代码如下,时间测不出来 #lang?racket
(define?(square?x)
??(*?x?x))
(define?(smallest-divisor?n)
??(define?(divides??a?b)
????(=?(remainder?b?a)?0))
??(define?(next...
分类:
其他好文 时间:
2014-08-17 18:43:12
阅读次数:
187
Description
A square is a 4-sided polygon whose sides have equal length and adjacent sides form 90-degree angles. It is also a polygon such that rotating about its centre by 90 degrees gives the sa...
分类:
其他好文 时间:
2014-08-17 15:39:02
阅读次数:
286