// ConsoleApplication3_6_23.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
#include
using namespace std;
using namespace cv;
Mat src,dst,gray;
int pro_typ...
分类:
其他好文 时间:
2014-06-26 06:46:25
阅读次数:
315
说明
Google Chrome,又称 Google 浏览器,是一个由 Google(谷歌)公司开发的网页浏览器。该浏览器是基于其他开源软件所撰写,包括 WebKit,目标是提升稳定性、速度和安全性,并创造出简单且有效率的使用者界面。软件的名称是来自于称作 Chrome 的网络浏览器图形使用者界面(GUI)。软件的 beta 测试版本在 2008 年 9 月 2 日发布,提供
50 种语言版...
分类:
其他好文 时间:
2014-06-26 07:40:10
阅读次数:
245
margin:10% 1%;
横向显示的按宽度算
垂直显示是按高度算
留作纪念。多解释。...
分类:
其他好文 时间:
2014-06-26 08:08:09
阅读次数:
203
第一步:创建项目导入jar包
第二步:建表:
CREATE TABLE `person` (
`ID` int(10) NOT NULL AUTO_INCREMENT,
`NAME` varchar(10) DEFAULT NULL,
`GENDER` int(10) DEFAULT NULL,
`ADRESS` varchar(50) DEFAULT NULL,
...
分类:
其他好文 时间:
2014-06-26 10:11:36
阅读次数:
216
http://202.121.199.212/JudgeOnline/problem.php?id=1746
analy: 无平方因子数,那就是不同的素因子个数一定不超过1,于是就朝这个方向努力:
先把2—10^9之间的所有素数求出来(也就是到99999989之间的所有素数用bool表打出来)
然后一个一个素因子判断过去;
...
分类:
其他好文 时间:
2014-06-26 13:25:49
阅读次数:
216
Description
在N×N的棋盘里面放K个国王,使他们互不攻击,共有多少种摆放方案。国王能攻击到它上下左右,以及左上左下右上右下八个方向上附近的各一个格子,共8个格子。
Input
只有一行,包含两个数N,K ( 1
Output
方案数。
Sample Input
3 2
Sample Output
16
HINT
Sou...
分类:
其他好文 时间:
2014-06-26 14:33:46
阅读次数:
148
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
You are given a target value to search. If found in the array retur...
分类:
其他好文 时间:
2014-06-26 13:58:53
阅读次数:
203
有的时候有这些需求:
1. 统计一个文件的行数
2. 统计一个源代码的有效行数。排除空行和注释行
3. 统一一个目录下各种文件的数量和行数
要达成这些需求,很多语言多可以做到, 但是使用Perl 应该是一个不错的选择...
分类:
其他好文 时间:
2014-06-26 14:07:52
阅读次数:
146
其实编程是一种文化,在软件这个行业慢慢的,不断的沉淀,形成了一种特有的新生的文化,就像我们一个名族的文化,几千年积累下来的,根深蒂固的,影响更深远。设计模式,在这里其实就是一种思想,一种哲学。...
分类:
其他好文 时间:
2014-06-26 13:35:36
阅读次数:
180
做这个题的时候想到了,先来一遍最短路,判断是否可以到达,若可以减去最短路的花费,再在剩下的花费里进行DP求最优解,想到了但是没做到,很多细节没有处理好,结果崩盘了,唉,看题解很多人都是两边dfs,不过这位大牛也是先spfa了一遍, 给我这个弱菜看看 刚好,这篇好好记录下来,
最后参考了大牛的:http://blog.csdn.net/acm_cxlove/article/details...
分类:
其他好文 时间:
2014-06-26 07:07:46
阅读次数:
199
1、查看表结构信息
desc formatted table_name;
desc table_name;
查看关联文件:
desc extended f_tblog_online_mds;
2、查看分区
show partitions table_name;
3、根据分区查询,提高速度
select table_coulm from table_name whe...
分类:
其他好文 时间:
2014-06-26 08:09:25
阅读次数:
261
leetcode: Word Ladder II...
分类:
其他好文 时间:
2014-06-26 14:00:10
阅读次数:
130
【题目】
Given a string s, partition s such that every substring of the partition is a palindrome.
Return the minimum cuts needed for a palindrome partitioning of s.
For example, given s = "aab",
Return 1 since the palindrome partitioning ["aa","b"] could b...
分类:
其他好文 时间:
2014-06-26 07:48:00
阅读次数:
259
这次预想帮师姐进行考试系统的基础维护,说直接点就是对考试人员的管理,这就要设计到SQL的一些基础知识,...
分类:
其他好文 时间:
2014-06-26 10:53:03
阅读次数:
373
【题目】
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.
OJ's undirected graph serialization:
Nodes are labeled uniquely.
We use # as a separator for each node, and , as a separator for node label and each ne...
分类:
其他好文 时间:
2014-06-26 06:48:16
阅读次数:
285