原创 a1003. Emergency (25)

As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scatt

原创 1011. World Cup Betting (20)

With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best pl

原创 a1006. Sign In and Sign Out (25)

At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one

原创 OpenCv學習之 addWeighted

addWeighted 函數中兩個合併的對象需大小一致,並且多通道的圖像和單通道的不能合併,這時可以將雙通道imread時加上參數0;

原创 a1001. A+B Format (20)

1001. A+B Format (20) Calculate a + b and output the sum in standard format -- that is, the digits must be separa

原创 a1004. Counting Leaves (30)

A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no chil

原创 a1002. A+B for Polynomials (25)

This time, you are supposed to find A+B where A and B are two polynomials. Input Each input file contains one te

原创 1010. Radix (25)

Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is "yes", if

原创 opencv 3加opencv_contrib配置

今天搞了一天,截止目前十一點還是沒搞好。 http://www.cnblogs.com/Geo-fortune/p/4822997.html 具體參照上面這位的教程,一開始沒想到中文搜關鍵字,對着contrib的readme文件折騰了

原创 a1005. Spell It Right (20)

Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the

原创 類的static成員函數問題

cp4 上說static需要在類定義體外初始化  但是未初始化時也不報錯。

原创 1018. Public Bike Management (30)

There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the wor

原创 a1007 . Maximum Subsequence Sum (25)

Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } w

原创 1013. Battle Over Cities (25)

It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all

原创 【LeetCode】leetcode sum問題彙總小結

1. 2Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You