fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int kakunin(char *b){
  4.  
  5. char a[]={'b','c','d','f','g','h','k','l','m','n','p','q','r','s','t','v','w','x','y','z'};
  6.  
  7. int i,j;
  8. int count=0;
  9. for(i=0;b[i]!='\0';i++){
  10. for(j=0;j<20;j++){
  11. if(a[j]==b[i]){
  12. count++;
  13. break;
  14. break;
  15. }else{
  16. ;
  17. }
  18. }
  19. }printf("%d",count);
  20.  
  21.  
  22. }
  23. int main(void) {
  24. char *b;
  25. b = (char *)malloc(sizeof(char) * 32);
  26. int c,d;
  27. scanf("%31s",b);
  28. kakunin(b);
  29. free(b);
  30. return 0;
  31. }
Success #stdin #stdout 0s 5320KB
stdin
hujhdaqr
stdout
5