Skip to content

Commit 00cd642

Browse files
committed
[level 1] Title: 핸드폰 번호 가리기, Time: 0.00 ms, Memory: 10.1 MB -BaekjoonHub
1 parent efd272e commit 00cd642

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

프로그래머스/1/12948. 핸드폰 번호 가리기/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### 성능 요약
66

7-
메모리: 11.4 MB, 시간: 0.00 ms
7+
메모리: 10.1 MB, 시간: 0.00 ms
88

99
### 구분
1010

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

1717
### 제출 일자
1818

19-
2026년 07월 14일 12:07:45
19+
2026년 07월 14일 12:08:18
2020

2121
### 문제 설명
2222

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
def solution(phone_number):
2-
ans = ""
3-
ans += "*" * (len(phone_number) - 4)
4-
ans += phone_number[-4:]
5-
return ans
2+
return "*" * (len(phone_number) - 4) + phone_number[-4:]

0 commit comments

Comments
 (0)