기타

· 기타
프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr#include #include #include using namespace std;vector solution(string my_string) { vector answer; // 특정 문자열의 공백으록 구분된 부분 문자열을 담는다. stringstream ss(my_string); string s = ""; while (ss >> s) { answer.push_back(s); } return answer;}
· 기타
accumulate 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr#include #include #include using namespace std;int solution(vector arr1, vector arr2){ if (arr1.size() != arr2.size()) { return arr1.size() > arr2.size() ? 1 : -1; } // begin에서 end까지 합 int sum1 = accumulate(arr1.begin(), arr1.end(), 0); int sum2 = accumulate(arr2.begin(), arr2.end(), 0); return ..
· 기타
보호되어 있는 글입니다.