Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Songkran

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-09-26 20:24:53

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

int main(){
    
    string text;
    cin >> text;
    sort(text.begin(),text.end());  
    for (int i = 0; i < text.length(); i++){
        if (text[i] == text[i+1]){
            i++;
            continue;
        } else {
            cout << text[i];
            return 0;
        }
    }


    return 0;
}