You are viewing a single comment's thread. Return to all comments →
Here is Python 3 solution from my HackerrankPractice repository:
s, t, a, b, m, n = map(int, input().split() + input().split() + input().split()) apple = list(map(int, input().split())) orange = list(map(int, input().split())) print(sum(s <= a + i <= t for i in apple)) print(sum(s <= b + i <= t for i in orange))
Feel free to ask if you have any questions :)
Apple and Orange
You are viewing a single comment's thread. Return to all comments →
Here is Python 3 solution from my HackerrankPractice repository:
Feel free to ask if you have any questions :)