UVA11211 Digital Logic

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2152 [PDF](https://uva.onlinejudge.org/external/112/p11211.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11211/a3ab840377de469f68478fc478fa21bc717cedf5.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11211/84d726badf50c0729d8c217070269c5c4b09d734.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11211/2b9b1e8d2d21a498675b5fb122c92f49c13c2113.png)