Submission

Status:

PP------P-

Subtask/Task Score:

30/100

Score: 30

User: NovemNotes

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-10-15 11:26:24

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

int main(){
    ios_base::sync_with_stdio(false);cin.tie(NULL);
    string s;cin >>s;
    map<char,int> mp;
    for(auto &x:s)mp[x]++;
    for(auto &x:s){
        if(mp[x]==1){
            cout << x << "\n";return 0;
        }
    }
    return 0;
}