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
---End of Day--- Commission Earnings: $15712 Total Amount of Money Transferred: $813136 Number of Completed Trades: 568 Number of Shares Traded: 15305 C_0 bought 761 and sold 564 for a net transfer of $-7696 C_1 bought 1045 and sold 609 for a net transfer of $-19408 C_10 bought 454 and sold 430 for a net transfer of $-6449 C_11 bought 741 and sold 1417 for a net transfer of $35982 C_12 bought 835 and sold 637 for a net transfer of $-2570 C_13 bought 734 and sold 813 for a net transfer of $5706 C_14 bought 968 and sold 663 for a net transfer of $-11156 C_15 bought 886 and sold 846 for a net transfer of $5503 C_16 bought 739 and sold 823 for a net transfer of $11030 C_17 bought 1008 and sold 449 for a net transfer of $-24820 C_18 bought 845 and sold 1170 for a net transfer of $13261 C_19 bought 676 and sold 337 for a net transfer of $-25057 C_2 bought 761 and sold 1220 for a net transfer of $25168 C_3 bought 655 and sold 847 for a net transfer of $9722 C_4 bought 567 and sold 1124 for a net transfer of $9577 C_