A diversity index such as Simpson's Diversity Index may be helpful:
$$ S = \sum_{k=1}^{K} \left(\frac{n_k}{N}\right)^2 $$
where there are $N$ units and $K$ types in your population with $n_k$ units of each type ($k=1,2,\dots,K$).
It is essentially the probability that two randomly selected samples (with replacement) will be of the same type.
From your examples, the values for Simpson's Diversity Index will be as follows:
City A: $S_A = (\frac{20}{100})^2+(\frac{20}{100})^2+(\frac{20}{100})^2+(\frac{20}{100})^2+(\frac{20}{100})^2 = 1/5 = 0.200.$
City B: $S_B = (\frac{99}{100})^2+\sum_{i=1}^{100}(\frac{0.01}{100})^2 \approx 0.980.$
City C: $S_C = (\frac{40}{100})^2+\sum_{i=1}^{10}(\frac{6}{100})^2 = 0.196.$
You may have noticed that the more diverse the population, the lower Simpson's index is. Therefore, to create a positive relationship, sometimes it is presented as $1-S$ or $\frac{1}{S}$.