본문 바로가기
728x90

알고리즘/백준 BOJ119

[BOJ C#] 2711 오타맨 고창영 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _2711 { class App { //생성자 public App() { //boj 2711 오타맨 고창영 Dictionary dic = new Dictionary(){ { 4, "MISSPELL" }, { 1, "PROGRAMMING" }, { 7, "CONTEST" }, { 3, "BALLOON" }, }; //여기서부터 작성 ] foreach(KeyValuePairpair in dic) { PrintValue(RemoveString(pair.Key, pair.Value)); }.. 2023. 1. 12.
[BOJ C#] 10173 니모를 찾아서 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _10173 { class App { //생성자 public App() { //[BOJ] 10173 니모를 찾아서 string[] arr = { "Marlin names this last egg Nemo, a name that Coral liked.", "While attempting to save nemo, Marlin meets Dory,", "a good-hearted and optimistic regal blue tang with short-term memory loss.",.. 2023. 1. 12.
[BOJ C#] 4458 첫 글자를 대문자로 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _4458 { class App { //생성자 public App() { //[BOJ] 4458 첫 글자를 대문자로 string[] arr = { "powdered Toast Man", "skeletor", "Electra Woman and Dyna Girl", "she-Ra Princess of Power", "darth Vader" }; //여기서부터 작성 하세요 Arr(arr); //출력 //Powdered Toast Man //Skeletor //Electra Woman an.. 2023. 1. 12.
[BOJ C#] 9086 문자열 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BOJ_String { class App { //생성자 public App() { //boj 9086 문자열 string[] arr = { "ACDKJFOWIEGHE", "O", "AB" }; //여기서부터 코드 작성 for(int i = 0; i < arr.Length; i++) { PrintStringToChar(arr[i]); } //출력 //AE //OO //AB } private void PrintStringToChar(string str) { char[] c = new c.. 2023. 1. 12.
[BOJ C#] 괄호 9012 _case1 처음에 이해를 잘못해서 출력은 맞지만 문제의 의도와는 다르게 푼 것 같습니다~~!! 참고만 해주세요 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VPS { class App { Stack stack = new Stack(); //생성자 public App() { Console.WriteLine("App"); //case 1 string[] arr = { "(())())", "(((()())()", "(()())((()))", "((()()(()))(((())))()", "()()()()(()()())()", "(()((())(.. 2023. 1. 11.
728x90