1054 The Dominant Color
Statement
Metadata
- 作者: CHEN, Yue
- 单位: 浙江大学
- 代码长度限制: 16 KB
- 时间限制: 200 ms
- 内存限制: 64 MB
Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color with the largest proportional area is called the dominant color. A strictly dominant color takes more than half of the total area. Now given an image of resolution
Input Specification
Each input file contains one test case. For each case, the first line contains 2 positive numbers:
Output Specification
For each test case, simply print the dominant color in a line.
Sample Input
Sample Output