1 solutions

  • 0
    @ 2024-11-17 1:58:03
    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)
    
    • 1

    Information

    ID
    6758
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    4
    Tags
    (None)
    # Submissions
    89
    Accepted
    44
    Uploaded By