Open
Conversation
yujin0124
reviewed
Jun 10, 2025
| if 0 <= nx < R and 0 <= ny < C: | ||
| new_board[nx][ny] = '.' | ||
|
|
||
| return new_board |
Collaborator
There was a problem hiding this comment.
새로운 배열에 결과를 저장하는건 배열을 전역변수로 선언하는 것을 피하기위해서인가요?
| asis = list(input().rstrip()) | ||
| tobe = list(input().rstrip()) | ||
|
|
||
| def button(x, bulbs): |
Collaborator
There was a problem hiding this comment.
이 양 옆 버튼까지 처리하는 부분이 가독성면에서 반복문을 매번 돌리기도 신경쓰이고 같은 행동을 3번 하는 것도 신경쓰였는데 저도 다현님처럼 짧더라도 함수로 뺄 걸 그랬네요
| @@ -0,0 +1,40 @@ | |||
| R, C, N = map(int, input().split()) | |||
Collaborator
There was a problem hiding this comment.
이 문제 N=1 / N이 짝수 / N을 4로 나눴을 때 나머지가 3 / N을 4로 나눴을 때 나머지가 1(1제외) 의 결과가 매번 똑같이 반복되어서 그 방식으로도 풀어보시면 시간복잡도 측면에서 많이 개선됩니다!!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
16918 봄버맨 - solved
알고리즘
접근방식
시공간 복잡도
2138 전구와 스위치 - solved
알고리즘
접근방식
시공간 복잡도