[+-]?\d+(.\d+)? 数字的正则 input的控制填写 function toNum(v) { return v.replace(/[^\d.]/g, '').replace(/^\./g, "").replace(/\.{2,}/g, ".").replace(".", "$#$").r ...
分类:
其他好文 时间:
2016-08-06 17:17:49
阅读次数:
145
如何计算IP地址及CIDR 一、 IP地址概念 IP地址是一个32位的二进制数,它由网络ID和主机ID两部份组成,用来在网络中唯一的标识的一台计算机。网络ID用来标识计算机所处的网段;主 机ID用来标识计算机在网段中的位置。IP地址通常用4组3位十进制数表示,中间用“.”分隔。比如,192.168. ...
分类:
其他好文 时间:
2016-08-06 17:18:28
阅读次数:
206
Description Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as d ...
分类:
其他好文 时间:
2016-08-06 17:18:35
阅读次数:
136
Altium.Designer.16.1.11一体化电子产品开发系统Altium Designer 16.1.9 Build 221 1DVD详细介绍编辑电路设计自动化 EDA(Electronic Design Automation)指的就是将电路设计中各种工作交由计算机来协助完成。如电路原理图( ...
分类:
其他好文 时间:
2016-08-06 17:17:10
阅读次数:
646
系统 : Windows xp 程序 : KeyGenMe 1 by Taliesin 程序下载地址 :http://pan.baidu.com/s/1c2HTuqk 要求 : 注册机编写 使用工具 : OD 可在看雪论坛中查看关于此程序的讨论:传送门 老规矩,先查看下字符串,定位关键代码: 大概就 ...
分类:
其他好文 时间:
2016-08-06 17:16:13
阅读次数:
191
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia ...
分类:
其他好文 时间:
2016-08-06 17:15:13
阅读次数:
138
1. 安装caffe请参考 http://www.cnblogs.com/xuanyuyt/p/5726926.html 2. 下载训练和测试数据。caffe识别leveldb或者lmdb格式的数据,这里提供转换好的LEVELDB格式数据集,解压缩到mnist例子目录下 3. 打开lenet_sol ...
分类:
其他好文 时间:
2016-08-06 17:17:21
阅读次数:
327
原题链接:点击此处 思路:01背包问题,还没太懂,拿着公式用,结果过了,放这里,以后再琢磨。 源代码: #include <iostream> #include <stdio.h> #include <vector> #include <algorithm> using namespace std; ...
分类:
其他好文 时间:
2016-08-06 17:15:10
阅读次数:
164
转自:http://www.cnblogs.com/idche/archive/2011/07/05/2098165.htmlGIT 学习笔记 集中化的版本控制系统 CVCS(Centralized Version Control System) 分布式版本控制系统 DVCS(Decentraliz ...
分类:
其他好文 时间:
2016-08-06 17:16:27
阅读次数:
154
原题链接:点击此处 题意: 第一行输入T,表示有T组数据。然后每一行输入N和M,分别表示所要求数的范围为1~N,比较值为M。 题目意思很简单,就是求解,在数的范围内X∈[1~N],存在多少个X使得GCD(X,N)>=M,统计X符合要求的个数。 用膝盖骨想想也知道,如果直接暴力遍历N次,每次操作的复杂 ...
分类:
其他好文 时间:
2016-08-06 17:15:14
阅读次数:
167
K - Necklace Crawling in process... Crawling failed Time Limit:1000MS Memory Limit:327680KB 64bit IO Format:%I64d & %I64u Submit Status Description In ...
分类:
其他好文 时间:
2016-08-06 17:14:41
阅读次数:
236
Description A snail is at the bottom of a 6-foot well and wants to climb to the top. The snail can climb 3 feet while the sun is up, but slides down 1 ...
分类:
其他好文 时间:
2016-08-06 17:15:56
阅读次数:
131
1、引起循环引用的原因 1> A拥有B,B拥有C。当C需要销毁时,发现被B拥有,当B需要销毁时,发现被A用有,从而导致内存泄漏。如NSTimer(NSRunloop拥有NSTimer,NSTimer拥有self); 2> A拥有B,B拥有A。如block作为属性时,使用代理时; 2、打破循环引用 打 ...
分类:
其他好文 时间:
2016-08-06 17:13:45
阅读次数:
154
1.谨慎地选择方法的名称。遵循标准的命名习惯。 2.不过于追求提供便利的方法。方法太多会使类难以学习、使用、文档化、测试和维护。 3.避免过长的参数列表。目标是四个参数以下。 缩短参数列表的方法: (1)把方法分解成多个方法,可能会导致方法过多, 通过提升方法正交性,可以减少方法数目。java.ut ...
分类:
其他好文 时间:
2016-08-06 17:15:35
阅读次数:
345
原题链接:点击此处 思路: 这道题就是博弈论的运用,有兴趣的可以看看: 组合博弈 -- 三大基本博弈 源代码: #include <iostream> #include <stdio.h> #include <algorithm> #include <cmath> using namespace s ...
分类:
其他好文 时间:
2016-08-06 17:13:06
阅读次数:
158
1.区别 The followings are two limitations of SurfaceView: You can not be animated, transformed and scaled; You can not overlay two SurfaceView. TextureV ...
分类:
其他好文 时间:
2016-08-06 17:13:02
阅读次数:
292
在Unix/Linux下,最危险的命令恐怕就属rm命令了,每次在root下使用这个命令的时候,我都要盯着命令行看上几分钟才敢把回车敲下去。 以前,看到同事在脚本中使用rm命令 —— rm {$App_Dir}/* 。因为脚本没有判断变量$App_Dir是否为空,结果,在一次用root操作的时候,整个 ...
分类:
其他好文 时间:
2016-08-06 17:14:20
阅读次数:
107