백준 브론즈 1.. 아직 멀었다.
브론즈 1 이다. 등수는 45599 등 ㅋㅋ 매일은 못 풀더라도 일주일에 한 문제는 풀어야 하지 않을까.
- ComputerScience/Coding Test
- · 2022. 4. 16.
다른 사용자가 제출한 코드를 보면 간결하다. 반면, 내가 짠 코드는 너무 길다. 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..
using System; class Program { static void Main(string[] args) { string stringTotalX = Console.ReadLine(); string stringTotalN = Console.ReadLine(); int totalX = System.Convert.ToInt32(stringTotalX); int totalNumber = System.Convert.ToInt32(stringTotalN); int totalWon = 0; for (int i = 0; i < totalNumber; i++) { string stringProducts = Console.ReadLine(); string[] stringInput = stringProducts.Spl..
using System; class Program { static void Main(string[] args) { int[] chess = new int[6] { 1, 1, 2, 2, 2, 8 }; string line = Console.ReadLine(); string[] array = line.Split(' ', StringSplitOptions.None); //char[] array = line.ToCharArray(0, line.Length); int[] intArray = new int[array.Length]; for (int i = 0; i < array.Length; i++) { intArray[i] = System.Convert.ToInt32(array[i]); } int[] result..
브론즈 1 이다. 등수는 45599 등 ㅋㅋ 매일은 못 풀더라도 일주일에 한 문제는 풀어야 하지 않을까.