UVA10004 Bicoloring

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=945 [PDF](https://uva.onlinejudge.org/external/100/p10004.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10004/09f718cb383e213e651b85dfd47bb80608f88609.png)

Input Format

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

Output Format

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