Marks :10
: 10 | : 0
Given an array, you have to make some delete operations on it.
The first line contains $$$4$$$ integers $$$n,p,q,r(1 \leq n \leq 100)$$$ and $$$0 \leq p,q,r \leq 30$$$.
The next line contains $$$n$$$ integers $$$a_1,a_2,...,a_n(-10^5 \leq a_i \leq 10^5)$$$ - the original array.
Output a single integer - the maximum possible sum of remaining elements after performing the given operations.
9 1 1 1 3 1 0 5 1 6 5 -1 -100
16
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.