Introduction - If you have any usage issues, please Google them yourself
input is the initial capital, as well as a range of prices, and then start the second price, if the price is higher than the previous price, then all the money used to buy this stuff, but if less than the previous price, then sell all (if stock on hand), and finally if the goods to be sold regardless of price
Then output corresponding to each price total assets