fork(107) download
  1. #include <cstdio>
  2. #include<iostream>
  3. using namespace std;
  4. string ip()
  5. {
  6. string i="";
  7. int temp=getchar_unlocked();
  8. while(temp<'a'||temp>'z')
  9. temp=getchar_unlocked();
  10. while(temp>='a'&&temp<='z')
  11. {
  12. i+=(char)temp;
  13. temp=getchar_unlocked();
  14. }
  15. return i;
  16. }
  17. int main()
  18. {
  19. std::cout<<ip();
  20. return 0;
  21. }
Success #stdin #stdout 0s 3432KB
stdin
asdasdasd
stdout
asdasdasd