[20250206] SWEA / D3 / 암호문3 / 신희을 #49
Merged
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.
🧷 문제 링크
https://swexpertacademy.com/main/code/problem/problemSolverCodeDetail.do
🧭 풀이 시간
10 분
👀 체감 난이도
✏️ 문제 설명
원본 암호문에 다음과 같은 연산을 더한다.
위 규칙에 맞게 명령어 연산을 수행하고 결과 배열의 0번부터 10번을 출력하라.
🔍 풀이 방법
ArrayList의 add, remove, addAll을 활용하여 연산자에 맞게 계산하고, 마지막에 10개 출력
⏳ 회고
입력량이 많고, 반복문이 꽤 있어서 비효율적으로 짰다 싶었는데, 시간복잡도 괜찮게 나와서 그냥 넘어가기로 했다.