Solution1: 1 class Solution { 2 public: 3 int trailingZeroes(int n) { 4 long int temp = factorial(n); 5 int count = 0; 6 b...
分类:
其他好文 时间:
2015-04-10 20:03:48
阅读次数:
133
一,popViewControllerAnimated[self.navigationController popViewControllerAnimated:YES];二,popToRootViewControllerAnimated[self.navigationController popTo...
分类:
其他好文 时间:
2015-04-10 20:03:05
阅读次数:
129
1. 设置git的本地配置信息git config --global user.name ""git config --global user.email ""git config --global alias.co checkout #设置命令别名git config --global ali.....
分类:
其他好文 时间:
2015-04-10 20:01:26
阅读次数:
131
html编辑控件,编写3个div并行,先看一下效果,如下图:我需要将整个白色部分作为一个整体,编辑控件使用,其实使用到的就是div中的float:left属性,并且定义好宽度。css 部分代码如下:.divtitle-item1{width:58%; float:left; }.divtitle-i...
分类:
其他好文 时间:
2015-04-10 20:04:01
阅读次数:
124
今天看到几个有意思的小程序package com.lk.A;public class Test1 { static{ int x = 5;//在第一次被载入JVM时运行,但由于是局部变量,x=5不影响后面的值 } static int x,y; public ...
分类:
其他好文 时间:
2015-04-10 20:02:22
阅读次数:
130
使用 VisualSVN Server来实现主要的 SVN功能则要比使用原始的 SVN和 Apache相配合来实现源代码的 SVN管理简单的多,下面就看看详细的说明。VisualSVN Server的下载地址如下,是免费的,随意不必有顾虑http://www.visualsvn.com/server...
分类:
其他好文 时间:
2015-04-10 20:01:40
阅读次数:
138
IP是网络层协议,IP头中的协议号用来说明IP报文中承载的是哪种协议(一般是传输层协议,比如6 TCP,17 UDP;但也可能是网络层协议,比如1 ICMP;也可能是应用层协议,比如89 OSPF)。TCP/UDP是传输层协议,TCP/UDP的端口号用来说明是哪种上层应用,比如TCP 80代表WWW...
分类:
其他好文 时间:
2015-04-10 20:00:58
阅读次数:
6944
拦截导弹时间限制:3000ms | 内存限制:65535KB难度:3描述某国为了防御敌国的导弹袭击,发展中一种导弹拦截系统。但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能高于等于前一发的高度。某天,雷达捕捉到敌国导弹来袭。由于该系统还在试用阶段,所以只...
分类:
其他好文 时间:
2015-04-10 19:59:15
阅读次数:
130
卡特兰数又称卡塔兰数,英文名Catalan number,是组合数学中一个常出现在各种计数问题中出现的数列。由以比利时的数学家欧仁·查理·卡塔兰 (1814–1894)命名,其前几项为 : 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796, 58786...
分类:
其他好文 时间:
2015-04-10 20:00:39
阅读次数:
226
GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]...
分类:
其他好文 时间:
2015-04-10 20:00:18
阅读次数:
114
机器学习的动机与应用工具:需正版:Matlab,免费:Octave定义(Arthur Samuel 1959):在不直接针对问题进行编程的情况下,赋予计算机学习能力的研究领域。例:Arthur的下棋程序,计算走每一步获胜的概率,最终打败程序作者本人。(感觉使用决策树思想)定义2(Tom Mitche...
分类:
其他好文 时间:
2015-04-10 19:59:18
阅读次数:
260
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define sc(x) scanf("%d",&(x)) 8 #define sc2(x,y) scanf("%d%d", &(x), &(y))...
分类:
其他好文 时间:
2015-04-10 19:57:35
阅读次数:
154
直接上代码: 1 2 6 7 8 9 10 ">11 12 13 14 15 16 17 18 20 -->21 40 41 42 43 44 45 ...
分类:
其他好文 时间:
2015-04-10 19:56:46
阅读次数:
109
http://goodosoft.github.io/2015/02/25/Using-AD-as-authentication-for-Django/http://www.douban.com/group/topic/29387804/http://shijincheng0223.iteye.co...
分类:
其他好文 时间:
2015-04-10 19:55:38
阅读次数:
128
# Redis 配置文件# 当配置中需要配置内存大小时,可以使用 1k, 5GB, 4M 等类似的格式,其转换方式如下(不区分大小写)## 1k =>1000 bytes# 1kb => 1024 bytes# 1m => 1000000 bytes# 1mb =>1024*1024 bytes# ...
分类:
其他好文 时间:
2015-04-10 19:56:56
阅读次数:
169
服务端1.新建空白解决方案,然后再空白解决方案中新建:WCF服务应用程序。建完后如图:2.删掉自动生成的IService1.cs和Service.svc并添加WCF服务文件StudentService.svc,VS会自动生成IStudentService.cs 在添加一个Student类,如图:St...
分类:
其他好文 时间:
2015-04-10 19:57:07
阅读次数:
129
本节的主要内容:1、通过代理类的方式调用服务操作。2、通过通道的方式调用服务操作。3、代码下载一、通过代理类的方式调用服务操作(两种方式添加代理类)1.手动编写代理类,如下:客户端契约:using System;using System.Collections.Generic;using Syste...
分类:
其他好文 时间:
2015-04-10 19:57:18
阅读次数:
130