Submission

Status:

PP--------

Subtask/Task Score:

20/100

Score: 20

User: I_am_me

Problemset: ตัวอักษรตัวแรกในคำ

Language: c

Time: 0.002 second

Submitted On: 2025-09-23 22:21:54

#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 = j+1; i<20;i++) {
            if(word[j]==word[i]){
                count++;
            }
        }
        if(count == 0) {
                printf("%c",word[j]) ;
                break;
        }
    }
    return 0;
}