fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. string s;
  6. getline(cin,s);
  7. sort(s.begin(),s.end());
  8. int c=0;
  9. for(int i=0;i<s.length();i++){
  10. if((((int)s[i]>=65 && (int)s[i]<=91) || ((int)s[i]>=97 && (int)s[i]<=122)) && (s[i]!=s[i+1])){
  11. c++;
  12. }
  13. }
  14. if(c==26){
  15. cout<<"pangram\n";
  16. }
  17. else{
  18. cout<<"not pangram";
  19. }
  20. return 0;
  21. }
Success #stdin #stdout 0s 5532KB
stdin
We promptly judged antique ivory buckles for the prize
stdout
not pangram