Zone-wise Water Consumption Tracker
Zone-wise Water Consumption Tracker
EasyArrays0% accepted
Bangalore Water Authority monitors daily consumption across 10 city zones. Array stores consumption in million liters. Report which zones exceeded safe limit (120 ML) and calculate total city consumption for the day.
Approach
Given array of 10 zone water consumptions in ML, count zones exceeding 120 ML and return total city consumption.
Input
11
87 140 150 217 168 160 76 76 91 143 192
Output
excessive=7, total=1500
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