문제 링크입니다: https://www.acmicpc.net/problem/11721 string의 substr만 잘 이용한다면 쉽게 풀 수 있는 문제였습니다. 알고리즘은 아래와 같습니다.1. 몇개의 줄에 걸쳐 출력해야하는지 구합니다.2. 마지막 줄을 제외하고는 전부 10개의 문자를 출력해야하기 때문에 반복문을 통해 출력해줍니다.3. 마지막 줄은 남은 문자만큼 출력해줍니다. #include #include using namespace std; int main(void) { ios_base::sync_with_stdio(0); cin.tie(0); //cin 실행속도 향상 string s; cin >> s; //반복할 횟수 구함 int cnt = s.length() / 10; if (s.length() %..