Skip to content

Conversation

@Seol-JY
Copy link
Contributor

@Seol-JY Seol-JY commented Nov 24, 2025

🧷 문제 링크

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

🧭 풀이 시간

10분

👀 체감 난이도

✏️ 문제 설명

두 문자열의 가장 긴 공통 부분 문자열(연속) 길이 구하기

🔍 풀이 방법

dp[i][j] 는 s1의 i번째., s2의 j번째 문자에서 끝나는 공통 부분 문자열 최대 길이
그리고 문자 같으면 i-1, j-1 에서 +1 해주면됨

⏳ 회고

DP는 코드가 짧아서 좋음

Implement solution for finding the longest common substring.
@Seol-JY Seol-JY added the success 👍 해설을 보지 않고 풀었을 때 label Nov 24, 2025
@Seol-JY Seol-JY merged commit a86ac7f into main Nov 24, 2025
1 check passed
@Seol-JY Seol-JY added the hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 label Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hint 💡 반례를 참고했거나 힌트를 얻고 풀었을 때 success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants