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 account linking.

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
Editorial

49

Back to problem

Editorial

The maximum possible Korean score is 494949. For each of the other N−1N-1N−1 exams, the maximum score is 100100100.

Therefore, the maximum total score is

49+100(N−1)=100N−51.49+100(N-1)=100N-51.49+100(N−1)=100N−51.

For each test case, print 100N−51100N-51100N−51. The time complexity is O(T)O(T)O(T).

Solution written by GPT5.6