프로그래밍/기타
2021. 1. 18.
프로그래머스 - 모의고사 (C#)
using System; using System.Collections.Generic; public class Solution { public int[] solution(int[] answers) { Man[] mans = new Man[3] { new Man(new int[] { 1, 2, 3, 4, 5 }), new Man(new int[] { 2, 1, 2, 3, 2, 4, 2, 5 }), new Man(new int[] { 3, 3, 1, 1, 2, 2, 4, 4, 5, 5 }) }; int bestAnswer = 0; for (int i = 0; i < answers.Length; ++i) { for (int j = 0; j < mans.Length; ++j) { mans[j].CheckAnswe..