#!/bin/python import sys def maximumPeople(p, x, y, r): # Return the maximum number of people that will be in a sunny town after removing exactly one cloud. l=[] #list to compute population covered by each town xl=[] for b in range(len(x)): xl.append(0) for i in range(m): low,high=0,0 low=y[i]-r[i] high=y[i]+r[i] #print "low,high=%d,%d"%(low,high) cloud_range=[] for j in range(low,high+1): cloud_range.append(j) pop=0 #to add the population i.e sunny #print "cloud_range=",cloud_range for a in cloud_range: for k in range(len(x)): if x[k]==a: xl[k]+=1 #print "x[k]=",x[k] #print "k=",k pop+=p[k] l.append(pop) maxi=0 for o in l: if maxi