UVA10290 {Sum+=i++} to Reach N

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=14&page=show_problem&problem=1231 [PDF](https://uva.onlinejudge.org/external/102/p10290.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10290/e0497ef28976279606d17e94ac5a8a61216dc85b.png)

Input Format

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

Output Format

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