[백준 1181번/c++] 단어 정렬
알고리즘 문자열 정렬 성공 코드 #include #include #include #include using namespace std; struct Word{ int length; string content; Word(string content){ this->length = content.size(); this->content = content; } bool operatorlength != word.length){ return this->lengthcontent> n; for(int i=0; i> w; v.push_back(Word(w)); } sort(v.begin(), v.end()); string tmp = " "; for(int i=0; i
알고리즘
2022. 7. 3. 14:04