Sqrt(x)Total Accepted:52136Total Submissions:225527My SubmissionsQuestionSolutionImplementint sqrt(int x).Compute and return the square root ofx.Hide ...
分类:
其他好文 时间:
2015-06-03 13:13:21
阅读次数:
118
Spiral Matrix IITotal Accepted:28996Total Submissions:91437My SubmissionsQuestionSolutionGiven an integern, generate a square matrix filled with eleme...
分类:
编程语言 时间:
2015-06-02 12:59:23
阅读次数:
120
手动配置电脑ip 外网的网线连接无线路由器的wan口 电脑连接无线路由器lan口(不能用无线连接必须有线连接)路由的ip地址 192.168.1.1 子网掩码 255.255.255.0路由器的 DHCP服务 和upnp 关闭虚拟机服务VMware NAT ServiceVMware DHCP Se...
分类:
其他好文 时间:
2015-06-02 00:01:53
阅读次数:
304
这一题,简单的母函数的应用,好久没有写过母函数了,有点生疏了。
题目的硬币有17种,分别是1到17的平方的硬币。
下面的是AC的代码:
#include
#include
#include
using namespace std;
int dp[305], temp[305];
int main()
{
int i, j, k, l;
for(i = 0; i < 305; i...
分类:
其他好文 时间:
2015-05-31 23:22:36
阅读次数:
196
链接:http://www.360doc.com/content/12/0615/14/10216164_218320534.shtml在允许的环境下,Kerberos是首选的认证方式。在这之前,Windows主要采用另一种认证协议——NTLM(NT Lan Manager)。NTLM使用在Wind...
分类:
其他好文 时间:
2015-05-31 18:06:48
阅读次数:
170
/*ID: awsd1231PROG: transformLANG: C++*/#include#includeusing namespace std;char square[15][15], afterSquare[15][15], tmpSquare[15][15];int n;bool num...
分类:
其他好文 时间:
2015-05-31 13:51:33
阅读次数:
98
在javascript里,函数是可以嵌套的。 如: function(){ funcrion square(x){ return x*x; } return square(10); }在javascript里,将函数绑定给一个对象,用对象调用的函数称为方法,容易跟...
分类:
编程语言 时间:
2015-05-30 19:42:46
阅读次数:
136
1 枚举 1 enum ShapeType 2 { 3 circle, 4 square, 5 rectangle 6 }; 7 8 int main() { 9 10 ShapeType shape = circle;11 12 switch(shape)...
分类:
编程语言 时间:
2015-05-30 15:16:36
阅读次数:
125
Implement int sqrt(int x).Compute and return the square root of x. 1 class Solution { 2 public: 3 int mySqrt(int x) { 4 unsigned long long...
分类:
其他好文 时间:
2015-05-29 20:05:20
阅读次数:
114
5/29:vlan:virtual lan, 通过PVID来将物理上连通的host/PC划分到不同的局域网。switch的每个port有access与trunk两种mode,trunk模式的port属于所有vlan(所有vlan的消息都能被转发)。某个vlan的路径上的所有switch都要有该val...
分类:
其他好文 时间:
2015-05-29 19:55:35
阅读次数:
138