#include #include int partition(int a[],int p,int r) { int pivot=a[p],i,j,t,temp; i=p; j=r; do { while(a[i]<=pivot) { i++; } while(a[j]>pivot) { j--; } if(i0) { int b,s,c,a[3],profit; scanf("%d %d %d",&b,&s,&c); a[0]=b; a[1]=s; a[2]=c; quicksort(a,0,2); profit=abs(a[0]+a[1]-a[2]); printf("%d",profit); t--; } }