fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. string s;
  6. getline(cin,s);
  7. int c=0;
  8. transform(s.begin(),s.end(),s.begin(),:: tolower);
  9. sort(s.begin(),s.end());
  10.  
  11. for(int i=0; i<s.size(); i++)
  12. {
  13. if(s[i]!=s[i+1])
  14. {
  15. c++;
  16.  
  17. }
  18. }
  19.  
  20. if(c==27)
  21. {
  22. cout<<"panagram";
  23. }
  24. else
  25. {
  26. cout<<"not panagram";
  27. }
  28.  
  29. // your code goes here
  30. return 0;
  31. }
Success #stdin #stdout 0s 5320KB
stdin
We promptly judged antique ivory buckles for the next prize
stdout
panagram