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