x,y =map(int,input().split()) s =0 for i in range(x,y+1): for d in str(i): k = int(d) if(k==2): s+=1 print(s)
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account