UVA11654 Arithmetic Subsequence

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=78&page=show_problem&problem=2701 [PDF](https://uva.onlinejudge.org/external/116/p11654.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11654/1eb5d294c6cedf92c8ce9e053430ff5d39520e40.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11654/402799a97868e14f407653db33b60a4ac7b1e1e6.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11654/07984d8287f176c3a66e98f13a2deb01f2e29058.png)