UVA12139 Clicking Checkboxes

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=243&page=show_problem&problem=3291 [PDF](https://uva.onlinejudge.org/external/121/p12139.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12139/b4da79fe24f0ba434be89a3ef1dd03b9a4d0d3b1.png)

Input Format

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

Output Format

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