D. Puzzles Barney lives in country USC (United States of Charzeh). USC has n cities numbered from 1 through n and n?-?1 roads between them. Cities and ...
分类:
其他好文 时间:
2016-07-19 13:39:54
阅读次数:
206
注意: 注意数组越界问题(提交出现runtimeError代表数组越界) 刚开始提交的时候,边集中边的数目和点集中点的数目用的同一个宏定义,但是宏定义是按照点的最大数定义的,所以提交的时候出现了数组越界问题,以后需要注意啦。 Description The Head Elder of the tro ...
分类:
编程语言 时间:
2016-07-16 22:14:04
阅读次数:
363
Description Mad scientist Mike has just finished constructing a new device to search for extraterrestrial intelligence! He was in such a hurry to laun ...
分类:
其他好文 时间:
2016-07-12 13:33:52
阅读次数:
201
Problem Description
Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There are WALLs, ROADs, and GUARDs in the prison.Angel’s...
分类:
其他好文 时间:
2016-07-10 18:30:32
阅读次数:
174
Problem Description There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to ... ...
分类:
其他好文 时间:
2016-07-07 00:56:04
阅读次数:
146
Problem A
There are N cities in Chelsea's state (numbered starting from 1, which is Chelsea's city), and M bidirectional roads directly connect them. (A pair of cities may even be directly connected...
分类:
其他好文 时间:
2016-07-03 20:03:45
阅读次数:
317
Description The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages s ...
分类:
其他好文 时间:
2016-07-03 13:09:44
阅读次数:
137
http://acm.hdu.edu.cn/showproblem.php?pid=1025 Constructing Roads In JGShining's Kingdom Problem Description JGShining's kingdom consists of 2n(n is n ...
分类:
其他好文 时间:
2016-07-01 10:08:17
阅读次数:
129
Constructing Roads Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 22048 Accepted: 9389 Description There are N villages, which are numbere ...
分类:
其他好文 时间:
2016-06-30 17:52:37
阅读次数:
133