fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. string t;
  6. getline(cin,t);
  7.  
  8. int a[26]={0};
  9. for(int i=0;i<t.size();i++)
  10. {
  11. t[i]=tolower(t[i]);
  12. a[t[i]-'a']++;
  13. }
  14. int f=0;
  15. for(int i=0;i<26;i++){
  16. if(a[i]==0){
  17. f=1;
  18. }
  19. }
  20. if(f==1){
  21. cout<<"not pangram";
  22.  
  23. }
  24. else{
  25. cout<<"pangram";
  26. }
  27. return 0;
  28. }
Success #stdin #stdout 0s 5404KB
stdin
Wepromptlyjudgedantiqueivorybucklesforthenextprize
stdout
pangram