UVA777 Codebreakers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=718 [PDF](https://uva.onlinejudge.org/external/7/p777.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA777/ced51a22d415e8b4ed2208249da0e362b5356103.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA777/9cf526f0fa9162a8e83b533f2e31576c1bd3b28f.png)