Skip to content

Conversation

@oncsr
Copy link
Contributor

@oncsr oncsr commented Aug 17, 2025

🧷 문제 링크

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

🧭 풀이 시간

20분

👀 체감 난이도

✏️ 문제 설명

N개의 땅이 일렬로 있다.
구간에 k를 더하는 연산을 M번 한 뒤에 땅의 높이를 구해보자.

🔍 풀이 방법

  • imos

구간 [a,b]에 k를 더하는 연산은 새로운 배열 c를 정의해서 c[a] += k, c[b+1] -= k를 해주면 된다.

⏳ 회고

ez

@oncsr oncsr self-assigned this Aug 17, 2025
@oncsr oncsr added the success 👍 해설을 보지 않고 풀었을 때 label Aug 17, 2025
@ShinHeeEul ShinHeeEul merged commit ca94213 into main Aug 17, 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