UVA12147 DNA Sequences

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=243&page=show_problem&problem=3299 [PDF](https://uva.onlinejudge.org/external/121/p12147.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12147/3f38272f59512d9235be4ae0a2ee83dbd7d695d5.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12147/2494335c90f742272d48b9e568239aa892ad506f.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12147/99b9a48a90a43b3f05094e35366549aac500fc06.png)