Computer Science, asked by kaulinsh3665, 9 months ago

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 kritikasri
0

Answer:

2×30×30=1800÷100=18

1×40×20=800÷100=8

18+8=26

Similar questions