There are N number of ticket counters outside a local theatre. Each counter has variable number of tickets - Ti. The price of a ticket on a single counter is equal to the number of tickets remaining in the counter.For example, if a counter has 10 tickets, the price of the 1st ticket will be Rs 10, 2nd would be Rs 9 and so on. Given that K tickets are going to be sold for a particular show, find the maximum amount that can be collected.
Question
There are N number of ticket counters outside a local theatre. Each counter has variable number of tickets - Ti. The price of a ticket on a single counter is equal to the number of tickets remaining in the counter.For example, if a counter has 10 tickets, the price of the 1st ticket will be Rs 10, 2nd would be Rs 9 and so on. Given that K tickets are going to be sold for a particular show, find the maximum amount that can be collected.
Solution
Sorry, but you didn't provide any text to respond to. Could you please provide the text?
Similar Questions
Optimal Ticket SellerMax Score: 100There are N number of ticket counters outside a local theatre. Each counter has variable number of tickets - Ti. The price of a ticket on a single counter is equal to the number of tickets remaining in the counter.For example, if a counter has 10 tickets, the price of the 1st ticket will be Rs 10, 2nd would be Rs 9 and so on. Given that K tickets are going to be sold for a particular show, find the maximum amount that can be collected.Input FormatFirst line of input contains T - number of test cases. Its followed by 2T lines. First line of each test case contains N,K - the number of counters and the number of tickets to be sold. Next line contains N integers - the amount of tickets at each counter respectively.Output FormatFor each test case, print the maximum amount collected, separated by new line.Constraints30 points1 <= T <= 1001 <= N <= 1021 <= Ti <= 1030 <= K <= Sum(Ti)70 points1 <= T <= 1001 <= N <= 1041 <= Ti <= 1050 <= K <= Sum(Ti)ExampleInput22 47 54 1012 10 6 8Output2392ExplanationExample 1:Buy 3 tickets from 1st counter: 7+6+5 and 1 ticket from the 2nd counter: 5, Amount = 7+6+5+5=23.
Some tickets of a show are sold at Rs. 10 per ticket and the other tickets at Rs. 8 per ticket. In all, 105 tickets were sold. If the amount collected on a day was Rs. 922, find the number of tickets sold at Rs. 10.Choices:- 43 41 42 34
A theatre charges $25 for adults and $15 for children. All 200 seats in the theatre were sold on opening night and the ticket sales totalled $4350.Calculate the number of adult tickets sold.
Refer to Table 5.2. The table above lists the highest prices five consumers are willing to pay for a theatre ticket. If the price of one of the tickets is $10, ___________.Correct! everyone will buy a ticket except for Esther only Anya and Basil will buy tickets Celeste’s consumer surplus is $25 the total consumer surplus from the purchase of tickets will be $61 Question 5Tips0 / 1 ptsFigure 5.3 Figure 5.3 shows the market for tiger shrimp. The market is initially in equilibrium at a price of $15 and a quantity of 80. Now suppose producers decide to cut output to 40 in order to raise the price to $18.Refer to Figure 5.3. The value of the dead-weight loss at a price of $18 is ________.Correct answer $100 You Answered $180 $660 $1 040 Quiz score: 4 out of 5PreviousNextSubmission details:Time: 19 minutesCurrent score: 4 out of 5Kept score: 4 out of 5
Question 10Not answeredMarked out of 2.50Flag questionTipsMCQConsumerWillingness to PayAnya$24Basil$20Celeste$15Dralon$12Esther$7The table above lists the highest prices five consumers are willing to pay for a theatre ticket. If the price of one ticket rises from $10 to $19, __________.Question 10Answera.only three tickets will be soldb.no one will buy a ticketc.consumer surplus decreases from $31 to $6d.consumer surplus increases from $44 to $71
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.