fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. string n;
  7. cin >> n;
  8. cout << n.length();
  9. return 0;
  10. }
Success #stdin #stdout 0s 15232KB
stdin
12345
stdout
5