eolymp
bolt
Try our new interface for solving problems
published at 11/24/22, 7:44:38 am

//Ronaldo>Messi//

published at 11/24/22, 7:45:36 am

HUHIHAHAH

published at 12/12/22, 7:45:30 pm

Слава Украине

published at 2/5/23, 2:27:21 pm

//RONALDO>MESSI// //MBAPPE>HAALAND// //BENZEMA>NEYMAR//

published at 2/5/23, 10:34:56 pm

Vectorsuz yazın zəhmət olmasa copy edək :)

published at 1/11/24, 2:02:19 pm

include <bits/stdc++.h>

using namespace std; int main() {

string a; 
vector<char>v; 
cin>>a; 
int p=1,i,j,k=0; 
v.push_back(a[0]); 
for(i=1; i<a.length(); i++) { 
    for(j=0; j<p; j++) { 
        if(a[i]==v[j]) 
            k++; 
    } 
    if(k==0) { 
        v.push_back(a[i]); 
        p++; 
    } 
    k=0; 
}
for(i=0; i<p; i++) { 
    cout<<v[i]; 
}

}

published at 1/11/24, 2:02:58 pm

MESSI = RONALDO > NEYMAR > ALL

published at 1/24/24, 6:49:33 pm

include <bits/stdc++.h>

using namespace std; using ll=long long; using ull=unsigned long long;

define fors for(ll i=0; i<s.size(); i++)

ll q[101]; int main() { string s; cin>>s; fors { if(q[s[i]]==0) cout<<s[i]; q[s[i]]++; } }