-5
Jack is a little businessman. He found out a way to earn money by buying electricity on days when it's cheap and selling it when it's much more expensive. He stores the electricity in a battery he made by himself. You are given N, the number of days Jack knows the cost of electricity for, and X, ...