In a fast local area network (LAN) environment, Transmission Control Protocol/Internet Protocol (TCP/IP) Sockets and Named Pipes clients are comparabl...
分类:
其他好文 时间:
2014-07-06 20:39:21
阅读次数:
315
Implementint sqrt(int x).Compute and return the square root ofx.public class Solution { public int sqrt(int x) { if(x < 0) return -1; if(x =...
分类:
其他好文 时间:
2014-07-06 17:37:30
阅读次数:
150
一,列表的分类1,无序列表通常使用项目符号作为列表项的前缀。符号有三种属性1,默认值为实体圆心 type="disc" 2,实体方心 type="square" 3,空心圆type="circle"语法声明这是个无序列表 并设置列表符号的样式 作为列表语句的开始2,有序列表每个列表项目前,有顺序的符...
分类:
Web程序 时间:
2014-07-06 14:31:31
阅读次数:
165
UVA 1426 - Discrete Square Roots
题目链接
题意:给定X, N, R,要求r2≡x (mod n)
(1
思路:
r2≡x (mod n)=>r2+k1n=x
已知一个r!,带入两式相减得
r2?r12=kn
=> (r+r1)(r?r1)=kn
枚举A,B,使得
A * B = n
(r + r1)为A倍数
(r - r1...
分类:
其他好文 时间:
2014-07-04 07:58:36
阅读次数:
273
Square CoinsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7883Accepted Submission(s): 5332Proble...
分类:
其他好文 时间:
2014-07-02 14:49:04
阅读次数:
196
1. () (round brackets or parentheses):圆括号2. [] (square brackets):方括号3. (angle brackets):尖括号4. {} (braces) :大括号
分类:
其他好文 时间:
2014-07-01 18:08:40
阅读次数:
154
SICP 习题 1.42 出人意料的简单,题目要求我们定义一个名为compose的过程,该过程接收两个参数,都是单参数过程,要求我们将这两个参数代表的过程串起来。题目举例((compose square inc) 6)等于49,其中inc过程接收一个参数,执行加一操作,而square过程也只接收一个参数,执行求平方操作,6加1再求平方就是49了。如果习题1.41都做完了,这道题就比较简单了,定义...
分类:
其他好文 时间:
2014-07-01 10:42:23
阅读次数:
215
【问题】
Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers.
定义一个过程,它以三个数为参数,返回其中较大的两个数的平方和。
【普通版】
(define (sum-square-largest x y ...
分类:
其他好文 时间:
2014-06-30 00:19:52
阅读次数:
270
提问者采纳很简单 只要把你要共享的连接 192.168.0.1 0改成1 然后就可以共享了 共享后再改回来 就能上了 但是会出现IP冲突的~
分类:
Web程序 时间:
2014-06-27 20:35:26
阅读次数:
286
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.
分类:
其他好文 时间:
2014-06-27 11:40:49
阅读次数:
156