摘要: "gym 100801G" 题意: 给出 $n$ 个点 $m$ 条边的 $DAG$,要求最多加 $k$ 条有向边(不能形成环),使得可能的字典序最小的拓扑序列最大。输出最终最小的拓扑序列,以及加边数,加的边($1 \leq n \leq 10^5,0 \leq m \leq 10^5$) 题解: 用 阅读全文
posted @ 2017-10-07 22:17 tarjan's 阅读(208) 评论(0) 推荐(0) 编辑
摘要: "codeforces 869E" E. The Untended Antiquity time limit per test2 seconds memory limit per test512 megabytes inputstandard input outputstandard output 阅读全文
posted @ 2017-10-07 14:32 tarjan's 阅读(159) 评论(0) 推荐(0) 编辑