• + 0 comments
    def countApplesAndOranges(s, t, a, b, apples, oranges):
        print(len([fruit for fruit in apples if fruit + a in range(s, t + 1)]))
        print(len([fruit for fruit in oranges if fruit + b in range(s, t + 1)]))