728x90
반응형
SMALL
#include <string>
#include <vector>
using namespace std;
int solution(string str1, string str2) {
int answer = 0;
return str1.find(str2) != string::npos ? 1:2;
}
728x90
반응형
LIST
'C++' 카테고리의 다른 글
[프로그래머스] 제곱수 판별하기 (0) | 2025.09.04 |
---|---|
[프로그래머스] 문자 반복 출력하기 (0) | 2025.09.04 |
[프로그래머스] 아이스 아메리카노 (0) | 2025.09.04 |
[프로그래머스] 배열 원소의 길이 (0) | 2025.09.04 |
[프로그래머스] n의 배수 고르기 (0) | 2025.09.04 |
댓글