摘要:
A power network consists of nodes (power stations, consumers and dispatchers) connected by power transport lines. A node u may be supp... 阅读全文
摘要:
Dearboy, a goods victualer, now comes to a big problem, and he needs your help. In his sale area there are N shopkeepers (marked from ... 阅读全文
摘要:
On a grid map there are n little men and n houses. In each unit time, every little man can move one unit step, either horizontally, or... 阅读全文
摘要:
You are in charge of setting up the press room for the inaugural meeting of the United Nations Internet eXecutive (UNIX),... 阅读全文
摘要:
Cows are such finicky eaters. Each cow has a preference for certain foods and drinks, and she will consume no others. ... 阅读全文
摘要:
As you know, all the computers used for ACM contests must be identical, so the participants compete on equal terms. That is why all these computers ar 阅读全文
摘要:
As you know, all the computers used for ACM contests must be identical, so the participants compete on equal terms. ... 阅读全文
摘要:
1000ms ... 阅读全文
摘要:
The Princess has been abducted by the BEelzebub feng5166, our hero Ignatius has to rescue our pretty Princess. Now he gets into feng51... 阅读全文
摘要:
Prim 邻接矩阵版:#define INF 0x3f3f3f3fconst int MAXN = 105;int N;int map[MAXN][MAXN];bool book[MAXN];//true为已经加入树的,false则相反 int lenth[MAXN]... 阅读全文