👩💻Programming/Coding Test
[C#] [BOJ#2941] 크로아티아 알파벳
taesooya
2022. 8. 8. 20:33
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) ;
}
}