Distance Query

Problem Name:
Distance Query
Site:Spoj
Links:
Tags:
Problem setters: