fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. string s,p;
  6. cin>>s>>p;
  7. int sLength = s.length();
  8. int pLength = p.length();
  9. cout<<sLength;
  10. // your code goes here
  11. return 0;
  12. }
Success #stdin #stdout 0s 5444KB
stdin
abcd
abc
stdout
4