Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2827
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int t,a,b,c,tmp,p=1,i,j;
- scanf("%d",&t);
- while(t--)
- {
- scanf("%d%d%d",&a,&b,&c);
- if(a>b)
- {
- tmp=a;a=b;b=tmp;
- }
- if(b>c)
- {
- tmp=b;b=c;c=tmp;
- }
- if(a>b)
- {
- tmp=a;a=b;b=tmp;
- }
- printf("Case %d: %d\n",p++,b);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement