UVA704 Colour Hash

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=645 [PDF](https://uva.onlinejudge.org/external/7/p704.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA704/9d1caaa45091992f4ae85ea491f1a2f634dd155c.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA704/3af6aff7fac60203d9560a862aeeee7ca6c738e9.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA704/9039755dcbec012d4967c17be4bddb509f860a03.png)