UVA237 Monitoring Wheelchair Patients

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=4&page=show_problem&problem=173 [PDF](https://uva.onlinejudge.org/external/2/p237.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA237/ad0c4f9d5c2b5bc4020d8176ef169b214249e975.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA237/50ae46a8317272048db82e561ae5674f0798abcd.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA237/1beece774701b9cbc3b4938c9c16cdf342235688.png)