@[jeanbart](/user/684388)
```cpp
#include<bits/stdc++.h>
using namespace std;
int main(){
int a[3],b[3];
for(int i=0; i<3; i++)
cin>>a[i];
sort(a,a+3);
char c;
for(int i=0; i<3; i++)
{
cin>>c;
b[i]=int(c-'A');
}
for(int i=0; i<3; i++)
cout<<a[b[i]]<<" ";
return 0;
}
```
by hellolin @ 2023-03-16 18:52:10
@[hellolin](/user/751017) 感谢!
by jeanbart @ 2023-03-16 19:37:27