using System;
public class Solution {
public int solution(string my_string, string is_prefix) {
return my_string.StartsWith(is_prefix) ? 1 : 0;
}
}
'프로그래머스 > Lv.0' 카테고리의 다른 글
[프로그래머스 C#] n 번째 원소까지 (0) | 2023.08.07 |
---|---|
[프로그래머스 C#] flag에 따라 다른 값 반환하기 (0) | 2023.08.07 |
[프로그래머스 C#] 정수 부분 (0) | 2023.08.06 |
[프로그래머스 C#] 길이에 따른 연산 (0) | 2023.08.05 |
[프로그래머스 C#] 공배수 (0) | 2023.08.05 |