ComputerScience/Coding Test

    백준 7287번: 등록

    using System; class Program { static void Main(string[] args) { Console.WriteLine("49"); Console.WriteLine("ddayin"); } } 문제 출처 https://www.acmicpc.net/problem/7287 7287번: 등록 첫 줄에 자신이 맞은 문제의 수, 둘째 줄에 아이디를 출력한다. www.acmicpc.net

    백준 10699번: 오늘 날짜

    실버 문제 풀다가 막혀서 쉬운 걸로 하나 풀기. using System; class Program { static void Main(string[] args) { Console.WriteLine(System.DateTime.Now.ToString("yyyy-MM-dd")); } } 문제 출처 https://www.acmicpc.net/problem/10699 10699번: 오늘 날짜 서울의 오늘 날짜를 출력하는 프로그램을 작성하시오. www.acmicpc.net

    백준 4344번: 평균은 넘겠지

    백준 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..

    백준 8958번: OX퀴즈

    using System; class Program { static void Main(string[] args) { string stringNumber = Console.ReadLine(); int intNumber = System.Convert.ToInt32(stringNumber); int[] resultArray = new int[intNumber]; for (int i = 0; i < intNumber; i++) { string stringOX = Console.ReadLine(); char[] array = stringOX.ToCharArray(); int score = 0; int total = 0; for (int j = 0; j < array.Length; j++) { if (array[j]..

    백준 1546번: 평균

    using System; class Program { static void Main(string[] args) { string stringNumber = Console.ReadLine(); int intNumber = System.Convert.ToInt32(stringNumber); int[] intScoresArray = new int[intNumber]; string stringScores = Console.ReadLine(); string[] array = stringScores.Split(' ', StringSplitOptions.None); for (int i = 0; i < array.Length; i++) { intScoresArray[i] = Convert.ToInt32(array[i])..

    백준 10807번: 개수 세기

    using System; class Program { static void Main(string[] args) { string stringNumber = Console.ReadLine(); int totalNumber = System.Convert.ToInt32(stringNumber); string stringValues = Console.ReadLine(); string[] stringValuesArray = stringValues.Split(' ', StringSplitOptions.None); int[] values = new int[stringValuesArray.Length]; for (int i = 0; i < stringValuesArray.Length; i++) { values[i] = ..

    백준 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..

    백준 25304번: 영수증

    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..

    백준 3003번: 킹, 퀸, 룩, 비숍, 나이트, 폰

    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.. 아직 멀었다.

    백준 브론즈 1.. 아직 멀었다.

    브론즈 1 이다. 등수는 45599 등 ㅋㅋ 매일은 못 풀더라도 일주일에 한 문제는 풀어야 하지 않을까.