baekjoon 20260331

This commit is contained in:
songyc macbook 2026-03-31 19:27:24 +09:00
parent a4fb8c2423
commit 5320926dc2

View File

@ -0,0 +1,10 @@
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)))