⌘K
Flycodx

Municipal Election Majority Verification

Municipal Election Majority Verification

MediumArrays28% accepted

During Mumbai municipal elections, election officials have vote counts for each candidate in an array. They need to verify election validity by checking if any single candidate has more than 50% of total votes cast.

Approach

Given an array of vote counts for candidates, determine if any candidate has more than 50% of the total votes.

Input

4 15000 12000 18000 9000

Output

false
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