uva 10305 - Ordering Tasks

上傳作業;http://203.68.236.9/problem/b0046

出處 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1246

解題策略

使用陣列紀錄每個點的in-degree,若某點的in-degree為0,該點可以輸出,並將該點所連出去所有點的in-degree減1,再找出下一個in-degree為0的點輸出。