UVA967 Circular

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=908 [PDF](https://uva.onlinejudge.org/external/9/p967.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA967/562744b74559dfc06c97b7412cfa26ea29112fdf.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA967/3e0dcadf80606e33c6d38fdf643142d637f9c55d.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA967/3dbd8daceb745bc48e0f26b103f575ae31bffc88.png)