코딩테스트/[C#] 프로그래머스

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

냠냠쿠 2023. 8. 28. 19:22
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