Skip to content

Commit 530aeb5

Browse files
committed
[level 2] Title: 최댓값과 최솟값, Time: 0.04 ms, Memory: 11.3 MB -BaekjoonHub
1 parent 76b8136 commit 530aeb5

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

프로그래머스/2/12939. 최댓값과 최솟값/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# [level 2] 최댓값과 최솟값 - 12939
22

3-
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/12939?language=java)
3+
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/12939?language=python3)
44

55
### 성능 요약
66

7-
메모리: 73.5 MB, 시간: 5.48 ms
7+
메모리: 11.3 MB, 시간: 0.04 ms
88

99
### 구분
1010

@@ -16,7 +16,7 @@
1616

1717
### 제출 일자
1818

19-
2026년 06월 27일 16:06:33
19+
2026년 07월 25일 15:28:52
2020

2121
### 문제 설명
2222

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
def solution(s):
2-
s = s.split()
3-
for i in range(len(s)):
4-
s[i] = int(s[i])
5-
A = ''
6-
A += str(min(s)) + " "
7-
A += str(max(s))
8-
return A
2+
s = list(map(int, s.split()))
3+
return str(min(s)) + " " + str(max(s))
4+

0 commit comments

Comments
 (0)