英语教育网站建设,网站班级文化建设,wordpress脚底修改,wordpress 微信主题C描述杭电OJ 2000. ASCII码排序 ||
Problem Description 输入三个字符后#xff0c;按各字符的ASCII码从小到大的顺序输出这三个字符。
Input
输入数据有多组#xff0c;每组占一行#xff0c;有三个字符组成#xff0c;之间无空格。
Output
对于每组输入数据#xf…C描述杭电OJ 2000. ASCII码排序 ||
Problem Description 输入三个字符后按各字符的ASCII码从小到大的顺序输出这三个字符。
Input
输入数据有多组每组占一行有三个字符组成之间无空格。
Output
对于每组输入数据输出一行字符中间用一个空格分开。
Sample Input
qwe
asd
zxcSample Output
e q w
a d s
c x z代码实现
#includebits/stdc.h
using namespace std;int main()
{char a,b,c;while(cinabc){char t;if(ab){ta;ab;bt;}if(ca)coutc a bendl;else if(cb) couta c bendl;else couta b cendl;}return 0;
}