If $f(x)=\mathrm{Max}\{\sin x,\cos x\}$ and $g(x)=\mathrm{Min}\{\sin x,\cos x\}$, then $\int_0^\pi f(x)dx+\int_0^\pi g(x)dx=$
- (1)
$2\sqrt{2}+2$
- (2)
$2\sqrt{2}-2$
- (3)
$2$
- (4)
$2\sqrt{2}$
Show answer
Option (3) is correct.
The council's preliminary key