From 15343c10d9ae4e2b78aefce842603bf1ed6843aa Mon Sep 17 00:00:00 2001 From: wwan13 Date: Mon, 6 May 2024 12:59:01 +0900 Subject: [PATCH] =?UTF-8?q?solve=20:=202751=20=EC=88=98=20=EC=A0=95?= =?UTF-8?q?=EB=A0=AC=ED=95=98=EA=B8=B0=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/boj_2751.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 python/boj_2751.py diff --git a/python/boj_2751.py b/python/boj_2751.py new file mode 100644 index 0000000..527406b --- /dev/null +++ b/python/boj_2751.py @@ -0,0 +1,21 @@ +import sys + +input = sys.stdin.readline + + +def solution(n, data): + return sorted(data) + + +def display_result(answer): + [print(e) for e in answer] + + +def main(): + n = int(input()) + data = [int(input()) for _ in range(n)] + answer = solution(n, data) + display_result(answer) + + +main() \ No newline at end of file