Question: In python with output and code screenshot Mr. Myers and the Exam A mathematics question paper has certain number of questions and each question is




In python with output and code screenshot
Mr. Myers and the Exam A mathematics question paper has certain number of questions and each question is assigned some random maximum marks. Mr. Myers wants to edit the marks assigned to the questions such that: 1. All questions in the paper should have distinct maximum marks. 2. The total marks of all the questions should be as low as possible. Mr. Myers wants to achieve this by making minimal changes in the original format, assigning the question at least as much marks as it originally had. Find the minimum total marks that he can set the paper for. Input Specification: input1: The number of questions in the paper input2: The array representing the original marks assigned to every ques Output Specification: The minimum total marks Mr. Myers can set the paper for. Example 1: input1: 5 Mallepudi Mowrrya chandra hasan | Support
Step by Step Solution
3.43 Rating (156 Votes )
There are 3 Steps involved in it
Algorithm 1 Start 2 using a loop get each element using ... View full answer
Get step-by-step solutions from verified subject matter experts
