UVA11135 Gopher that walks and swims

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2076 [PDF](https://uva.onlinejudge.org/external/111/p11135.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11135/e252361e92d172bf7c2cffd1ef3c1cf31480b7a8.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11135/719256826cc949e84a56cbbe5acf87e95c6f13fa.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11135/21037e1f24e51ca2a246086260a1fde426bdf168.png)