Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: NovemNotes

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-15 11:35:29

#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,y]:mp){
        if(y==1){
            cout << x << "\n";
            return 0;
        }
    }
    return 0;
}