[프로그래머스 | C# | Lv.0] 부분 문자열인지 확인하기

728x90

 

https://school.programmers.co.kr/learn/courses/30/lessons/181843

 

📝 나의 풀이

using System;

public class Solution {
    public int solution(string my_string, string target) {
        int answer = 0;

        if(my_string.Contains(target) == true) answer =1;
        
        return answer;
    }
}
728x90