fork download
  1. #include<bits/stdc++.h>
  2. #include<string>
  3. using namespace std;
  4. int main() {
  5. string s;
  6. getline(cin,s);
  7. int count=0;
  8.  
  9. for(char i='a';i<='z';i++){
  10. for(int j=0;j<s.length();j++){
  11. s[j]=tolower(s[j]);
  12. if(s[j]==i){
  13. count++;
  14. break;
  15. }
  16. }
  17. }
  18. if(count==26){
  19. cout<<"pangram";
  20. }
  21. else{
  22. cout<<"not pangram";
  23. }
  24.  
  25.  
  26. return 0;
  27. }
Success #stdin #stdout 0.01s 5444KB
stdin
We promptly judged antique ivory buckles for the  prize
stdout
not pangram