프로그래머스 181885 할 일 목록

1 개요[ | ]

프로그래머스 181885 할 일 목록

2 C++[ | ]

#include <string>
#include <vector>

using namespace std;

vector<string> solution(vector<string> todo_list, vector<bool> finished) {
    vector<string> answer;
    for(int i=0; i<finished.size(); i++) {
        if(finished[i]) {
            continue;
        }
        answer.push_back(todo_list[i]);
    }
    return answer;
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}