(백준/Kotlin) 16171번 : 나는 친구가 적다 (Small)
·
CodingTest
난이도: Silver 5 프로그래밍 언어: Kotlin 문제명: 나는 친구가 적다 (Small) 푼일자: 2021년 10월 주소: https://www.acmicpc.net/problem/16171 문제풀기 정규식을 이용해 간단하게 풀었습니다. fun main() = with(System.`in`.bufferedReader()) { val S = readLine().replace("[0-9]".toRegex(), "") print(if(S.contains(readLine())) 1 else 0) }