Marks :30
: 6 | : 1
Professor X has to solve the perennial problem of the budget for school picnic Each student is identified by a unique Roll Number $$$(r[i])$$$ and a Unique Identification Number$$$(a[i])$$$. The total amount of the trip will be calculated as the sum of the cost of each of the rounds as long as there are at least two students remaining in the class. In a single round:
In the last round, both students will go to the bus.
The professor needs your help. You need to find the minimum possible amount of the trip, considering all the possible ways in which the student can be selected and organized. Help him out.
As this amount can be very large find its mod with 10^9+7.
The minimum possible total that can be attained if students are selected optimally.
3 23 45 56 11 14 3
204
3 4 1 2 8 3 1
5
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.