Root 726

백준 4344번: 평균은 넘겠지

한참 헤메었다. Visual Studio에서 디버깅 하면서 진행하였다. 소수점 3자리까지 반올림해서 표시하는 부분에서 많이 막혔다. using System; class Program { public class TestCaseData { public int total = 0; public int[] scoresArray = null; public double average = 0f; public double overAverageRate = 0f; } static void Main(string[] args) { string stringTestCase = Console.ReadLine(); int intTestCase = System.Convert.ToInt32(stringTestCase); TestCaseD..

백준 5597번: 과제 안 내신 분..?

다른 사용자가 제출한 코드를 보면 간결하다. 반면, 내가 짠 코드는 너무 길다. using System; class Program { static void Main(string[] args) { int[] studentsArray = new int[30]; for (int i = 0; i < studentsArray.Length - 2; i++) { string stringStudentID = Console.ReadLine(); int studentId = System.Convert.ToInt32(stringStudentID); studentsArray[i] = studentId; } bool[] hasArrays = new bool[30]; for (int i = 0; i < hasArrays.Leng..