UVA12096 集合栈计算机 The SetStack Computer

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12096/96721996ef2bb9a2ce91b399fcbb00b437915294.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12096/327616573af74a48228f251e95d5fa3c85da575f.png)