UVA11245 Anti-Arithmetic-Sequence

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11245/13ad51e4ad586b2377dd5ec08c83ea1ba049b98e.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11245/8813ae9e041483a42c8ef34a17caad5bfa2ead8b.png)