Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.
Please double check your code to solve this problem and try again.
Your Answer
The graph is a DAG No MST exists!
JOJ Answer
C_438 purchased 53 shares of E_10 from C_487 for $24/share C_404 purchased 42 shares of E_61 from C_104 for $1/share C_62 purchased 31 shares of E_44 from C_112 for $34/share C_62 purchased 11 shares of E_44 from C_0 for $82/share C_873 purchased 35 shares of E_26 from C_852 for $39/share C_846 purchased 40 shares of E_75 from C_907 for $42/share C_846 purchased 4 shares of E_75 from C_75 for $44/share C_849 purchased 29 shares of E_75 from C_75 for $34/share C_807 purchased 24 shares of E_50 from C_121 for $55/share C_53 purchased 54 shares of E_76 from C_457 for $15/share C_717 purchased 14 shares of E_81 from C_921 for $4/share C_894 purchased 26 shares of E_31 from C_396 for $22/share C_884 purchased 65 shares of E_74 from C_382 for $7/share C_548 purchased 5 shares of E_17 from C_802 for $92/share C_548 purchased 24 shares of E_17 from C_574 for $92/share C_132 purchased 12 shares of E_10 from C_872 for $43/share C_755 purchased 67 shares of E_15 from C_902 for $7/share C_845 purchased 88 shares of E_76