Skip to content

[BOJ 5430] AC - #119

Merged
sh0723 merged 1 commit into
mainfrom
solve-boj5430
Jul 2, 2026
Merged

[BOJ 5430] AC#119
sh0723 merged 1 commit into
mainfrom
solve-boj5430

Conversation

@sh0723

@sh0723 sh0723 commented Jul 2, 2026

Copy link
Copy Markdown
Owner

풀이 요약

  • 입력 배열을 deque로 파싱해 앞/뒤 삭제가 가능하도록 구성했습니다.
  • R 연산은 실제 배열을 매번 뒤집지 않고 reverse_flag만 토글해 방향 상태를 관리했습니다.
  • D 연산은 현재 방향에 따라 앞 또는 뒤에서 원소를 제거하고, 비어 있으면 error를 출력하도록 처리했습니다.

Link

https://velog.io/@sh0723/PS-%EB%B0%B1%EC%A4%80-5430%EB%B2%88-AC

문제

  • BOJ 5430
  • 제목: AC

Closes #118

@sh0723
sh0723 merged commit 1abe427 into main Jul 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BOJ 5430] AC

1 participant