And the method you are using to prove continuity is: since {0}, {1} are open sets in {0,1} with discrete topology, we want to find open neighborhood(ball) B and C of x such that f(B)=0 if d(x,m)<lambda_{0}*d(m,C) and f(C)=1 if d(x,m)>lambda_{0}*d(m,C). Am I right?