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_546 purchased 1 shares of E_0 from C_880 for $14/share C_867 purchased 41 shares of E_0 from C_703 for $70/share C_971 purchased 14 shares of E_0 from C_441 for $30/share C_971 purchased 20 shares of E_0 from C_703 for $70/share C_856 purchased 33 shares of E_0 from C_264 for $53/share C_406 purchased 34 shares of E_0 from C_803 for $8/share C_406 purchased 48 shares of E_0 from C_903 for $14/share C_406 purchased 2 shares of E_0 from C_619 for $35/share C_285 purchased 8 shares of E_0 from C_619 for $35/share C_694 purchased 28 shares of E_0 from C_619 for $35/share C_694 purchased 18 shares of E_0 from C_59 for $35/share C_910 purchased 24 shares of E_0 from C_59 for $35/share C_968 purchased 47 shares of E_0 from C_331 for $47/share C_148 purchased 14 shares of E_0 from C_199 for $26/share C_148 purchased 8 shares of E_0 from C_927 for $26/share C_301 purchased 64 shares of E_0 from C_509 for $4/share C_77 purchased 7 shares of E_0 from C_509 for $4/share C_77 purchased 4 shares of E_0 from C_927 for $13