shuiyanbinglan @ 2024-03-02 15:03:25
#include<stdio.h>
#include <cstdio>
#include <algorithm>
using namespace std;
int main()
{
int dat[3];
char ord[3];
scanf("%d %d %d\n",&dat[0],&dat[1],&dat[2]);
scanf("%c%c%c",&ord[0],&ord[1],&ord[2]);
sort(dat,dat+3);
for (int i=0; i<3; i++)
printf("%d ",dat[ord[i]-'A']);
return 0;
}
by __Rickysun__ @ 2024-03-02 15:05:36
@shuiyanbinglan 没有啊,你试一下,我
by 11514zbs @ 2024-03-02 15:06:32
C++过了 @shuiyanbinglan
by shuiyanbinglan @ 2024-03-02 15:22:42
@11514zbs 非常感谢,之前用的C,改了很多次,一直没过(捂脸
by justinDING @ 2024-03-02 15:51:50
@shuiyanbinglan 你用自动识别就好了
by luozezhong @ 2024-03-20 13:27:31
#include<stdio.h>
#include <cstdio>
为什么编译错误??
我不道啊