복기C#의 String.Split()은 공백 문자 전체를 제거하여 주지는 않으니 유의하자. 코드C++ 17 #include #include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); string word; int lineSize = 0; while (cin >> word) { if (word == " ") { cout 80) { cout 80: print('\n') lineSize = 0 print(f"{word} ") lineSize += len(word) + 1