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_7 purchased 11 shares of E_12 from C_33 for $5/share C_32 purchased 34 shares of E_19 from C_2 for $56/share C_36 purchased 15 shares of E_18 from C_9 for $2/share C_36 purchased 49 shares of E_18 from C_14 for $69/share C_37 purchased 52 shares of E_2 from C_34 for $68/share C_37 purchased 12 shares of E_2 from C_5 for $72/share C_45 purchased 1 shares of E_19 from C_7 for $64/share C_36 purchased 3 shares of E_14 from C_23 for $96/share C_36 purchased 13 shares of E_14 from C_3 for $96/share C_45 purchased 14 shares of E_8 from C_19 for $84/share C_20 purchased 9 shares of E_17 from C_17 for $23/share C_20 purchased 73 shares of E_17 from C_12 for $63/share C_47 purchased 36 shares of E_3 from C_49 for $42/share C_36 purchased 48 shares of E_14 from C_37 for $96/share C_24 purchased 3 shares of E_4 from C_15 for $88/share C_19 purchased 51 shares of E_0 from C_6 for $62/share C_44 purchased 4 shares of E_11 from C_30 for $76/share C_44 purchased 71 shares of E_11 from C_44 for $76/share C_40 purchased 39