UVA10836 The Maximum Term

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1777 [PDF](https://uva.onlinejudge.org/external/108/p10836.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10836/c58002d4c86a3294c87cfc705ef18369495b25ab.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10836/446d74f5617fb70711b99cfc1879206cea17b029.png)

Output Format

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