From ab1021d1d1edf8b38339e862acf644b6986aa0b8 Mon Sep 17 00:00:00 2001 From: yenru0 Date: Fri, 17 Jan 2025 04:15:55 +0900 Subject: [PATCH] complete 30802.py --- zeta_python/completed/30802.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 zeta_python/completed/30802.py diff --git a/zeta_python/completed/30802.py b/zeta_python/completed/30802.py new file mode 100644 index 0000000..5ca13af --- /dev/null +++ b/zeta_python/completed/30802.py @@ -0,0 +1,9 @@ +import math + +if __name__ == "__main__": + N = int(input()) + S = list(map(int, input().split())) + T, P = map(int, input().split()) + + print(sum(math.ceil(s / T) for s in S)) + print(N // P, N % P)