Solution
2024-06-15 23:18:39
发布于:广东
1阅读
0回复
0点赞
cpp:
#include <iostream>
#include <algorithm>
using namespace std;
int main(void)
{
int nums[7];
for (int i=0; i<7; i++) cin >> nums[i];
sort (nums, nums+7);
int a = nums[0], b = nums[1];
int c = nums[6] - a - b;
cout << a << " " << b << " " << c << "\n";
}
这里空空如也
有帮助,赞一个