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