The correct option is B 2500
Critical points are 1,2,3,⋯,99,100
Minimum value occurs at x=median{1,2,3,⋯,99,100}=50 or 51
For x=50,
|x−1|+|x−2|+⋯+|x−100|
=49+48+⋯+1+0+1+⋯+49+50
=2(1+2+⋯+49)+50
2500
Note: The minimum value occurs at any value in [50,51]