#include< bits/stdc++.h > using namespace std; | |
int main() { | |
int n; | |
int ar[3]; | |
cin >> n; | |
for(int i = 1; i <= n; i++) { | |
printf("Case %d: ",i); | |
cin >> ar[0] >> ar[1] >> ar[2]; | |
sort(ar,ar+3); | |
cout << ar[0] << " " << ar[1] << " " << ar[2] << endl; | |
} | |
return 0; | |
} |
No comments:
Post a Comment