⌘K
Flycodx

Power Substation Capacity Overload Detection

Power Substation Capacity Overload Detection

MediumArrays100% accepted

Delhi Power Distribution Company monitors 3 substations with 3-hour load readings. Safe capacity is 200 units per substation. They need to identify which substations exceeded capacity and calculate the overload.

Approach

Given 3-hour load readings for 3 substations as 2D array, identify excess load above capacity 200 for each substation.

Input

[[50, 55, 60], [40, 42, 45], [45, 48, 52]]

Output

[0,0,0]
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