From 0ab86688244f94ac3ff34fae0c749c2c47d5e7d1 Mon Sep 17 00:00:00 2001 From: yenru0 Date: Thu, 24 Sep 2020 21:48:57 +0900 Subject: [PATCH] 1037&11653 --- zeta_python/completed/1037.py | 3 +++ zeta_python/completed/11653.py | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 zeta_python/completed/1037.py create mode 100644 zeta_python/completed/11653.py diff --git a/zeta_python/completed/1037.py b/zeta_python/completed/1037.py new file mode 100644 index 0000000..1f2b00f --- /dev/null +++ b/zeta_python/completed/1037.py @@ -0,0 +1,3 @@ +input() +I = sorted(map(int, input().split())) +print(I[0] * I[-1]) diff --git a/zeta_python/completed/11653.py b/zeta_python/completed/11653.py new file mode 100644 index 0000000..9834f68 --- /dev/null +++ b/zeta_python/completed/11653.py @@ -0,0 +1,12 @@ +N = int(input()) +p = 2 +while N % p == 0: + N //= p + print(p) +p += 1 +while N != 1: + if N % p == 0: + N //= p + print(p) + else: + p += 2