Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: chs_14

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-11-30 08:42:50

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

int main() {
    cin.tie(0)->sync_with_stdio(0);

    string str;
    map<char, int> wordcount;

    cin >> str;
    for (char &c : str)
    {
        wordcount[c]++;
    }

    for (auto &x : wordcount)
    {
        if (x.second == 1) {
            cout << x.first;
            break;
        }
    }


    return 0;
}