2011-12-14 05:14:05
地址:http://acm.hdu.edu.cn/showproblem.php?pid=2000
题意:中文。。。
代码:
# include <stdio.h>
char max(char c1, char c2){return c1>c2?c1:c2;}
char min(char c1, char c2){return c1<c2?c1:c2;}
int main ()
{
char a,b,c,aa,bb,cc ;
while (~scanf ("%c%c%c",&a,&b,&c))
{
getchar () ;
aa = max(a,max(b,c)) ;
bb = min(a,min(b,c)) ;
cc = a^b^c^aa^bb ;
printf ("%c %c %c\n", bb,cc,aa) ;
}
return 0 ;
}