摘要:
Problem Description 有N个比赛队(1<=N<=500),编号依次为1,2,3,。。。。,N进行比赛,比赛结束后,裁判委员会要将所有参赛队伍从前往后依次排名,但现在裁判委员会不能直接获得每个队的比赛成绩,只知道每场比赛的结果,即P1赢P2,用P1,P2表示,排名时P1在P2之前。现 阅读全文
摘要:
题目链接Problem Description为了训练小希的方向感,Gardon建立了一座大城堡,里面有N个房间(N#include #include #include #include using namespace std;const int MAX = 10000+5; bo... 阅读全文
摘要:
hdoj1325-is it a tree?Problem DescriptionA tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one ... 阅读全文
摘要:
Problem Description上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间... 阅读全文