if13 – 'if' statement

Paint each cell that has a painted cell to its right, if it is not painted yet. Painting a painted cell is not considered an error.

Environments

Environment 1
Environment 2
Environment 3
Environment 4
Environment 5

Constraints

  • Required keywords in solution: if
  • Forbidden keywords in solution: while

Example in Python

from robot import *

task("if13")