UVA363 Approximate Matches

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=299 [PDF](https://uva.onlinejudge.org/external/3/p363.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA363/6158d4292701d4f5eeccd19f23b0c64f62201d52.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA363/32756fda528dccc67a8f51c23f45bee301fde2c7.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA363/313d197bb03abb7cbb58d1c6b9ae40f6b7ef1179.png)