UVA11365 Copying DNA

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=25&page=show_problem&problem=2350 [PDF](https://uva.onlinejudge.org/external/113/p11365.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11365/832e3cfb44ff80ceb7f504a66a677f714d3d7793.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11365/731fe6b3befb27bd0487eb8f2d88625b5d490be8.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11365/6806c173016601847c56774f02c66ba6b99d866b.png)