목록1316번 (1)
이우의 개발일지

문제 1316https://www.acmicpc.net/problem/1316 문제 코드 #includeusing namespace std;#includeint main(){ int num, cnt = 0; cin >> num; for (int i = 0; i > str; int check = 0; for (int j = 0; j 구현 문제 중 그룹단어체커는 어려운 문제는 아니다.다만 연속된 단어 이외에 aba 처럼 연속되지 않은 단어가 중복되서 나오는 것을 체크하는 것이 중요하다. if (str[j] != str[j + 1] && str.substr(j + 1).find(str[j]) != std::string::npos) { check = 1; ..
Coding
2024. 5. 10. 22:45