UVA11363 Cuckoo Hashing

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=25&page=show_problem&problem=2348 [PDF](https://uva.onlinejudge.org/external/113/p11363.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11363/123dd7e6a42f53f70ef96665d9e544232c8f5b8b.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11363/3007a2fd7a4dacf3ab8921bb58e0bd17e17d8a91.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11363/3dc30c73ba51380922b12a3618585859da94e9c4.png)