Submission

Status:

----------

Subtask/Task Score:

0/100

Score: 0

User: Sense.exe

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

Language: cpp

Time: 0.003 second

Submitted On: 2026-09-25 22:34:01

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

int main() {
    string s;
    cin >> s;
    if(s.length()<=20) {
        unordered_map<char,int> m;
        for(auto x:s) {
            m[x]+=1;
        }
        for(auto x:m) {
            if(x.second==1) {
                cout << x.first;
                return 0;
            }
        }
    }
}