⌘K
Flycodx

MUN Debate Score Threshold Qualifier

MUN Debate Score Threshold Qualifier

MediumBinary Search0% accepted

At Delhi Model UN Summit, speakers are ranked by debate scores. Top 50% advance to finals. Meera wants to know the minimum score needed for advancement from sorted participant scores.

Approach

Given N sorted debate scores and percentile P (top P% advance), find minimum qualification score using binary search.

Input

scores=[65,72,78,85,90,95], percentile=50

Output

85
solution.py
Loading editor...
Test 1
Test 2
Test 3

Press Run to test your custom input, or Submit to judge against all test cases.

Sign in to continue

Create a free account to run code, submit solutions and track progress.

  • Free forever — no credit card
  • 10+ languages with live execution
  • Points, streaks & leaderboards
Auto Save OnLn 1, Col 1Spaces: 4UTF-8LFPython 3