1 条题解

  • 0
    @ 2025-12-28 16:25:15
    #include<bits/stdc++.h>
    using namespace std;
    int n[5];
    int main(){
        ios::sync_with_stdio(false);
        cin.tie(0);
    	cin>>n[1]>>n[2]>>n[3]>>n[4];
    	sort(n+1,n+1+4,greater<int>());
        cout<<n[2]*2+n[4]*2;
        return 0;
    }
    
    • 1

    信息

    ID
    2586
    时间
    1000ms
    内存
    128MiB
    难度
    2
    标签
    (无)
    递交数
    62
    已通过
    40
    上传者