UVA10393 The One-Handed Typist

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=15&page=show_problem&problem=1334 [PDF](https://uva.onlinejudge.org/external/103/p10393.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10393/6a69d2ddf6186c8d8990fd559576ee7b9aa3d442.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10393/4d887a5f4e44ed16f2f1783e3b0055f1cdb4ade7.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10393/948e44da7a820d84b0952ea70c8a0eb063c310df.png)