baekjoon 20260331
This commit is contained in:
parent
a4fb8c2423
commit
5320926dc2
10
code_study/Baekjoon/python/2991.py
Normal file
10
code_study/Baekjoon/python/2991.py
Normal 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)))
|
||||||
Loading…
x
Reference in New Issue
Block a user