1 条题解

  • 0
    @ 2025-1-18 21:50:38

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

    int a[8],b[4];

    int main(){ 、 for(int i = 0; i < 7; i++) { cin>>a[i]; } sort(a,a+7); for(int i = 0; i < 4; i++){ b[i] = a[i]; } if(b[0]+b[1] == b[2]){ cout<<b[0]<<" "<<b[1]<<" "<<b[3]; } else{ cout<<b[0]<<" "<<b[1]<<" "<<b[2]; } return 0; }

    • 1

    信息

    ID
    545
    时间
    1000ms
    内存
    256MiB
    难度
    5
    标签
    (无)
    递交数
    123
    已通过
    49
    上传者