#include<iostream> #include<sstream> #include<algorithm> #include<cstdio> #include<cmath> #define db(a) cout << #a << " = " << a << endl; using namespace std; int main(){ int a, b, c, t; cin >> t; int i = 1; while(t--){ cin >> a >> b >> c; if(a > b) swap(a, b); if(a > c) swap(a, c); if(b > c) swap(b, c); cout << "Case "<< i++ << ": " << b << endl; } return 0; }
No hay comentarios:
Publicar un comentario