南瓜配对 I
Paired Pumpkins I
题目详情
Dracula 有 3 个南瓜,编号 1..3。已知任意两两重量和分别为 19、21、28(千克)。设重量为 。
若可行,求 ;若不可行则输出 -1。
英文原题
Dracula has pumpkins, labeled . He knows the mass of each pair of pumpkins is (in kgs) and . Let and be the weights of the three pumpkins. If possible, find . If this is impossible, enter .
解析
由
解得 。
因此
英文解析
Using the notation here, we can set up the system of equations
and
By subtracting the second equation from the first, we get that
Adding this new equation to the third equation yields
meaning
Substituting this back in, we get
and
Therefore,