UVA293 Bits

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=4&page=show_problem&problem=229 [PDF](https://uva.onlinejudge.org/external/2/p293.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA293/e0f911de1111c982616b6754623e0ca2f0aabfa9.png)

Input Format

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

Output Format

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