UVA11979 Hamming Base

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3130 [PDF](https://uva.onlinejudge.org/external/119/p11979.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11979/a60d04658c5a78af0fefb0f3d7759ea538e7fa1a.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11979/36b4d59b4930a78b1279802ad8d16890c2f4ed61.png)