fork(1) download
  1. #include<iostream>
  2. #include<cstring>
  3. #include<string>
  4. using namespace std;
  5.  
  6. const int MAX_SIZE = 2001;
  7.  
  8. int main() {
  9. string str[2001];
  10. string str_aux[2001];
  11. int line = 0;
  12. while (!cin.eof()) {
  13. getline(cin, str[line]);
  14. ++line;
  15. }
  16. for (int i = 0; i <= line; ++i) {
  17. int length = str[i].size();
  18. for (int element = 0; element < length; ++element) {
  19. if (str[element] >= "A" && str[element] <= "Z") {
  20. str[element]+=32;
  21. cout << str[element] << "\n";
  22. }
  23. }
  24. }
  25.  
  26. for (int i = 0; i < line; ++i) {
  27. cout << str[i] << "\n";
  28.  
  29. }
  30. return 0;
  31. }
Success #stdin #stdout 0.01s 5360KB
stdin
fWFE
wrg

wgr
e
e
er
er
r
stdout
fWFE
wrg

wgr
e
e
er
er
r