The most affordable and the most expensive seaside towns have been named in the rundown.