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: $167500 Total Amount of Money Transferred: $8687578 Number of Completed Trades: 6541 Number of Shares Traded: 171671 C_0 bought 1449 and sold 1140 for a net transfer of $-12207 C_1 bought 1186 and sold 2150 for a net transfer of $40664 C_10 bought 2317 and sold 1453 for a net transfer of $-44229 C_11 bought 1823 and sold 1666 for a net transfer of $1337 C_12 bought 2487 and sold 2045 for a net transfer of $-14297 C_13 bought 1579 and sold 1804 for a net transfer of $7476 C_14 bought 1078 and sold 1436 for a net transfer of $19368 C_15 bought 1807 and sold 1685 for a net transfer of $-7261 C_16 bought 1243 and sold 1802 for a net transfer of $38356 C_17 bought 1862 and sold 1729 for a net transfer of $7561 C_18 bought 1492 and sold 1661 for a net transfer of $10736 C_19 bought 2012 and sold 1596 for a net transfer of $-23926 C_2 bought 2275 and sold 1571 for a net transfer of $-33009 C_20 bought 2066 and sold 1440 for a net transfer of $-31176 C_21 bought 1319 and sold 141