part have as of late finished. The primary applicant got a votes, the subsequent one got b casts a ballot, the third one got c votes. For every up-and-comer, take care of the accompanying issue: the number of votes ought to be added to this applicant so he
Only correct answer else you get downvote.
The races in which three applicants took part have as of late finished. The primary applicant got a votes, the subsequent one got b casts a ballot, the third one got c votes. For every up-and-comer, take care of the accompanying issue: the number of votes ought to be added to this applicant so he wins the political decision (for example the number of decisions in favor of this competitor was completely more prominent than the number of decisions in favor of some other applicant)
Kindly note that for every applicant it is important to take care of this issue freely, for example the additional decisions in favor of any applicant don't influence the computations while finding the solution for the other two competitors.
Input :The primary line contains one integer t (1≤t≤104) — the number of experiments. Then, at that point, t experiments follow. Each experiment comprises of one line containing three integers a, b, and c (0≤a,b,c≤109).
Output :For each experiment, output in a different line three integers A, B, and C (A,B,C≥0) isolated by spaces — the responses to the issue for the primary, second, and third competitor, individually.
Step by step
Solved in 4 steps with 1 images