2024.05.20 TIL 코트카타 57번(모의고사)
class Solution { fun solution(answers: IntArray): IntArray { var points = IntArray(3){0} var patterns1: IntArray = intArrayOf(1,2,3,4,5) var patterns2: IntArray = intArrayOf(2,1,2,3,2,4,2,5) var patterns3: IntArray = intArrayOf(3,3,1,1,2,2,4,4,5,5) for(numQuestion in 1..answers.size) { if(isCorrectAnswer(answers, patterns1, numQuestion)) ..