Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- long long int a,b,c,t,i;
- scanf("%lld",&t);
- for(i=1;i<=t;i++)
- {
- scanf("%lld%lld%lld",&a,&b,&c);
- if((a>b && a<c)||(a>c && a<b))
- {
- printf("Case %lld: %lld\n",i,a);
- }
- else if((b>a && b<c)||(b>c && b<a))
- {
- printf("Case %lld: %lld\n",i,b);
- }
- else if((c>b && c<a)||(c>a && c<b))
- {
- printf("Case %lld: %lld\n",i,c);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment