UVA12167 Proving Equivalences

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12167/72c4aef9a6a93c35745e930251c44c5d04bdb054.png)

Output Format

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