WZRYWZWY_2 @ 2024-07-30 21:52:35
#include<cstdio>
int main()
{
int a[3],s1=101,s2,s3=0;
scanf("%d%d%d",&a[0],&a[1],&a[2]);
for(int i=0;i<=2;i++)
{
if(a[i]>=s3)s3=a[i];
if(a[i]<=s1)s1=a[i];
}
for(int j=0;j<=2;j++)
{
if(a[j]!=s3 && a[j]!=s1)
{
s2=a[j];
}
}
printf("%d %d %d",s1,s2,s3);
}
by WZRYWZWY_2 @ 2024-07-30 21:52:52
@mumulyanxi @wuhuishuang88888
by meifan666 @ 2024-07-30 22:03:53
@WZRYWZWY_2 不一定升序,还要输入A、B、C这三个字符