hdu1233 prim and kruskal