UVA188 Perfect Hash

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=124 [PDF](https://uva.onlinejudge.org/external/1/p188.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA188/b71a89a9dfa54c651a41468acedc9fa22d540eff.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA188/55aae6de5538e0efd4e5859053270d17de84184b.png)

Output Format

N/A