Skip to content

Instantly share code, notes, and snippets.

@linasm
Last active December 29, 2018 21:08
Show Gist options
  • Save linasm/294c1de7f934dff61a52433fac37bf0e to your computer and use it in GitHub Desktop.
Save linasm/294c1de7f934dff61a52433fac37bf0e to your computer and use it in GitHub Desktop.
object A extends App {
@inline def tokenizeLine = new java.util.StringTokenizer(scala.io.StdIn.readLine)
def readLongs(n: Int) = { val tl = tokenizeLine; Array.fill(n)(tl.nextToken.toLong) }
val Array(n) = readLongs(1)
val Array(x, y) = readLongs(2)
val w = Math.max(x - 1, y - 1)
val b = Math.max(n - x, n - y)
println(if (w <= b) "White" else "Black")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment