https://www.acmicpc.net/problem/1141 정렬하지 않아도 결과는 같게 나올 수 있지만 길이 순으로 정렬하면 더 효율적인 코드가 된다.#include #include #include using namespace std;int main(){ int wordNum, wordCnt=0; string word; vector words; cin >> wordNum; for (int i = 0; i > word; words.push_back(word); } sort(words.begin(), words.end(), [](const std::string& a, const std::string& b) { retu..