1 solutions
-
0
Guest MOD
-
1
#include<iostream> using namespace std; int main() { int a,b,c; int t; cin>>a>>b>>c; for(int i=1;i<3;i++) { if(a>b){ t=a;a=b;b=t; } if(b>c){t=b;b=c;c=t; } } string M; cin>>M; for(int i=0;i<3;i++) { ; if(M[i]=='A') cout<<a<<" "; if(M[i]=='B') cout<<b<<" "; if(M[i]=='C') cout<<c<<" "; } cout<<endl; }
- 1
Information
- ID
- 1354
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 5
- Tags
- # Submissions
- 17
- Accepted
- 14
- Uploaded By