摘要: //并不理解为什么需要反向建图,由大到小倒序确定排名。感觉正向由小到大和反向由大到小应该是一样的。解:拓排+贪心,反向建边,先找排名靠后的(now,不知道为什么) 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 ... 阅读全文
posted @ 2015-05-30 21:06 鼠宝宝 阅读(149) 评论(0) 推荐(0) 编辑