#include
using namespace std;
int main() {
float x, y, z, a, b; cin >> x >> y >> z; a = max((x, y), z); b = min((x, y), z); cout << b << " " << x + y + z - a - b << " " << a; return 0;
}
b = min(min(x, y), z);
思路不错, a = max((x, y), z); 改成 a = max(max(x, y), z);
a = max((x, y), z);
a = max(max(x, y), z);
共 2 条回复
b = min(min(x, y), z);
思路不错,
a = max((x, y), z);
改成a = max(max(x, y), z);