http://poj.org/problem?id=1251 The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads ...
分类:
其他好文 时间:
2018-10-05 12:16:56
阅读次数:
150
题意与分析(CodeForces 540D) 代码 cpp include include include include include define MP make_pair define PB push_back define fi first define se second define ...
分类:
其他好文 时间:
2018-09-29 23:50:53
阅读次数:
184
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo ...
分类:
编程语言 时间:
2018-09-29 14:21:51
阅读次数:
179
1 class Solution { 2 public int islandPerimeter(int[][] grid) { 3 if(grid == null) return 0; 4 int row = grid.length; 5 if(row == 0) return 0; 6 int c... ...
分类:
其他好文 时间:
2018-09-28 10:58:26
阅读次数:
140
"题目链接" Highways Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 21476 Accepted: 6337 Special Judge Description The island nation of Flatopi ...
分类:
其他好文 时间:
2018-09-27 18:01:50
阅读次数:
156
You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/ve ...
分类:
其他好文 时间:
2018-09-27 10:40:29
阅读次数:
174
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1406 The Head Elder of the tropical island of Lagrishan has a problem. A burst of fo ...
分类:
其他好文 时间:
2018-09-26 16:11:57
阅读次数:
182
There are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some of these texts even include maps of parts of the i ...
分类:
其他好文 时间:
2018-09-18 13:07:28
阅读次数:
145
题目描述 OI island是一个非常漂亮的岛屿,自开发以来,到这儿来旅游的人很多。然而,由于该岛屿刚刚开发不久,所以那里的交通情况还是很糟糕。所以,OIER Association组织成立了,旨在建立OI island的交通系统。 OI island有n个旅游景点,不妨将它们从1到n标号。现在,O ...
分类:
其他好文 时间:
2018-09-18 11:55:20
阅读次数:
167
There is a travel agency in Adelton town on Zanzibar island. It has decided to offer its clients, besides many other attractions, sightseeing the town ...
分类:
其他好文 时间:
2018-09-16 18:40:01
阅读次数:
171