We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
set @a:= (select min(LAT_N) from station);
set @b:= (select min(LONG_W) from station);
set @c:= (select max(LAT_N) from station);
set @d:= (select max(LONG_W) from station);
select round(abs(@a-@c)+abs(@b-@d),4)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 18
You are viewing a single comment's thread. Return to all comments →
set @a:= (select min(LAT_N) from station); set @b:= (select min(LONG_W) from station); set @c:= (select max(LAT_N) from station); set @d:= (select max(LONG_W) from station); select round(abs(@a-@c)+abs(@b-@d),4)