View Code of Problem 3924

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
	cin>>s;
	int a[26]={0};
	for(int i=0;i<s.size();i++){
		if(s[i]!=s[i+1]){
			cout<<s[i]; 
		} 
	}
} 

Double click to view unformatted code.


Back to problem 3924