반응형
반응형

https://www.acmicpc.net/problem/1543

문제 요약

1번 줄의 문자열에서 2번 줄의 문자열이 몇 번 등장하는지 출력하기(위치 중복 불가능)

 

 

풀이
using System.Text.RegularExpressions;
Console.Write(Regex.Matches(Console.ReadLine(), Console.ReadLine()).Count());

using만 빼면 한 줄 컷~!!

반응형

+ Recent posts