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_45 purchased 40 shares of E_5 from C_29 for $24/share C_18 purchased 76 shares of E_18 from C_66 for $48/share C_3 purchased 5 shares of E_8 from C_3 for $36/share C_1 purchased 28 shares of E_5 from C_32 for $96/share C_1 purchased 2 shares of E_5 from C_77 for $96/share C_45 purchased 6 shares of E_5 from C_77 for $95/share C_80 purchased 33 shares of E_14 from C_45 for $11/share C_51 purchased 52 shares of E_1 from C_16 for $1/share C_11 purchased 83 shares of E_17 from C_56 for $11/share C_11 purchased 9 shares of E_17 from C_12 for $26/share C_91 purchased 47 shares of E_8 from C_41 for $31/share C_15 purchased 10 shares of E_14 from C_3 for $90/share C_80 purchased 16 shares of E_14 from C_3 for $34/share C_40 purchased 19 shares of E_12 from C_87 for $35/share C_18 purchased 37 shares of E_11 from C_25 for $7/share C_85 purchased 6 shares of E_10 from C_27 for $14/share C_22 purchased 48 shares of E_10 from C_27 for $14/share C_65 purchased 56 shares of E_15 from C_76 for $51/share C_63 purchased 47