프로그래머스 181870 ad 제거하기

1 개요[ | ]

프로그래머스 181870 ad 제거하기

2 C++[ | ]

#include <string>
#include <vector>

using namespace std;

vector<string> solution(vector<string> strArr) {
    vector<string> answer;
    for(string str: strArr) {
        if(str.find("ad") == string::npos) {
            answer.push_back(str);
        }
    }
    return answer;
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}