
拓扑排序
Lifel
dcoi 蒟蒻一枚 欢迎交流~~~qq:1627767186
展开
-
Uva 10305
John has n tasks to do. Unfortunately, the tasks are not independent and the execution of one task is only possible if other tasks have already been executed. Input The input will consist of s原创 2017-03-27 15:12:17 · 375 阅读 · 0 评论 -
HDU 3342&&UVA10305&&考试day3 T1
三道题基本一样 裸的拓扑排序,判环;也可以赋值负权加dfs-spfa判#include<iostream>#include<cstdio>#include<cmath>#include<cstring>#include<algorithm>#define fo(i,a,b) for(int i=a;i<=b;i++)#define fod(i,a,b) for(int i=a;i>=原创 2017-07-16 21:35:31 · 277 阅读 · 0 评论