UVA10324 Zeros and Ones

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=15&page=show_problem&problem=1265 [PDF](https://uva.onlinejudge.org/external/103/p10324.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10324/edfb83c83f0bc13fc7a90cbbec630ecfbe2bc050.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10324/4b9e4ee912c0058cde46a3d2562726cae2457eb0.png)