# A bijective and continuous function is a homeomorphism.

Let $X$ be a countably compact space and $Y$ a second-countable, Hausdorff space. Show that if $f:X\rightarrow Y$ is a bijective continuous function then it is a homeomorphism.

Is easy to see that $Y$ is a countably compact space and then a compact metric space (by the urysohn's metrization theorem), and also we can conclude that $X$ is a hausdorff, normal space. but I can't do much more, can anyone help me?

Take a closed set $A\subseteq X$. Then $A$ is countably compact, and so is $B=f(A)$. We'll show that $f(A)$ is closed. Let $y\notin f(A)$. For each $b\in B$ there are disjoint basic open sets $U_b$ around $y$ and $V_b$ around $b$. Now use that $B$ is countably compact ...