fork download
  1. /* Noobleeeeeeeeeeeeeeeee */
  2.  
  3. #include <algorithm>
  4. #include <string>
  5. #include <iostream>
  6.  
  7. std::string alphabet("abcdefghijklmnopqrstuvwxyz");
  8.  
  9. bool isPangram(std::string s)
  10. {
  11. transform(s.begin(), s.end(), s.begin(), ::tolower);
  12. sort(s.begin(), s.end());
  13. return includes(s.begin(), s.end(), alphabet.begin(), alphabet.end());
  14. }
  15.  
  16. int main()
  17. {
  18. std::string Input;
  19. std::getline(std::cin, Input);
  20. if(isPangram(Input))
  21. {
  22. std::cout << "pangram" << std::endl;
  23. }
  24. else
  25. {
  26.  
  27. std::cout << "not pangram" << std::endl;
  28.  
  29. }
  30.  
  31. return 0;
  32. }
Success #stdin #stdout 0s 3436KB
stdin
We promptly judged antique ivory buckles for the next prize
stdout
pangram