Help Bubu
题目描述
[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=244&page=show_problem&problem=3387
[PDF](https://uva.onlinejudge.org/external/122/p12235.pdf)
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12235/905e7009bb0b3f6211e24dcd559fe6c731115991.png)
输入输出格式
输入格式
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12235/cc6a957804e1ce94a66afb4c8534d5ab44aff44a.png)
输出格式
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12235/e8119388f568eb991908ce39add069a68b6874aa.png)
输入输出样例
输入样例 #1
5 2
25 25 32 32 25
5 1
25 26 25 26 25
0 0
输出样例 #1
Case 1: 2
Case 2: 3