Here, we can select only two stocks of any stocks that we choose to buy. We choose to buy stocks which are priced at 30 and 40 respectively. Before we exhaust our capital maximum profit that can be earned
Profit=2*((30*30)/100) +1*((40*20)/100)=26
code for this solution where input is:
4 2 100
20 10 30 40
5 10 30 20
output:
26
Answers
Answered by
0
Answer:
2×30×30=1800÷100=18
1×40×20=800÷100=8
18+8=26
Similar questions
Social Sciences,
4 months ago
English,
4 months ago
English,
4 months ago
English,
9 months ago
Physics,
9 months ago
Math,
1 year ago
Environmental Sciences,
1 year ago