UVA10016 Flip-Flop the Squarelotron

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=957 [PDF](https://uva.onlinejudge.org/external/100/p10016.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10016/3ef4ea5f8b89fea96fbcee785e686bed0d35a38c.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10016/276747abf7c4be70aed3360883dcb530ed8dd669.png)

Output Format

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