본문 바로가기
C++

[프로그래머스] 문자 리스트를 문자열로 변환하기

by 띰쥬 2025. 8. 27.
728x90
반응형
SMALL

#include <string>
#include <vector>

using namespace std;

string solution(vector<string> arr) {
    string answer = "";
    
    for(auto a : arr)
    {
        answer.append(a);
    }
    return answer;
}

728x90
반응형
LIST

댓글