I know the result must be $1,$ I also know that:
$ n\leq x/2 < n+1 \Leftrightarrow$ $ 2n \leq x < 2n+2$
For $n=0$ we have that
$ 0 \leq x <2 $
$ 0\leq x/2 <1 \Rightarrow$ $ [x/2] = 0$
Similarly, for $n=1,$ $ [x/2] = 1$
How can I use these facts to evaluate the integral?
I think if $f(x)=\left\lfloor\dfrac{x}{2}\right\rfloor\!,$ then it's easier to work, on your domain, with $f(x)=U(x-2),$ the unit step function. Then $f'(x)=U'(x-2)=\delta(x-2)$ on your domain. You could use the identity $\int_a^b f(x)\,\delta(x-c)\,dx=f(c)$ if $a<c<b$.