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

stdout
not pangram
not pangram