UVA13068 The Weakest Link

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=866&page=show_problem&problem=4966 [PDF](https://uva.onlinejudge.org/external/130/p13068.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13068/cb12116e2686f6e6a60f3c976b09185f52eaa5a9.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13068/114dd797ab3c0ad062d0afb698ca8e1a2b791c55.png)