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