随笔分类 - 拓扑排序
摘要:"gym 100801G" 题意: 给出 $n$ 个点 $m$ 条边的 $DAG$,要求最多加 $k$ 条有向边(不能形成环),使得可能的字典序最小的拓扑序列最大。输出最终最小的拓扑序列,以及加边数,加的边($1 \leq n \leq 10^5,0 \leq m \leq 10^5$) 题解: 用
阅读全文
摘要:"题目链接" E. Table Compression time limit per test4 seconds memory limit per test256 megabytes inputstandard input outputstandard output Little Petya is
阅读全文

浙公网安备 33010602011771号