Toggle navigation
YouTube
Facebook
Telegram
english
english
українська
Algotester 4.3
Build 501
2024-12-30
Log In
Contact Us
College
Sponsors
Donate
Sources
C++ 14
#include "bits/stdc++.h" using namespace std; int main() { string s; cin >> s; int res = 0; for (int i = 1; i < s.size(); ++i) { if (s[i] == s[i-1]) res++; } cout << res << endl; }