코딩테스트/프로그래머스 - LV 0
[프로그래머스] 부분 문자열인지 확인하기
웅드
2024. 1. 30. 16:31
- 풀이
#include <string>
#include <vector>
using namespace std;
int solution(string my_string, string target) {
int answer = 0;
if(my_string.find(target) != string::npos) return 1;
return 0;
}
반응형