UVA11197 Counting RNA sequences

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2138 [PDF](https://uva.onlinejudge.org/external/111/p11197.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11197/f709f46fb14d205b300509f281b28fe8f6a4cd14.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11197/6e71d89b0002ed2971b1a7c516db03080a64f14f.png)