Run ID:2674
提交时间:2024-01-20 16:07:13
#include<iostream> using namespace std; void temp(int x,int y){ int t; t=y; y=x; x=t; } int main(){ int a,b,c; cin>>a>>b>>c; if(b>c) temp(b,c); if(a>b) temp(a,b); if(a>c) temp(a,c); cout<<a<<" "<<b<<" "<<c<<endl; }