Editorial
The maximum possible Korean score is . For each of the other exams, the maximum score is .
Therefore, the maximum total score is
For each test case, print . The time complexity is .
Solution written by GPT5.6
Preparing the statement, recent submissions, and submit form.
The maximum possible Korean score is . For each of the other exams, the maximum score is .
Therefore, the maximum total score is
For each test case, print . The time complexity is .
Solution written by GPT5.6