fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. string s;
  6. getline(cin,s);
  7. for(int i=0;i<s.size();i++){
  8. s[i]=tolower(s[i]);
  9. }
  10. map<char,int>m;
  11. for(auto k:s){
  12. m[k]++;
  13. }
  14. if(m.size()==27){
  15. cout<<"pangram\n";
  16. }
  17. else{
  18. cout<<"not pangram\n";
  19. }
  20. return 0;
  21. }
Success #stdin #stdout 0.01s 5456KB
stdin
We promptly judged antique ivory buckles for the xxXX prize
stdout
pangram