#include<stdio.h> int main() { int a,b,c; while(scanf("%d %d %d",&a,&b,&c)!=EOF) if(a<b){ int flag=a; a=b; b=flag; } if(a<c){ int flag=a; a=c; c=flag; } if(b<c){ int flag=b; b=c; c=flag; } printf("%d %d %d",a,b,c); return 0; }
原文地址:https://www.cnblogs.com/chenlong991223/p/9744469.html
时间: 2024-10-05 22:56:18