DOJ logoDOJ
Problems
Recently added problemsSaved problemsWorkbooks
CategoriesDLCContestsGroupsTeamsBoard
Ranking
Solved Problem RankingStreak rankingDOJ Power ranking
Status
Call for TasksLoginRegister
DOJ logoDOJ

Community online judge with OI-style subtask scoring, Elo ratings, and Discord-backed certification.

Problems
ProblemsCategories
Community
ContestsRankingBoardNoticesHost an external contestGuide
Account
LoginRegisterJudge Status
Policy
Terms of ServiceDLC RulesPrivacyAPI documentationLanguage runtimesContest rank rewardsRating and performance
© 2026 DOJ
All rights reserved
Revision historyCurrent post
Revision 1Problem-GeneralMarkdown

이거 답이 여러개 맞나요?

kjwn817Nov 2, 2026, 5:45 PM
24

별 제한 없이 i+P[i]가 2의 거듭제곱인 수열 P를 구하는 거면 답 자첵가 여러개 나올 수 있지 않나요? 진짜로 여러 개의 답 모두 정답 처리되는 건지 아니면 다른 제한 조건이 안 쓰인 건지 모르겠습니다

예) 입력:1, 출력은 1도 되고 3도 되고 7도 되고 15도 되고 31도 되고...(1+1=2,1+3=4,1+7=8,1+15=16,1+31=32)