TIL 24-03-26
오늘의 코드카타 using System; using System.Collections.Generic; using System.Linq; public class Solution { public int[] solution(int[] answers) { int[] answer1 = { 1, 2, 3, 4, 5 }; int[] answer2 = { 2, 1, 2, 3, 2, 4, 2, 5 }; int[] answer3 = { 3, 3, 1, 1, 2, 2, 4, 4, 5, 5 }; int[] scores = new int[3]; for (int i = 0; i < answers.Length; i++) { if (answers[i] == answer1[i % answer1.Length]) scores[0]++; ..
2024. 3. 26.