



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #include <iostream> using namespace std; int main() { char word[100]; int count = 0; cin >> word; for (size_t i = 0; *(word + i) != NULL; i++) { if (word[i] >= ‘a’ && word[i] <= ‘z’) count++; if (word[i] == ‘d’ && word[i + 1] == ‘z’ && word[i + 2] == ‘=’) count––; if (word[i] == ‘l’ && word[i + 1] == ‘j’) count––; if (word[i] == ‘n’ && word[i + 1] == ‘j’) count––; } cout << count << endl; return 0; } | cs |