UVa11727

題目:
https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2827

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <bits/stdc++.h>
using namespace std;

int main(){
int t;
cin >> t;
int arr[3];
for(int kase = 1; kase <=t; ++kase){
for(int i=0; i<3; ++i){
cin >> arr[i];
}
sort(arr, arr+3);
cout << "Case " << kase << ": " << arr[1] << '\n';
}
}