CiNpbmNsdWRlICZsdDtzdGRpby5oJmd0OwoKaW50IG1haW4oKSB7CiAgICBjaGFyIHRleHRbXSA9ICZxdW90O0hlbGxvIFdvcmxkJnF1b3Q7OwogICAgcHJpbnRmKCZxdW90O+C4guC5ieC4reC4hOC4p+C4suC4oTogJXNcbiZxdW90OywgdGV4dCk7CgogICAgaW50IGg9MCwgZT0wLCBsPTAsIG89MCwgdz0wLCByPTAsIGQ9MDsKICAgIGZvciAoY2hhciAqcCA9IHRleHQ7ICpwOyBwKyspIHsKICAgICAgICBpZiAoKnAgPT0gJ2gnIHx8ICpwID09ICdIJykgaCsrOwogICAgICAgIGlmICgqcCA9PSAnZScgfHwgKnAgPT0gJ0UnKSBlKys7CiAgICAgICAgaWYgKCpwID09ICdsJyB8fCAqcCA9PSAnTCcpIGwrPTI7CiAgICAgICAgaWYgKCpwID09ICdvJyB8fCAqcCA9PSAnTycpIG8rKzsKICAgICAgICBpZiAoKnAgPT0gJ3cnIHx8ICpwID09ICdXJykgdysrOwogICAgICAgIGlmICgqcCA9PSAncicgfHwgKnAgPT0gJ1InKSByKys7CiAgICAgICAgaWYgKCpwID09ICdkJyB8fCAqcCA9PSAnRCcpIGQrKzsKICAgIH0KCiAgICBwcmludGYoJnF1b3Q7SC9FOiAlZFxuJnF1b3Q7LCBoK2UpOwogICAgcHJpbnRmKCZxdW90O0w6ICVkXG4mcXVvdDssIGwpOwogICAgcHJpbnRmKCZxdW90O086ICVkXG4mcXVvdDssIG8pOwogICAgcHJpbnRmKCZxdW90O1c6ICVkXG4mcXVvdDssIHcpOwogICAgcHJpbnRmKCZxdW90O1I6ICVkXG4mcXVvdDssIHIpOwogICAgcHJpbnRmKCZxdW90O0Q6ICVkXG4mcXVvdDssIGQpOwoKICAgIA==
#include <stdio.h>
int main() {
char text[] = "Hello World";
printf("ข้อความ: %s\n", text);
int h=0, e=0, l=0, o=0, w=0, r=0, d=0;
for (char *p = text; *p; p++) {
if (*p == 'h' || *p == 'H') h++;
if (*p == 'e' || *p == 'E') e++;
if (*p == 'l' || *p == 'L') l+=2;
if (*p == 'o' || *p == 'O') o++;
if (*p == 'w' || *p == 'W') w++;
if (*p == 'r' || *p == 'R') r++;
if (*p == 'd' || *p == 'D') d++;
}
printf("H/E: %d\n", h+e);
printf("L: %d\n", l);
printf("O: %d\n", o);
printf("W: %d\n", w);
printf("R: %d\n", r);
printf("D: %d\n", d);