UVA12547 RNA Secondary Structure

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=441&page=show_problem&problem=3992 [PDF](https://uva.onlinejudge.org/external/125/p12547.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12547/7f5c6815398fe5f411744ea24cfb37603899957c.png)

Input Format

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

Output Format

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