Skip to content

Commit e5d6b7f

Browse files
committed
[level 3] Title: 기지국 설치, Time: 1.40 ms, Memory: 9.52 MB -BaekjoonHub
1 parent f7adbfd commit e5d6b7f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

프로그래머스/3/12979. 기지국 설치/README.md

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

55
### 성능 요약
66

7-
메모리: 9.61 MB, 시간: 1.39 ms
7+
메모리: 9.52 MB, 시간: 1.40 ms
88

99
### 구분
1010

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

1717
### 제출 일자
1818

19-
2025년 05월 19일 20:46:01
19+
2025년 05월 19일 20:47:21
2020

2121
### 문제 설명
2222

프로그래머스/3/12979. 기지국 설치/기지국 설치.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ def solution(n:int, stations:list, w:int) -> int:
1313

1414
for i in stations:
1515
cnt += (i + w - idx - 1)//width
16-
idx = i + w
17-
diff = n - idx
16+
idx = i+w
1817

1918
return cnt

0 commit comments

Comments
 (0)