UVA10568 n Group k

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=17&page=show_problem&problem=1509 [PDF](https://uva.onlinejudge.org/external/105/p10568.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10568/726148413525ede4e74879dd6f3991d9fc805999.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10568/8a590b904ad526e95ef9209412e2b1aff07fcac6.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10568/10f2d672ea15e8db9f4b14e72e5a2c7390970b50.png)