프로그래머스(코딩테스트 연습)

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

Dev_Jen 2023. 9. 22. 02:29
반응형
#include <string>
#include <vector>

using namespace std;

string solution(vector<string> arr) {
    string answer = "";
    
    for(int i=0; i<arr.size(); i++){
        answer += arr[i];
    }
    
    return answer;
}
반응형