From 9e0f761ea7700362b0553776c30d2afe665ecd78 Mon Sep 17 00:00:00 2001 From: yenru0 Date: Fri, 7 Aug 2020 19:53:07 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A0=95=EB=A0=AC=EC=A4=91=201436=202751=20109?= =?UTF-8?q?89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zeta_python/completed/10989.py | 8 ++++++++ zeta_python/completed/1436.py | 21 +++++++++++++++++++++ zeta_python/completed/2751.py | 1 + 3 files changed, 30 insertions(+) create mode 100644 zeta_python/completed/10989.py create mode 100644 zeta_python/completed/1436.py create mode 100644 zeta_python/completed/2751.py diff --git a/zeta_python/completed/10989.py b/zeta_python/completed/10989.py new file mode 100644 index 0000000..5e15bb2 --- /dev/null +++ b/zeta_python/completed/10989.py @@ -0,0 +1,8 @@ +import sys +N = int(sys.stdin.readline()) +K = [0]*10000 +for i in range(N): + K[int(sys.stdin.readline())-1] += 1 +for i in range(1,10001): + for k in range(K[i-1]): + print(i) diff --git a/zeta_python/completed/1436.py b/zeta_python/completed/1436.py new file mode 100644 index 0000000..36a503e --- /dev/null +++ b/zeta_python/completed/1436.py @@ -0,0 +1,21 @@ +N = int(input()) +count = 0 +now = 666 + + +def isEnd(n): + k = 100 + while k != 666: + if n < 100: + break + k = n % 1000 + n //= 10 + else: + return True + + +while count != N: + if isEnd(now): + count += 1 + now += 1 +print(now - 1) # Simple is the best diff --git a/zeta_python/completed/2751.py b/zeta_python/completed/2751.py new file mode 100644 index 0000000..db1fadf --- /dev/null +++ b/zeta_python/completed/2751.py @@ -0,0 +1 @@ +for i in sorted(map(int,(j for j in [*open(0)][1:]))):print(i) \ No newline at end of file