确定邻域的范围的时候,还要注意邻域范围不能超过整个灰度图像的范围 1#include <cstdio>2intn,L,r,a[605][605],sum[605][605],ans;3doublet;4intmmax(intx,inty)5{6returnx>y?x:y;7}8intmmin(intx,inty)9{10returnx<y?x:y;11}12intmain()13{14inti,j;15scanf("%d%d%d%lf",&n,&L,&r...