fork download
  1. #include<iostream>
  2. #include<string>
  3. #include<cstring>
  4. #include<cstdio>
  5. #include<cstdlib>
  6. #include <string>
  7. #include <algorithm>
  8. using namespace std;
  9. string A,B;
  10. int main()
  11. {
  12. int t,l,i;
  13. scanf("%d",&t);
  14. while(t--)
  15. {
  16. std::string str;
  17. std::getline(cin, str);
  18. std::transform(str.begin(), str.end(), str.begin(), ::tolower);
  19. cout<<str;
  20. /*for(i=0;i<s.length();i++)
  21.   {
  22.   s[i]=toupper(s[i]);
  23.   }*/
  24. }
  25. return 0;
  26. }
Success #stdin #stdout 0s 3032KB
stdin
10
Hello World!
stdout
hello world!