#P12184. Count Blueish Colors
Count Blueish Colors
Count Blueish Colors
A color is represented by three integers \(r, g, b\) where \(0 \leq r, g, b \leq 255\). A color is considered blueish if its blue component is strictly greater than both its red and green components, i.e., if \(b > r\) and \(b > g\). Two colors are different if at least one of the components differs.
Your task is to compute the total number of blueish colors. In other words, count the number of triples \((r, g, b)\) that satisfy:
\[ \begin{aligned} 0 \leq r, g, b \leq 255,\\ b &> r,\\ b &> g. \end{aligned} \]
inputFormat
This problem does not require any input.
outputFormat
Output a single integer: the number of blueish colors.
sample
5559680