UVA10492 Optimal Mastermind Strategy

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=16&page=show_problem&problem=1433 [PDF](https://uva.onlinejudge.org/external/104/p10492.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10492/6f135e09a24dcb9eb3beb9f92f4198addbe76bba.png)

Input Format

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

Output Format

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