# of '0': # of 'z' # of '2': # of 'w' 4: u 6: x 8: g 3: h - 8 5: f - 4 7: s - 6 1: o - 0 - 2 - 4 9: i - 5 - 6 - 8 我的code用了一个数组来存char count ...
分类:
其他好文 时间:
2016-12-05 09:30:45
阅读次数:
251
只计算每个battleship的第一个元素,所以后面‘X’如果above或者left也是'X'的话,不被计算 ...
分类:
其他好文 时间:
2016-12-05 07:48:53
阅读次数:
169
(1)安装git后,打开cmd,进入要上传的文件夹中; (2)输入git init初始化本地git仓库; (3)git add .将所有文件提交到暂存区; (4)git commit -m'说明文字'; (5)git remote add origin http://github...(要关联的gi ...
分类:
其他好文 时间:
2016-12-05 01:38:57
阅读次数:
103
js获取当前时间 var d = new Date() var nowYear = +d.getFullYear() EF框架填充下拉菜单 var model = db.GYSAllFoods.Select(m => new{GYS = m.GYS}).Distinct();//去重很关键 fore ...
分类:
其他好文 时间:
2016-12-05 01:26:37
阅读次数:
168
在javascript OOP中,我们经常会这样定义: function cat(){ } cat.prototype={ food:"fish", say: function(){ alert("I love "+this.food); } } var blackCat = new cat; bl ...
分类:
移动开发 时间:
2016-12-04 22:58:33
阅读次数:
262
Description 墨墨突然对等式很感兴趣,他正在研究a1x1+a2y2+…+anxn=B存在非负整数解的条件,他要求你编写一个程序,给定N、{an}、以及B的取值范围,求出有多少B可以使等式存在非负整数解。 墨墨突然对等式很感兴趣,他正在研究a1x1+a2y2+…+anxn=B存在非负整数解的 ...
分类:
其他好文 时间:
2016-12-04 21:04:14
阅读次数:
236
Distributed Denial of Service (DDoS) Attacks/tools https://staff.washington.edu/dittrich/misc/ddos/ http://blog.trendmicro.com/trendlabs-security-inte ...
分类:
其他好文 时间:
2016-12-04 20:38:38
阅读次数:
173
If you cannot afford to use Boost, then there is a very minimal library that I implemented which simply acts as a wrapper around each operating system ...
分类:
其他好文 时间:
2016-12-04 20:20:59
阅读次数:
264
恢复内容开始 基本安卓本身自带的Geocoder这个类其实也可以实现对于经纬度的正反向编绎,但是它自身的bug存在不少,尤其在解析的稳定性这里而言,谷歌所提供的Geocoding 稳定性更加的好,虽然它的用法复杂了一点点,其实它大体的工作原理还是http协议,谷歌有对外开放的接口,我们将经纬值做为参 ...
分类:
其他好文 时间:
2016-12-04 20:10:26
阅读次数:
135