UVA10329 Combinatorial Expression

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=15&page=show_problem&problem=1270 [PDF](https://uva.onlinejudge.org/external/103/p10329.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10329/5e824f730e300c41ff1ba3c8c87deff5c4109c45.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10329/8bb2aaf7f6f1b49ac322f9dc9fbb7491dd1661a0.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10329/61c07eb0507eadfa9efda1109fccca6c7ab4484a.png)