mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 08:10:27 +08:00
31 lines
345 B
C++
31 lines
345 B
C++
#include <iostream>
|
|
using namespace std;
|
|
|
|
int arr[100005];
|
|
|
|
int main()
|
|
{
|
|
int cnt = 0;
|
|
char ch;
|
|
while(cnt < 2)
|
|
{
|
|
ch = getchar();
|
|
|
|
if(ch == '.')
|
|
{
|
|
cnt ++ ;
|
|
}
|
|
if(ch >= 'a' && ch <= 'z')
|
|
{
|
|
arr[ch] ++ ;
|
|
}
|
|
}
|
|
for(int i = 97; i <= 121; ++ i)
|
|
{
|
|
for(int j = 1; j <= arr[i]; ++ j)
|
|
{
|
|
cout << (char)i ;
|
|
}
|
|
}
|
|
return 0;
|
|
} |