#45534: 我愛周杰倫的楓


1121226@stu.wghs.tp.edu.tw (Arthur✨小蜜蜂)

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

#include <bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin>>n;
    for(int i=0;i<n;i++){ // 重複n遍
        int a[3];
        cin>>a[0]>>a[1]>>a[2];
        sort(a,a+3); // 排序
        cout<<"Case "<<i+1<<": "<<a[1]<<endl; // 輸出第二大的數
    }
}
 
ZeroJudge Forum