https://www.spoj.pl/problems/PT07Y/
      2009-05-17 12:22:31   Is it a tree accepted  0.10   2.9M   C++
      对于一个无向图而言,若其为一棵树,条件是无环且连通,可以这样判定:有n个结点的树必有n-1条边,且连通。