Hint 1
According to D, the floors they each live on are an equal distance apart. If they lived two floors apart, A's comment doesn't work, and if they lived three floors apart, a nine-storey building would not be tall enough. This means they must live just one floor apart from each other.