⌘K
Flycodx

Air Quality Sensor Readings

Air Quality Sensor Readings

EasyArrays0% accepted

Arjun monitors pollution sensors across Delhi for Smart City Dashboard. He needs to find which sensor reading is closest to the average to identify the most representative air quality level.

Approach

Given an array of N pollution readings from Delhi sensors, find the index of the reading closest to the average pollution level.

Input

19 188 109 119 69 57 161 98 5 74 128 175 158 135 133 60 61 100 35 188

Output

1
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