Submission

Status:

PP------P-

Subtask/Task Score:

30/100

Score: 30

User: vachirasawin

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

Language: cpp

Time: 0.002 second

Submitted On: 2026-03-13 15:49:07

// grader-chan
// c1_bkk66_5.cpp | c1_bkk66_5

#include <bits/stdc++.h>
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);

    string word;
    cin >> word;

    map<char, int> alphabet;
    for (char &c : word) {
        alphabet[c]++;
    }

    for (char &c : word) {
        if (alphabet[c] == 1) {
            cout << c;
            break;
        }
    }


    return 0;
}