摘要: http://poj.org/problem?id=1094感觉还是挺好的一个题的,虽说是看的小媛的思路;题意:判断给出的一些字母的先后顺序,进行拓扑排序,看看是否有序;思路:用flord判断环还是挺好的,然后拓扑排序判断序列的排序关系;代码:View Code #include <iostream>#include <cstdio>#include <cstring>#include <algorithm>#include <cstdlib>using namespace std;int n = 0;int m = 0;int ma 阅读全文
posted @ 2012-03-17 00:23 LT-blogs 阅读(207) 评论(0) 推荐(0) 编辑