// Farmer John has built a new long barn, with N (2 ≤ N ≤ 100,000) stalls. // The stalls are located along a straight line at positions x1 ... xN (0 ≤ xi ≤ 1,000,000,000). // His C (2 ≤ C ≤ N) cows ...
4. For each processed vertex, reduce in-degree of its neighbors and add to queue if in-degree becomes 0 5. Repeat steps 3 and 4 until queue is empty ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する