求助!
  • 板块灌水区
  • 楼主_Dreams_
  • 当前回复8
  • 已保存回复9
  • 发布时间2024/8/27 08:52
  • 上次更新2024/8/27 11:27:31
查看原帖
求助!
941614
_Dreams_楼主2024/8/27 08:52

™

#include <bits/stdc++.h>
using namespace std;

typedef long long ll;

int main() {
	int x, y, z, ans = 0, sum = 0, tmp = 0;
	cin >> x >> y >> z;
	if (z + y > x) {
		ans = x;
		cout << ans << "\n";
	} else {
		ans = z + y;
		cout << ans << "\n";
	}
	if (z + x > y) {
		sum = y;
		cout << sum << "\n";
	} else {
		sum = z + x;
		cout << sum << "\n";
	}
	if (x + y > z) {
		tmp = z;
		cout << tmp;
	} else {
		ans = x + y;
		cout << tmp;
	}
    return 0;
}
2024/8/27 08:52
加载中...