**Problem Statement:**

One hundred friends, including Alice and Bob, live in several cities. Alice has determined the distance from her city to the city of each of the other 99 friends and totaled these 99 numbers. Alice’s total is \(1000\) km. Bob similarly totaled his distances to everyone else. What is the largest total that Bob could have obtained? 

*(Consider the cities as points on the plane; if two people live in the same city, the distance between their cities is considered zero).*

Let's think step by step and output the final answer within \boxed{}.
user