#45535: sort super easy


1121232@stu.wghs.tp.edu.tw (Ian911436)

學校 : 臺北市私立薇閣高級中學
編號 : 258883
來源 : [60.248.154.143]
最後登入時間 :
2025-04-09 15:42:58
d659. 11727 - Cost Cutting -- UVa11727 | From: [60.248.154.143] | 發表日期 : 2025-03-14 09:24

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

int main() {
    int m, n[3];
    cin >> m;
    for(int i=1; i<=m; i++){
        cin >> n[0] >> n[1] >> n[2];
        sort(n, n+3);
        cout << "Case " << i << ": "<< n[1] << endl;
    }
    return 0;
}

 
ZeroJudge Forum