• + 0 comments

    Python3##

    def countApplesAndOranges(s, t, a, b, apples, oranges): apple_count = 0 orange_count = 0

    for i in apples:
        k = a + i
        if t >= k >= s:
            apple_count += 1
    for i in oranges:
        k = b + i
        if s <= k <= t:
            orange_count += 1
    print(apple_count)
    print(orange_count)