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: $6650 Total Amount of Money Transferred: $343597 Number of Completed Trades: 231 Number of Shares Traded: 6441 C_0 bought 294 and sold 677 for a net transfer of $26295 C_1 bought 573 and sold 247 for a net transfer of $-16779 C_2 bought 602 and sold 433 for a net transfer of $-7980 C_3 bought 634 and sold 580 for a net transfer of $-7026 C_4 bought 730 and sold 909 for a net transfer of $17738 C_5 bought 560 and sold 748 for a net transfer of $-3320 C_6 bought 957 and sold 656 for a net transfer of $-21133 C_7 bought 467 and sold 1013 for a net transfer of $26824 C_8 bought 707 and sold 738 for a net transfer of $3739 C_9 bought 917 and sold 440 for a net transfer of $-18358