Problem

Source: Romania NMO - 2018

Tags:



Let $f: \mathbb{R} \to \mathbb{R}$ be a function with the intermediate value property. If $f$ is injective on $\mathbb{R} \setminus \mathbb{Q},$ prove that $f$ is continuous on $\mathbb{R}.$ Julieta R. Vergulescu