Submission

Status:

PP--------

Subtask/Task Score:

20/100

Score: 20

User: boygunner

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-07 11:22:05

#include<iostream>
using namespace std;
int main(){
	string st;
	bool same;
	int i;
	cin>>st;
	for(i=0;i<=st.length();i++){
		same=false;
		for(int j=i+1;j<=st.length();j++)
			if(st[i]==st[j]){
		    	same=true;
		    	st[j]=' ';
				break;
			}
		if(same==false){
			cout<<st[i];
			break;
		}
	}
}