We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efd272e commit 00cd642Copy full SHA for 00cd642
2 files changed
프로그래머스/1/12948. 핸드폰 번호 가리기/README.md
@@ -4,7 +4,7 @@
4
5
### 성능 요약
6
7
-메모리: 11.4 MB, 시간: 0.00 ms
+메모리: 10.1 MB, 시간: 0.00 ms
8
9
### 구분
10
@@ -16,7 +16,7 @@
16
17
### 제출 일자
18
19
-2026년 07월 14일 12:07:45
+2026년 07월 14일 12:08:18
20
21
### 문제 설명
22
프로그래머스/1/12948. 핸드폰 번호 가리기/핸드폰 번호 가리기.py
@@ -1,5 +1,2 @@
1
def solution(phone_number):
2
- ans = ""
3
- ans += "*" * (len(phone_number) - 4)
- ans += phone_number[-4:]
- return ans
+ return "*" * (len(phone_number) - 4) + phone_number[-4:]
0 commit comments