Submission

Status:

PP------P-

Subtask/Task Score:

30/100

Score: 30

User: Mano

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-08 09:43:11

#include<iostream>
#include<cstring>
#include<cctype>
using namespace std;
int main(){
	string str;
	cin>>str;
	if(str.length()>20){
		return 0;
	}
	for(int i=0;i<str.length();i++){
		bool check=false;
		for(int j=0;j<str.length();j++){
			if((str[i]==str[j]) && (i!=j)){
				check=true;
			}
		}
		if(check==false){
			cout<<str[i];
			break;
		}
	}
	return 0;
}