백준 3003 킹, 퀸, 룩, 비숍, 나이트, 폰 C#
using System; namespace ChessSet{ class Chess{ static void Main(){ string[] input = Console.ReadLine().Split(); int[] w = {1, 1, 2, 2, 2, 8}; for(int i = 0; i < input.Length; i++){ w[i] -= int.Parse(input[i]); } foreach(int j in w) Console.Write(j.ToString() + " "); } } } https://www.acmicpc.net/problem/3003 3003번: 킹, 퀸, 룩, 비숍, 나이트, 폰 첫째 줄에 동혁이가 찾은 흰색 킹, 퀸, 룩, 비숍, 나이트, 폰의 개수가 주어진다. 이 값은 0보다 크거나 ..
2023. 9. 16.