40分,求调
查看原帖
40分,求调
1538502
lzs20130114楼主2024/11/1 16:58

记录

#include<iostream>
using namespace std;
int main(){
	int a,b,c,d,e;
	cin>>a>>b>>c;
	d=a+b;
	e=c+b;
	if(d>c&&a<e){
		cout<<a<<' '<<b<<' '<<c<<' ';
	}
	else if(d<c&&a<e){
		cout<<c<<' '<<b<<' '<<c<<' ';

	}
	else if(d>c&&a<e){
		cout<<b<<' '<<a<<' '<<c<<' ';

	} 
	else if(d<c&&a>e){
		cout<<b<<' '<<a<<' '<<c<<' ';

	}
	return 0;
}
2024/11/1 16:58
加载中...