On Saturday, June 11, 2016 at 8:56:00 PM UTC+3, eatmore wrote:
> Each program must contain at least one instruction.
Thank you, can't believe I missed it. I was starring at this for the last hour
of the competition. The fix is trivial and I just checked it on practice it
works:
val Array(n,l) =in.readLine().split(" ").map(_.toInt)
val good = in.readLine().split(" ")
val bad = in.readLine()
if (good.contains(bad)) "IMPOSSIBLE" else {
if (l == 1) "? 0" else
"?"*(l-1) + " " + ("10"*50+ "?" + "1")
}
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-code/2c754259-f31d-43c3-b97e-fea4b0b6c2fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.