From 5320926dc20851aa6d9ff670294ba75794d65a64 Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Tue, 31 Mar 2026 19:27:24 +0900 Subject: [PATCH] baekjoon 20260331 --- code_study/Baekjoon/python/2991.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 code_study/Baekjoon/python/2991.py diff --git a/code_study/Baekjoon/python/2991.py b/code_study/Baekjoon/python/2991.py new file mode 100644 index 0000000..8705d80 --- /dev/null +++ b/code_study/Baekjoon/python/2991.py @@ -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))) \ No newline at end of file