fork download
  1. #include<stdio.h>
  2. char string[100000];
  3. int p, index[1000];
  4. int main()
  5. {
  6. while(gets(string))
  7. {
  8. for(p='A';p<='Z';p++)
  9. index[p]=0;
  10. for(p=0;string[p];p++)
  11. {
  12. if(string[p]>='a' && string[p]<='z')
  13. string[p]-=32;
  14. index[string[p]]++;
  15. }
  16. for(p='A';p<='Z';p++)
  17. if(index[p]==0)
  18. break;
  19. if(p=='Z'+1)
  20. {
  21. printf("pangram\n");
  22. }
  23. else
  24. {
  25. printf("not pangram\n");
  26. }
  27. }
  28. return 0;
  29. }
Success #stdin #stdout 0s 5408KB
stdin
We promptly judged antique ivory buckles for the next prize
stdout
pangram