Let $f:\mathbb{R}\to\mathbb{R}$, $g:\mathbb{R}\to\mathbb{R}$ be differentiable functions such that $(f\circ g)(x)=x$. If $f(x)=2x+\cos x+\sin^2 x$, then the value of $\sum_{n=1}^{99} g(1+(2n-1)\pi)$ is
- A
$1250\pi$
- B
$(99)^2\dfrac{\pi}{2}$
- C
$(99)^2\pi$
- D
$2500\pi$