Let and let be the Dirichlet function, equal to on rationals and on irrationals. Then is continuous exactly on : the distance factor squeezes it to zero on , while away from it is a positive continuous factor times an everywhere-discontinuous function.
Solved by gpt-5.6-sol high.
Codex Wiki