case class Field
(sizeX
: Int, sizeY
: Int, points
: Set
[(Int, Int
)]) { if (points.
contains(x -
> y
)) '\u25A0' else '\u25A1' data.map(_.mkString).mkString("\n")
}
}
println(Field(10, 10, Set(0 -> 1, 4 -> 5)).mkString)
}
b2JqZWN0IE1haW4gZXh0ZW5kcyBBcHAgewogIGNhc2UgY2xhc3MgRmllbGQoc2l6ZVg6IEludCwgc2l6ZVk6IEludCwgcG9pbnRzOiBTZXRbKEludCwgSW50KV0pIHsKICAgIGRlZiBta1N0cmluZzogU3RyaW5nID0gewogICAgICB2YWwgZGF0YSA9IGZvciAoeCA8LSAwIHVudGlsIHNpemVYKSB5aWVsZAogICAgICAgIGZvciAoeSA8LSAwIHVudGlsIHNpemVZKSB5aWVsZAogICAgICAgICAgaWYgKHBvaW50cy5jb250YWlucyh4IC0+IHkpKSAnXHUyNUEwJyBlbHNlICdcdTI1QTEnCiAgICAgIGRhdGEubWFwKF8ubWtTdHJpbmcpLm1rU3RyaW5nKCJcbiIpCiAgICB9CiAgfQogIAogIHByaW50bG4oRmllbGQoMTAsIDEwLCBTZXQoMCAtPiAxLCA0IC0+IDUpKS5ta1N0cmluZykKfQ==