UVA12844 Outwitting the Weighing Machine

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=861&page=show_problem&problem=4709 [PDF](https://uva.onlinejudge.org/external/128/p12844.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12844/8fcf2d8e192a682b505a861ad011983c1396ecaa.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12844/09f766f779bc3528b6b8f48d9e6a468a4d9e302d.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12844/d291667029412e664ba64ebd778bf3b3943f416e.png)