10 lines
235 B
Python
10 lines
235 B
Python
A, B, C, D = map(int, input().split())
|
|
res = []
|
|
for i in map(int, input().split()) :
|
|
d = 0
|
|
if 0 < i % (A + B) <= A :
|
|
d += 1
|
|
if 0 < i % (C + D) <= C :
|
|
d += 1
|
|
res.append(d)
|
|
print('\n'.join(map(str, res))) |