Created
July 12, 2020 14:21
-
-
Save Abhayparashar31/140f5d677d5f545fb3baef2f2dec2174 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
points_sam_house = list(map(int, input().split())) | |
points_apple = list(map(int, input().split())) | |
points_orange = list(map(int, input().split())) | |
s = int(points_sam_house[0]) | |
t = int(points_sam_house[1]) | |
a = int(points_apple[0]) | |
b = int(points_apple[1]) | |
m = int(points_orange[0]) | |
n = int(points_orange[1]) | |
apple_fall = list(map(int, input().split())) | |
orange_fall = list(map(int, input().split())) | |
value_apple = 0 | |
value_orange = 0 | |
for i in range(0,int(len(apple_fall))): | |
value = apple_fall[i]+a | |
if (value in range(s,t+1)): | |
value_apple+=1 | |
for i in range(0,int(len(orange_fall))): | |
value = orange_fall[i]+b | |
if (value in range(s,t+1)): | |
value_orange+=1 | |
print(value_apple) | |
print(value_orange) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment