C++
[백준] 1316 그룹 단어 체커 (C++)
#include using namespace std; int grword; int main() { int n; cin >> n; for (int i = 0; i > word; int flag = 0; for (int k = 0; k 1 && word[k] != word[k - 1]) { flag = 1; break; } } if (flag == 0) { grword++; } } cout
#include using namespace std; int grword; int main() { int n; cin >> n; for (int i = 0; i > word; int flag = 0; for (int k = 0; k 1 && word[k] != word[k - 1]) { flag = 1; break; } } if (flag == 0) { grword++; } } cout