Dexter and Marks
CodeChefOpen on judge ↗
Dexter is the smartest kid in his class. He gave N tests and scored S[i] in each. If there are Y papers with marks greater than or equal to the median Dexter will be happy else he'll be sad. Determine the minimum marks he would additionally need to be happy. Input First line of input contains T - the number of test cases. First line of each test case consists of N , denoting the number of test
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start