题目描写叙述 链接地址 解法 算法解释 题目描写叙述 Given 3*n + 1 numbers, every numbers occurs triple times except one, find it. Example Given [1,1,2,3,3,3,2,2,4,1] return 4 ...
分类:
其他好文 时间:
2017-06-05 23:43:00
阅读次数:
287
000-- the way to define a string with several lines 001--to get specific letters from a string 002-- the common error message for new beginner while r ...
分类:
编程语言 时间:
2017-06-05 20:58:42
阅读次数:
205
之前的Android沉浸式状态栏实现并没有考虑软键盘的影响,接下来的内容将会针对这个问题给出解决方式,先看一下效果图 这个是一个留言板的效果图: 即弹出软键盘的时候并不会导致整个布局上移。 详细怎样实现?依照下面步骤进行设置: 1、布局文件里声明例如以下 <activity android:name ...
分类:
移动开发 时间:
2017-06-05 11:39:30
阅读次数:
281
近期在做船仅仅识别方面的事情,须要大量的正样本来训练adaboost分类器。于是到marinetraffic这个站点上下载船仅仅图片。写个爬虫来自己主动下载显然非常方便。 站点特点 在介绍爬虫之前首先了解一下marinetraffic这个站点的一些特点: 1. 会定期检測爬虫行为。假设觉得有爬虫大量 ...
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1029 题目类型: 给一个奇数个列的数组,其中一定存在某个数字,该数字的个数是大于一半的,问这个数字是几 解题思路: 1、sort一遍,直接输出下标为n/2的数。 2、将数组开为1000010,然后将数 ...
分类:
其他好文 时间:
2017-06-04 21:28:26
阅读次数:
138
类似于360免费WiFi那个软件,可以PC发射WiFi(需要有无线网卡)。 源码如下: 1 @Echo off 2 title Windows7 虚拟Wifi By yllinux 3 mode con cols=60 lines=26 4 5 :menu 6 color 3f 7 cls 8 Ec ...
分类:
其他好文 时间:
2017-06-04 18:32:50
阅读次数:
263
<pre name="code" class="csharp">mode con:lines=6 mode con:cols=67 @echo off & setLocal EnableDelayedExpansion :start cls if "%1"=="" (@set dd=%date:~6 ...
分类:
其他好文 时间:
2017-06-04 09:44:48
阅读次数:
213
Problem Description Network flow is a well-known difficult problem for ACMers. Given a graph, your task is to find out the maximum flow for the weight ...
分类:
其他好文 时间:
2017-06-02 12:45:06
阅读次数:
230
1、SHOW TABLES; -- 查询库中所有的表 2 、CREATE TABLE test(id INT(20) PRIMARY KEY NOT NULL AUTO_INCREMENT,NAME VARCHAR(50),sex CHAR(1),birth DATE,death DATE); -- ...
分类:
数据库 时间:
2017-06-02 01:10:52
阅读次数:
235
git统计某人代码量 指定用户名版 git log --author="your_name_here" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added l ...
分类:
其他好文 时间:
2017-06-02 01:04:38
阅读次数:
274