You are viewing a single comment's thread. Return to all comments →
C++14 solution.
#include <algorithm> #include <iostream> #include <string> using namespace std; int main(){ string s; cin >> s; cout << 1 + std::count_if( s.begin() + 1, s.end(), []( const auto& c ){ return isupper(c); } ) << endl; return 0; }
CamelCase
You are viewing a single comment's thread. Return to all comments →
C++14 solution.