• + 2 comments

    I don't even use apple and orange lists (explicitly)

    print(sum([s<=int(apple_temp)+a<=t for apple_temp in input().strip().split(' ')]))
    

    )