题解
2025-11-02 19:06:51
发布于:浙江
0阅读
0回复
0点赞
题解
#include<bits/stdc++.h>
using namespace std;
int main() {
int ns[7];
for (int i=0; i<7; i++) cin >> ns[i];
sort (ns, ns+7);
int a = ns[0], b = ns[1];
int c = ns[6] - a - b;
cout << a << " " << b << " " << c << "\n";
return 0;
}
这里空空如也


有帮助,赞一个