UVA580 危险的组合 Critical Mass

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=7&page=show_problem&problem=521 [PDF](https://uva.onlinejudge.org/external/5/p580.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA580/49f8842187bc4501bb4553e0ab9e1edeb50f8b6d.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA580/4bcf42c3f1ad1db4eeb05e5b80c1e06a1c1666ad.png)

Output Format

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