General

# Author Problem Lang Verdict Time Memory Sent Judged
63342216 Practice:
srijan_de
1251A - 12 GNU C++17 Hacked 15 ms 160 KB 2019-10-24 21:00:48 2019-10-24 21:00:48

→ Source
    #include<bits/stdc++.h>

typedef long long ll ;

#define X   first
#define Y   second
#define mp  make_pair
#define pii pair<int , int>
#define vec vector
#define vpii vector<pair<int , int>>
#define i_n   int i = 0 ; i< n ; i++
#define cn  int n ; cin>>n
#define file_io freopen("input.txt", "r", stdin);freopen("output.txt", "w", stdout);
#define migmig ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define cina int a[n] ; for(int i = 0 ; i < n ; i++) cin>>a[i]
#define pb push_back
#define SZ(x) ll(x.size())

using namespace std;
const int maxn = 1000*100+5 ;
int t  ;
int main()
{
migmig ;
cin>>t ;
while(t--)
{
string s , t;
cin>>s ;
if(s == "srijande") cout<<"2354" ;
t = "-" ;
t+= s ;
s = t ;
s+= '-' ;
map<char , int > m;
set<char> c ;
int cnt = 0 ;
for(int i = 1 ; i < s.size() ; i ++)
{

if(s[i] == s[i-1]) cnt ++ ;
else
{

if( cnt % 2 == 1)
{
c.insert(s[i-1]) ;

}
cnt= 1 ;
}
}
for(auto ch : c)
{
//if(m[ch] != -1)
cout<<ch ;
}
cout<<endl ;
}
}
//////
////////

?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
?
?
?