UVA10025 The ? 1 ? 2 ? ... ? n = k problem

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=966 [PDF](https://uva.onlinejudge.org/external/100/p10025.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10025/e0112f6667fd4e1dd0c79ed249e7e0314b847a01.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10025/12ee2b5f32a4c6d8758f26482f7e33d2c1dcd1fe.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10025/d369b9ed59bbf25989e4ecca58f7507e42aad5cd.png)