Power Grid Load Distribution Check
Power Grid Load Distribution Check
EasyArrays100% accepted
Delhi's power distribution company balances load across 5 substations. Each substation's current load is stored in array (in MW). For grid stability, average load should be calculated and any station exceeding average + 20% should trigger alert.
Approach
Given array of substation loads in MW, calculate average and count substations exceeding (average × 1.2).
Input
13
435 324 207 401 175 108 468 116 168 278 370 277 319
Output
4
More Arrays problems
Browse all coding problems →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