select yc, xc
from
(
select y, xc from cells join (select distinct x as xc from cells) xx
where x >= xc and x < xc+5
group by y, xc
having sum(status) = 0 and count(*) = 5
) xgr join (select distinct y as yc from cells) yy
where y >= yc and y < yc+5
group by yc, xc
having count(*) = 5
select yc, xc
from
(
select y, xc from cells join (select distinct x as xc from cells) xx
where x >= xc and x < xc+5
group by y, xc
having sum(status) = 0 and count(*) = 5
) xgr join (select distinct y as yc from cells) yy
where y >= yc and y < yc+5
group by yc, xc
having count(*) = 5
order by ((yc-200)*(yc-200)+(xc-100)*(xc-100))
limit 1
Если Вы уже зарегистрированы на Портале - войдите в систему, если Вы еще не регистрировались - пройдите простую процедуру регистрации.