백준: 연속구간 #include #include #include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); string str; int arr[3]; for (int i = 0; i > str; int count = 1; int max = 1; for (int i = 0; i < str.length()-1; i++) { if (str[i] == str[i + 1])//연속된 숫자가 같은경우 { count++;//count에 1을더한다 if (max < count)//가장큰 count는 max에 저장 max = count; } else ..