UVA12495 'C' for Count

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3939 [PDF](https://uva.onlinejudge.org/external/124/p12495.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12495/0ba64f819a260928b163bdda00361f48742fe891.png)

Input Format

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

Output Format

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