UVA11176 Winning Streak

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2117 [PDF](https://uva.onlinejudge.org/external/111/p11176.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11176/4284fdb181cea861605a3e12ea97779c5f2da823.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11176/3828c43516176d908364f221846bbcdef2541925.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11176/5adfb1894bc7290c600407dbfe44b3cf149de189.png)