Last active
December 29, 2018 21:08
-
-
Save linasm/294c1de7f934dff61a52433fac37bf0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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