Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Nuchkul

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-02 15:39:58

#include<iostream>
#include<string>
using namespace std;
int main(){
    string str;
    cin >> str;
    int l = str.length();
    for(char i='A';i<='Z';i++){
        int count = 0;
        for(int j=0;j<l;j++){
            if(str[j] == i){
                count ++;
            }
        }
        if(count == 1){
            cout << i;
            return 0;
        }
    }
}