摘要: 原题:http://codeforces.com/problemset/problem/510/C C. Fox And Names time limit per test:2 seconds memory limit per test:256 megabytes input:standard in 阅读全文
posted @ 2017-04-05 14:11 Dh_q 阅读(767) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://cn.vjudge.net/problem/UVA-10305(忍不住uva连接满) John has n tasks to do. Unfortunately, the tasks are not independent and the execution of one 阅读全文
posted @ 2017-04-05 13:59 Dh_q 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 最近刷了几题拓扑排序的题,记录一下拓扑排序 在有向图中,并且按照一定的规则(题目所给的规则)排序。如果图中出现了有向环的话就无法排序了。 附上相关题目:1)http://codeforces.com/problemset/problem/510/C 阅读全文
posted @ 2017-04-05 13:44 Dh_q 阅读(447) 评论(0) 推荐(0) 编辑