Problem Description
There are N people want to choose the best person. Each person select the best person ai, .John wants to know that who received the most number of votes.
Input
The first line co...
分类:
其他好文 时间:
2015-04-12 12:10:06
阅读次数:
120
Title :Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoi...
分类:
其他好文 时间:
2015-04-12 11:57:25
阅读次数:
100
Ananagrams
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit Status
Description
Most crossword puzzle fans are used to anagrams--groups o...
分类:
其他好文 时间:
2015-04-12 09:16:22
阅读次数:
119
半平面交+二分
二分距离,判断是否有半平面交,精度要求很高
Most Distant Point from the Sea
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 4163
Accepted: 1942
Special Judge...
分类:
其他好文 时间:
2015-04-12 00:06:40
阅读次数:
337
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2015-04-11 22:26:13
阅读次数:
187
一:LeetCode 121 Best
Time to Buy and Sell Stock
题目:
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one t...
分类:
其他好文 时间:
2015-04-11 20:52:40
阅读次数:
213
题意:给出一幅无向图,每次询问给出起点和终点,求起点到终点权值差最小的一条路,输出权值差;思路:边按权值排序,利用并查集枚举每次能使起点终点联通的情况下权值差,并每次更新最小值;#include#include#includeusing namespace std;#define INF 0x3f3...
分类:
其他好文 时间:
2015-04-11 20:36:34
阅读次数:
133
Introduction Javascript rich text editor has ease our life when we need to edit articles, post or even documents online. Most of the editors allow user to edit the content straight away (What You S...
分类:
其他好文 时间:
2015-04-11 18:05:53
阅读次数:
255
13914. Train Passengers
Constraints
Time Limit: 1 secs, Memory Limit: 256 MB
Description
The Nordic Company of Passing Carriages is losing money at an alarming rate because most of t...
分类:
其他好文 时间:
2015-04-10 22:33:19
阅读次数:
237
The BasicsFieldsFields are the most fundamental unit of construction: theyparse(read data from the stream and return an object) andbuild(take an objec...
分类:
编程语言 时间:
2015-04-10 22:01:28
阅读次数:
285