UVA11278 One-Handed Typist

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2253 [PDF](https://uva.onlinejudge.org/external/112/p11278.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11278/b6b6f02b65793cc2c860e52853d61afea352b458.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11278/0f995d43e0ffb8ed3b36c0369c8c3db7fc27de99.png)