UVA12902 Reverse Polish Notation

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=862&page=show_problem&problem=4767 [PDF](https://uva.onlinejudge.org/external/129/p12902.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12902/4d227f858f8bdca102f1eae71d3dfc615abd61d6.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12902/96262eb743961faf31a298a9db06544dc273dc4e.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12902/98cfad2d5ebea6299299a5fb2e762d328c3dcc60.png)