2012年12月11日

UVA10557-XYZZY

摘要: 就是找正环,再找路径,详细的待以后再讨论先贴上代码:dfs+dfs:#include #include using namespace std; struct Room{ int value,count; int list[100]; }; Room room[150]; int n, value[150], visit[150] = {0, 0, 0};; void input() { for(int i = 1; i >room[i].value>>room[i].count; int len = room[i].count; f... 阅读全文
posted @ 2012-12-11 00:23 Primo... 阅读(215) 评论(0) 推荐(0)