Submission

Status:

PP------P-

Subtask/Task Score:

30/100

Score: 30

User: 666whynot

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-29 23:53:16

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

int main(){
    ios::sync_with_stdio(false);cin.tie(nullptr);
    string s;cin >> s;
    int cnt[101] = {};
    for(char c:s){
        cnt[c]++;
    }
    for(auto c:s){
        if(cnt[c] == 1){cout << c;return 0;}
    }
}