Loading repovive.com/contests/15/problems/B
You are given three integers , , and .
You want to split each of them into two non-negative integer parts:
The split is called balanced if the two triples have equal sums, that is .
Determine whether a balanced split exists. If it exists, output one valid split.
If several valid answers exist, you may output any of them.
For each test case, if there is no valid answer, output:
Otherwise, output:
If there are multiple valid answers, you may output any of them.
For , , and , the shown split gives and .
The total amount is , so it cannot be split into two equal integer sums.