mark::开源绘图工具graphviz http://blog.csdn.net/iamljj/article/details/5862930 http://codeforces.com/contest/601/problem/D