Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
11914 徐一喆 《C语言程序设计》江宝钏主编-习题4-3-字母排序 C++ Accepted 1 MS 744 KB 216 2021-05-18 13:12:42

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; char a[3]; int b[3]; int main() { cin>>a[0]>>a[1]>>a[2]; b[0]=a[0]; b[1]=a[1]; b[2]=a[2]; sort(a,a+3); printf("%c%c%c",a[0],a[1],a[2]); return 0; }