import math


def hsv2rgb(hsv):
    """ Convert the given HSV triple to an RGB triple.
    (0..359, 0..1, 0..1) -> (0..255, 0..255, 0..255)
    
    hsv2rgb((int, float, float)) -> (int, int, int)
    """
    
    h, s, v = hsv
    hi = int(math.floor(h / 60.0) % 6)
    f = (h / 60.0) - math.floor(h / 60.0)
    p = v * (1 - s)
    q = v * (1 - f * s)
    t = v * (1 - (1 - f) * s)
    r, g, b = [(v, t, p), (q, v, p), (p, v, t), 
               (p, q, v), (t, p, v), (v, p, q)][hi]
    rgb = (int(r * 255), int(g * 255), int(b * 255))
    return rgb