My Solution
using System;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
string input = Console.ReadLine();
string[] alphabets = { "c=", "c-", "dz=", "d-", "lj", "nj", "s=", "z=" };
for (int i = 0; i < alphabets.Length; i++)
{
input = input.Replace(alphabets[i], "a");
}
Console.WriteLine(input.Length) ;
}
}
'๐ฉโ๐ปProgramming > Coding Test' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[C#] [BOJ#11720] ์ซ์์ ํฉ (0) | 2022.08.08 |
---|---|
[C#] [BOJ#5622] ๋ค์ด์ผ (0) | 2022.08.08 |
[C#] [BOJ#1157] ๋จ์ด์ ๊ฐ์ - Matches (0) | 2022.07.30 |
[C#] [BOJ#1157] ๋จ์ด ๊ณต๋ถ (0) | 2022.07.30 |
[C#] [BOJ#2475] ๊ฒ์ฆ์ (0) | 2022.07.30 |
๋๊ธ