Skip to content

Conversation

@suyeun84
Copy link
Contributor

@suyeun84 suyeun84 commented Jul 1, 2025

🧷 문제 링크

https://www.acmicpc.net/problem/1034

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

탁자에 있는 램프의 상태와 스위치 누르는 횟수 K가 주어졌을 때, 스위치를 K번 누른 후 켜져있는 행의 최댓값 구하기
(스위치 누르면 열에 있는 램프의 상태가 변함)

🔍 풀이 방법

K값이 짝수개면 0의 개수가 짝수인 곳의 행 전부 1로 만들 수 있음
홀수면 0의 개수가 홀수인 곳의 행 전부 1로 만들 수 있음
HashMap으로 동일하게 등장하는 값 카운팅해줌

⏳ 회고

간단히 생각하면 쉬움

@suyeun84 suyeun84 self-assigned this Jul 1, 2025
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Jul 1, 2025
@ShinHeeEul ShinHeeEul merged commit 4c9d8d4 into main Jul 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants