Sort by

recency

|

38 Discussions

|

  • + 0 comments

    Such a vibrant and eye-catching sequence! It reminds me of the creative visuals and engaging content over on ICD Blog—always full of color and fresh perspective.

  • + 0 comments

    Balancing colors in sequences is a fascinating challenge, ensuring both harmony and distinction. This structured approach has also influenced my perspective on processes like sim registration globe, where maintaining order and accuracy is just as essential for a seamless experience.

  • + 0 comments

    This problem of balancing colors in sequences is quite fascinating, focusing on maintaining equality and controlled differences. This color scheme has greatly inspired my website creation by offering a structured approach to visually balance elements, similar to how the code manages color sequences.

  • + 0 comments

    UIUA well..

    a  = /+"G":/+"R".x
    b  = /+"Y":/+"B".x
    c  =0/+=0⊂≥¯1:1.\++¯⌕"G":"R".x
    d  =0/+=0⊂≥¯1:1.\++¯⌕"Y":"B".x
    Sol  ("False"|"True")=0/+0[a b c d]
    
  • + 0 comments

    f# solution

    open System
    
    let rec check r g y b =
        function
        | [] -> r = g && y = b
        | _ when (abs (r - g) > 1) -> false
        | _ when (abs (y - b) > 1) -> false
        | 'R' :: xs -> check (r + 1) g y b xs
        | 'G' :: xs -> check r (g + 1) y b xs
        | 'Y' :: xs -> check r g (y + 1) b xs
        | 'B' :: xs -> check r g y (b + 1) xs
    
    [<EntryPoint>]
    let main _ =
        let n = Console.ReadLine() |> int
    
        [ 1..n ]
        |> List.iter (fun _ ->
            Console.ReadLine()
            |> Seq.map char
            |> List.ofSeq
            |> check 0 0 0 0
            |> Console.WriteLine)
    
        0