eolymp
bolt
Try our new interface for solving problems
Məsələlər

Hərflərin çeşidlənməsi

dərc olunub 09.01.24 17:24:45

include <iostream>

include <algorithm>

using namespace std; int main(){ string a; cin>>a; sort(a.begin(),a.end()); cout<<a<<" "<<endl; sort(a.rbegin(),a.rend()); cout<<a<<" "<<endl; }