UVA12062 Reverse Assignment

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=242&page=show_problem&problem=3214 [PDF](https://uva.onlinejudge.org/external/120/p12062.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12062/c5290082593a99b0b8590a6a7420924825243364.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12062/4538cc80763e86ef07ef8c64ad3136380c14a2f4.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12062/1ae7a2c08f1cbbcabe707204daee8227df5d8aad.png)