Flower classification X31422


Statement
 

pdf   zip

html

Input

The input consists of: * The first line is a positive integer, *N*, indicating the number of flowers. * The following lines have the length and width of the *N* flowers, with this format: length width (separated by a space).

Output

For each flower length and width input, the output must be: * If the flower is blue:     The flower (<length> <width>) is blue    

* If the flower is red:     The flower (<length> <width>) is red    

Public test cases
  • Input

    1
    3 1.5

    Output

    The flower (3 1.5) is red
  • Input

    3
    2 1
    5.5 1
    3.5 0.5

    Output

    The flower (2 1) is blue
    The flower (5.5 1) is red
    The flower (3.5 0.5) is red
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    C++
    User solutions
    C++ Python