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
'C++' 카테고리의 다른 글
[프로그래머스] 문자열안에 문자열 (0) | 2025.09.04 |
---|---|
[프로그래머스] 아이스 아메리카노 (0) | 2025.09.04 |
[프로그래머스] n의 배수 고르기 (0) | 2025.09.04 |
[프로그래머스] 순서쌍의 개수 (0) | 2025.09.04 |
[프로그래머스] 배열의 유사도 (0) | 2025.09.04 |
댓글