[20251028] BOJ / G3 / IQ Test / 김수연 #1249
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://www.acmicpc.net/problem/1111
🧭 풀이 시간
50분
👀 체감 난이도
✏️ 문제 설명
숫자 N개가 주어질 때, 규칙은 앞 수*a+b이다.
a, b가 가능한 경우가 여러 개일 경우 A 출력, 다음 수 구할 수 없으면 B 출력, 하나의 경우만 가능하면 다음 수 출력
🔍 풀이 방법
숫자 N이 1, 2, 3이상일 경우로 나눠서 답 구함
a는 첫수랑 두번째 수 나눠서 나온 값, b는 빼서 구함 ㅋ ㅋ
⏳ 회고
그냥 구현인데 와따마 개어려움 ㅋㅋ