fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. string s;
  7. getline(cin,s);
  8. int c=0;
  9. for(int 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. c=1;
  14. break;
  15. }
  16. else{
  17. c=0;
  18. }
  19. }
  20. if(c==0){
  21. c=0;
  22. break;
  23. }
  24. }
  25. if(c==0){
  26. cout<<"not pangram";
  27. }
  28. else{
  29. cout<<"pangram";
  30. }
  31. return 0;
  32. }
Success #stdin #stdout 0s 5444KB
stdin
We promptly judged antique ivory buckles for the next prize
stdout
pangram