Number of IslandsGiven a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by con...
分类:
其他好文 时间:
2015-05-06 10:51:49
阅读次数:
132
UML类图:
实例实现代码:
abstract class Visitor
{
public abstract void VisitConcreteElementA(ConcreteElementA concreteElementA);
public abstract void VisitConcreteElementB(Con...
分类:
其他好文 时间:
2015-05-05 19:49:01
阅读次数:
108
转自http://www.cnblogs.com/ctriphire/p/4116207.html大家都有用过各种类型的浏览器,每种浏览器都有自己的特色,本人拙见,在我用过的浏览器当中,我是最喜欢Chrome的,因为它对于调试脚本及前端设计调试都有它比其它浏览器有过之而无不及的地方。可能大家对con...
分类:
其他好文 时间:
2015-05-05 12:16:07
阅读次数:
134796
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define INF 100000000
using namespace std;
struct node{
int b,p;
bool operator <(const node& a)con...
分类:
其他好文 时间:
2015-05-05 09:00:49
阅读次数:
132
Hard Work Does Not Pay OffOlve MaudalAS A PROGRAMMER, YOU’LL FiND THAT working hard often does not pay off. You might fool yourself and a few colleagues into believing that you are con- tributing a lot...
分类:
其他好文 时间:
2015-05-04 10:05:14
阅读次数:
126
Let the Balloon Rise
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 85666 Accepted Submission(s): 32330
Problem Description
Con...
分类:
编程语言 时间:
2015-05-03 13:25:20
阅读次数:
165
题意:错排链接:点我百年难得一遇大水题 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 #define MOD 100000000710 con...
分类:
其他好文 时间:
2015-05-02 16:23:51
阅读次数:
107
Malfatti Circles
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 250
Accepted: 125
Special Judge
Description
The con?guration of three circles packed i...
分类:
其他好文 时间:
2015-05-01 21:20:07
阅读次数:
264
很显然n方的复杂度过不了。于是考虑优化最值的查询,可以考虑用堆或者单调队列来做。堆: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int INF = 99999999; 8 con...
分类:
其他好文 时间:
2015-05-01 18:42:10
阅读次数:
134