#include<stdio.h>
int main()
{
int a, b, c, t;
scanf("%d %d %d", &a, &b, &c);
char l[4];
getchar();
//for (int i = 0; i < 3; i++)
//{
scanf("%s", l);
//}
if (c < a)
{
t = c;
c = a;
a = t;
}
if (c < b)
{
t = c;
c = b;
b = t;
}
if (a > b)
{
t = a;
a = b;
b = t;
}
for (int i = 0; l[i] != 0; i++)
{
/* if (i != 0)
{
printf(" ");
}*/
switch (l[i])
{
case 'A':
printf("%d ", a);
break;
case 'B':
printf("%d ", b);
break;
case 'C':
printf("%d ", c);
break;
}
}
return 0;
}
宿傩的抉择
于 2023-12-04 17:41:10 首次发布