Submission
Status:
PP------P-
Subtask/Task Score:
30/100
Score: 30
User: I_am_me
Problemset: ตัวอักษรตัวแรกในคำ
Language: c
Time: 0.002 second
Submitted On: 2025-09-23 22:24:32
#include <stdio.h>
int main() {
char word[20] ;
int count = 0;
scanf("%s",&word) ;
for(int j = 0;j<20;j++){
count = 0;
for(int i = 0; i<20;i++) {
if(word[j]==word[i]){
count++;
}
}
if(count == 1) {
printf("%c",word[j]) ;
break;
}
}
return 0;
}