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_0 purchased 22 shares of E_6 from C_0 for $37/share C_1 purchased 34 shares of E_1 from C_0 for $53/share C_0 purchased 51 shares of E_2 from C_1 for $26/share C_0 purchased 80 shares of E_8 from C_1 for $95/share C_1 purchased 20 shares of E_8 from C_1 for $71/share C_1 purchased 47 shares of E_4 from C_0 for $56/share C_1 purchased 30 shares of E_5 from C_1 for $80/share C_1 purchased 7 shares of E_5 from C_1 for $27/share C_1 purchased 25 shares of E_8 from C_0 for $71/share C_1 purchased 50 shares of E_1 from C_0 for $78/share C_1 purchased 32 shares of E_1 from C_1 for $78/share C_0 purchased 65 shares of E_1 from C_1 for $69/share C_1 purchased 35 shares of E_8 from C_1 for $71/share C_0 purchased 49 shares of E_8 from C_1 for $67/share C_0 purchased 51 shares of E_7 from C_1 for $54/share C_1 purchased 23 shares of E_2 from C_1 for $25/share C_0 purchased 5 shares of E_1 from C_0 for $69/share C_0 purchased 68 shares of E_3 from C_1 for $56/share C_0 purchased 66 shares of E_9 from C_1 for $76/share