본문 바로가기

이우의 개발일지

검색하기
이우의 개발일지
프로필사진 공대이우

  • 분류 전체보.. (84)
    • Coding (52)
      • Androi.. (3)
      • Algori.. (17)
    • Embede.. (7)
    • Cloud .. (1)
    • Intern.. (2)
    • contro.. (1)
Guestbook
Notice
Recent Posts
Link
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Archives
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록1316번 (1)

이우의 개발일지

[C++] 백준 1316번 그룹 단어 체커

문제 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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바