본문 바로가기
C++

[프로그래머스] 배열 원소의 길이

by 띰쥬 2025. 9. 4.
728x90
반응형
SMALL

#include <string>
#include <vector>

using namespace std;

vector<int> solution(vector<string> strlist) {
    vector<int> answer;
    
    for(auto str : strlist)
        answer.push_back(str.length());
    return answer;
}

728x90
반응형
LIST

댓글