• [1135] Hexadecimal RGB Color

  • 时间限制: 1000 ms 内存限制: 65535 K
  • 问题描述
  • In programming, Photoshop and some other areas, the color always displayed in hexadecimal. The format is #RRGGBB. For example, red is #FF0000.

    Now we define that a color RRGGBB is rigorously deeper than R'R'G'G'B'B' only when RR is less than R'R', GG is less than G'G' and BB is less than B'B'.

    We give you several colors in hexadecimal, you have to pick up some colors and make them from deep to shallow. And you must pick as more as you can.

  • 输入
  • This problem has several cases, input until EOF.
    The first line of each case is an integer N (0 < N <= 2000).
    Then follow N lines, each line is a color formatted as #RRGGBB.
  • 输出
  • For each case, you should output that the maximum number of colors you can pick up.
  • 样例输入
  • 3
    #BBCCDD
    #AABBCC
    #1064F9
    
  • 样例输出
  • 2
    
  • 提示
  • 来源
  • XadillaX
  • 操作

显示春菜