UVa 11060 Beverages

Đề:  11060 Beverages

Abridge: In ra duy nhất 1 topological order với khác biệt: In the case there is no relation between 2 bevarages, Dilbert should start drinking the one that appers first in the input. Khi không có quan hệ giữa 2 loại thức uống thì uống theo thứ tự xuất hiện trong input.

Solution: Dùng Kahn 's Algorithms + duyệt theo thứ tự input
Tham khảo     http://www.algorithmist.com/index.php/UVa_11060

Code: 



Comments

Popular posts from this blog

UVa 11953 Battleships

UVa 10305 Ordering Tasks